using
System;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Data;
using
System.Drawing;
using
System.Linq;
using
System.Text;
using
System.Threading.Tasks;
using
System.Windows.Forms;
namespace
WindowsFormsApp8 {
public
partial
class
Form1 : Form {
public
Form1()
{
InitializeComponent();
}
private
void
Form1_Load(
object
sender, EventArgs e)
{
Label l =
new
Label();
l.AutoSize =
true
;
l.Text = "Do you want to submit
this
form?";
l.Location =
new
Point(222, 145);
this
.Controls.Add(l);
Button Mybutton =
new
Button();
Mybutton.Location =
new
Point(225, 198);
Mybutton.Text = "Submit";
Mybutton.AutoSize =
true
;
Mybutton.BackColor = Color.LightBlue;
this
.Controls.Add(Mybutton);
Button Mybutton1 =
new
Button();
Mybutton1.Location =
new
Point(438, 198);
Mybutton1.Text = "Cancel";
Mybutton1.AutoSize =
true
;
Mybutton1.BackColor = Color.LightPink;
this
.Controls.Add(Mybutton1);
}
}
}