Solved

Load child form with panels before showing

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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: …

707 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

16 Experts available now in Live!

Get 1:1 Help Now