Help with Windows Forms
Hi,
In my application i have a Main form (Form 1) and a second form (Form 2). I have disabled Form 1 on startup as i want Form 2 to be the active form. So basically Form 1 would only be enabled once Form 2 is done. The problem i have is that whenever the program runs, Form 2 is always behind Form 1. I have used the BringtoFront() command, the Activate() command so that Form 2 would be in front of Form 1 but it doesnt work. I placed the following code in the Form 1 Load section.
pass dpass = new pass();
dpass.passControl = new pass.PassControl(VerifyData);
dpass.BringToFront();
dpass.Show();
I was hoping someone here could help me display Form 2 infront of Form 1 during startup. Form 2 shows the moment form 1 loads.
|