>>Try making your login screen modal, and call it prior to instantiating you r application's read events. I usually have a start-app proc in my main program that I call on a sucessful login, the read events is actually called from my menu class, which is called from the start app module.
>
>My form is modal. After a successed login, DO MENU.MPR is called and READ EVENTS after.
Does it return a value ie successful or not? My login is acutally wrapped in a session class which stores user rights etc. and the actual main.prg code looks something like:
if session.Userlogin()
do startapp
* read events called from startapp
else
do closeapp
* clear events called from closeapp
endif
Good Luck,
John
John Adams
John T. Adams
Software Consulting Services