Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to close Login window after Main procedure is displayed?

Status
Not open for further replies.

ZSteve

Programmer
May 31, 2012
21
AU
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
 
Hello,
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
 
Thanks for your advice Sameer. Will try it as soon as time permits
Regards,
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top