?
Solved

Load child form with panels before showing

Posted on 2009-04-09
4
Medium Priority
?
554 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Accepted Solution

by:
ddepuemd earned 501 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 498 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 501 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

762 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