Solved

Load child form with panels before showing

Posted on 2009-04-09
4
547 Views
Last Modified: 2012-08-14
I have a child form that has 3 Verticle panels.
The form also has a background image and when it shows, you can see the panels moving and flashing etc.
I don't have resize code in the form, but I do have top and bottom anchors for each panel.
How can I make this form show when all the panels etc. have been drawn and resized?
Please provide sample code, clicking on links crashes my IE.
Thank you,
0
Comment
Question by:Sheritlw
4 Comments
 

Accepted Solution

by:
ddepuemd earned 167 total points
ID: 24114053
I'm not sure what you are doing but perhaps you could set the panels to not be visible until you are finished initializing the form...
0
 
LVL 48

Assisted Solution

by:jpaulino
jpaulino earned 166 total points
ID: 24114065
The form load event appens before the form is showed. If you use that event you should have problems with it.
0
 
LVL 5

Assisted Solution

by:srinivasbn
srinivasbn earned 167 total points
ID: 24114674
Hi Sheritlw

Is this happening when you are in design time? Generally it will happen only in the design time like if you close the form then it will appear like panel moving and flashing etc., But when you run actual it wont happen. If it happens in the run mode then please attach the form.

Regards,
Srinivas.B.N
0
 

Author Comment

by:Sheritlw
ID: 24118003
Hi all,
thank you for trying.  I found the solution.
In the load event of the child form I set DoubleBuffered = True.  That stopped the flickering of the controls.
I will split the points between the 3 of you since you did reply.
Thank you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need help parsing JSON in my VB.Net application 4 39
Duplicate a row 2 46
Tabcontrol Caption? 1 29
Put window Form inside tab page 10 26
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now