Hello everyone,
I am using VSTS 2008 + C# + .Net 2.0 to develop a Windows Forms application. In the default Form1 I have a button, and click the button will invoke another Form -- Form2.
My question is, I want to make Form2 always on the top, i.e. user must response Form2 (fill in informaiton in Form2 and close it) until the user could continue to deal with Form1. How to implement this feature?
Here is my current code.
public partial class Form1 : Form { public Form1() { InitializeComponent(); }
private void button1_Click(object sender, EventArgs e)
{
Form2 form2 = new Form2();
form2.Visible = true;
}
}
thanks in advance, George