• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 556
  • Last Modified:

Load child form with panels before showing

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
Sheritlw
Asked:
Sheritlw
3 Solutions
 
ddepuemdCommented:
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
 
jpaulinoCommented:
The form load event appens before the form is showed. If you use that event you should have problems with it.
0
 
srinivasbnCommented:
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
 
SheritlwAuthor Commented:
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now