Displaying forms

BlueJay924

Freshman
Joined
May 6, 2003
Messages
46
I'm 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 i'll 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 don't set the location i'll 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 didn't do this already, for it is very basic.
 
I did fix my problem of the leftover screen when a form is displayed, but I'm still curious about why i see the title of my form displayed even though the border style is set to none. I've 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. It's when i switch screens that i see it.

in the program i'm currently working on, there's 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 i'm wondering if that's it, if that's 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 there's no delay.

Any help or explanation would be appreciated.
 

Attachments

Back
Top