hi,
I have two forms one has button when i click that the second form (login form) appears, When the login form appears the first form should be visible but it cannot be selected till the login forms dissapears.
How do i do this?
cheers
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kirtan PatelPosted Oct 1, 2009, 12:35 AM
private void button1_Click(object sender, EventArgs e)
{
LoginForm f2 = new LoginForm();
//Show Login Form Like MsgBox always on Top
f2.ShowDialog();
}
Jason MeyerPosted Oct 1, 2009, 1:46 PM
that will make sure your form can't do anything till you enable again...
could also hide the whole form... this.hide();
Danatas GerviPosted Oct 1, 2009, 6:39 AM
Shot them all! ;-)
public Form1()
{
InitializeComponent();
Form2 SuperForm = new Form2();
SuperForm.TopMost = true;
SuperForm.ShowDialog();
}
petre ricardoPosted Sep 30, 2009, 10:19 PM
TY
Roei BarPosted Sep 30, 2009, 3:06 PM