Form load problems

Zaeed

Registered Annoyance
Local time
Tomorrow, 04:06
Joined
Dec 12, 2007
Messages
383
Hi, I've posted this before but i'm still having problems. Every now and then when i open my main form, the load function from other forms fire off, which gives random errors since certain parameters havent been calculated yet.

Has anyone had this happen to them.. The code of my main form has nothing to do with any of the forms that are executing. I've checked dependencies etc.

My main form is basically a shell with a subform. When the mainform loads, the subform is set to the login page, which then goes to a menu. as menus do, this now branches off to other parts of the program. What i cant figure out is how when i launch the mainform some deep down form tries to execute its form_load code.

Any help would be appreciated.
 
Ok, after some digging I have found that somehow the mainforms subform had changed sourceobject.
I have a statement on the first line of the mainforms load code which changes the sourceobject to the correct form however this does not fix the problem.

Is it possible to change a forms subform source object when the form is closed?
 

Users who are viewing this thread

Back
Top Bottom