Interact with 2 or more windows in the same application

Interact with 2 or more windows in the same application

Post by Antio JosF » Wed, 21 Nov 2007 23:38:29


How i moving and interacting with 2 or more windows in the same application.

For example, one login windows when the login is ok, move to Main windows.

Thanks
Formiga
 
 
 

Interact with 2 or more windows in the same application

Post by Lasse Vshe » Wed, 21 Nov 2007 23:49:38


>> How i moving and interacting with 2 or more windows in the same >> application. >> >> For example, one login windows when the login is ok, move to Main windows. >> >> Thanks >> Formiga

There is only ever one "main window" in an application at any given
time. If you close this (note, Close, not Hide), the application context
returns back to the main program.

I suspect you can call Application.Run twice, once for the login form
and one for your real main form, but you'd have to store the login data
somewhere in the meantime. I haven't tested this, but it would be easy
to test.

--
Lasse Vsher Karlsen
mailto: XXXX@XXXXX.COM
http://www.yqcomputer.com/