How to close Login window after Main procedure is displayed?
How to close Login window after Main procedure is displayed?
(OP)
Hi all,
The application is started with a Login procedure, which calls the Main Fram procedure if the Login is succesful.
My problem is getting rid of the Login window. The Login procedure is set to the first procedure in the app.
Note: I can get rid of the Login window after the Main window is displayed by clicking on the exit cross at top right.
A solution to this would most Helpful.
Regards, Steve
The application is started with a Login procedure, which calls the Main Fram procedure if the Login is succesful.
My problem is getting rid of the Login window. The Login procedure is set to the first procedure in the app.
Note: I can get rid of the Login window after the Main window is displayed by clicking on the exit cross at top right.
A solution to this would most Helpful.
Regards, Steve
RE: How to close Login window after Main procedure is displayed?
Create global variables that will save the thread id of your procedures. e.g. login_threadID = thread() ! inside the login procedure.
later on from any where post a close event to the specified thread. e.g post(event:closeWindow,0,login_threadID). This will close the target procedure.
Sameer
RE: How to close Login window after Main procedure is displayed?
Regards,
Steve