Displaying forms

BlueJay924

Well-known member
Joined
May 6, 2003
Messages
46
Im creating an mdi application and when i press a button to load a form, a flash of the form with nothing on it is displayed. In one instance ill see the formborderstyle displayed even when i have set it to none.
Eventually the form i want is displayed. It seems like a couple second delay before the form i want is loaded and displayed. is there a way to avoid this or is this normal?
Also, when i dont set the location ill have the form i want loaded in one spot, and parts of the flash of a form displayed in a different location. Why is this happening?
 
This sounds very strange. Possibly all kinds of things are happening before the display of the form.

My tip is : insert a breakpoint right after the button-click and step through your code, so you can see what is happening.

Hope you didnt do this already, for it is very basic.
 
I did fix my problem of the leftover screen when a form is displayed, but Im still curious about why i see the title of my form displayed even though the border style is set to none. Ive attached something i just threw together to see if what i see in my original program. I still see the title of the screen, but briefly. Its when i switch screens that i see it.

in the program im currently working on, theres a few second delay before i see everything. There is a lot going on to load the form (clearing boxes, loading combo boxes, going through a db, etc), so im wondering if thats it, if thats why it takes a while to load the form. However, when i go back to the same form later (it runs the same functions as mentioned) but theres no delay.

Any help or explanation would be appreciated.
 

Attachments

Back
Top