Hi all,
my applicaiton consist of 5 forms....
1 form is the Main_Menu
3 forms is the product, customer, and order form. these 3 forms will have
the OK button with "e.Cancel = true", and set "Me.hide" to hide the form
when the users have done their jobs, and call back the "Main_Menu.show" in
order to display the main menu.
1 form is the LOCK Screen form which is able to let users to lock their
program. so when the users want to do other task, they can simply just lock
the screen by minimize the program, and they can go to do other things.
Once, they want to return to the application, they just simply click the
program icon, they will return back to the LOCK screen. once the user enter
the correct password, then the lock screen will hide and show the Main Menu
again.
Now my problem is.....if my application only got 1 form, then is it easy to
do. I just click the X button, then my application will be minimized. if i
want to return i just click the program icon again, the the Lock Screen will
be displayed, and prompty me password to unlock the application.
Now since i got 5 forms. when i go to LOCK screen, I click the X button. my
application will be minized as well. but when i click the program icon. My
application will not return to the LOCK Screen. it will automatically go to
other forms. ( sometimes customer form, sometimes product forms, sometimes
is lock screen, sometimes is Main Menu). i just wonder how could I let my
minimized application restore to the Lock Screen.....
if Minimized application, restore the Lock Screen
if Launch application, then go the Main Menu
Regards
Pierce