Opening a new form

  • Thread starter Thread starter Bala Nagarajan
  • Start date Start date
B

Bala Nagarajan

Hello,
I am trying to open a new form (form A)from another forms' (form B)
load event but the formB when it opens the controls within it does not paint
properly. I see the controls are transparent.
Am i doing something wrong by opening a new form from a form's load event?

//here is the psedo code
private void Form1_Load(object sender, System.EventArgs e)

{

Form2 fr2 = new Form2();

fr2.Show();//though the form opens the controls are tranparent and does not
get painted.


}


The reason why i am doing this is to show a introduction form before my
maiin form in the application opens. How do i acheive this?

Thanks
Bala
 
Hi Bala,

Thanks for your post.

Can you show me which version of VS.net you are using? VS.net2003 or VS2005.
I am not sure what's wrong with your project. I have followed your steps
and code snippet to create a sample project in VS.net2003, however, it
works well with showing the Form2. So I suggest you do 2 test on your side:
1. You may create new test project with this simple code, then check if
this problem still existed
2. If the problem does occur in new test project, you may try it on some
other machine. Then we can ensure that if this problem is your machine
specific.
Additionally, Form.Show method will not block the parent form, so it may
not reside on top of Form1, does this meet your "introduction form"
requirement?

Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top