I MADE A PROGRAM IN WHICH I DIVIDED THE PROGRAM INTO 3PARTS.
1.BUSINESS LOGIC
bt1 = new Button();
bt1.Text = "OK";
bt1.Location = new Point(50, 90);
.......................bt1.Click += bt1_Click;........................
bt2 = new Button();
bt2.Text = "CANCEL";
bt2.Location = new Point(140, 90);
...................bt2.Click += bt2_Click;...................
void bt2_Click(object sender, EventArgs e)
{
Application.Exit();
}
void bt1_Click(object sender, EventArgs e)
Process.Start(tb1.Text);