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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Kirtan PatelRank #292 · 8.6K reputationPosted Sep 30, 2009, 8:35 PM EDT
private void button1_Click(object sender, EventArgs e)
{
LoginForm f2 = new LoginForm();
//Show Login Form Like MsgBox always on Top
f2.ShowDialog();
}
Roei BarRank #1,271 · 1.4K reputationPosted Sep 30, 2009, 11:06 AM EDT
petre ricardo155 reputationPosted Sep 30, 2009, 6:19 PM EDT
TY
Danatas GerviRank #4,152 · 361 reputationPosted Oct 1, 2009, 2:39 AM EDT
Shot them all! ;-)
public Form1()
{
InitializeComponent();
Form2 SuperForm = new Form2();
SuperForm.TopMost = true;
SuperForm.ShowDialog();
}
Jason Meyer25 reputationPosted Oct 1, 2009, 9:46 AM EDT
that will make sure your form can't do anything till you enable again...
could also hide the whole form... this.hide();