Solved

Load child form with panels before showing

Posted on 2009-04-09
4
548 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

785 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