J
jp2msft
In our company's application, the employee is automatically logged out after
X minutes of inactivity.
After they have been logged out, the login screen is shown again using
ShowDialog().
If they are not able to log in as the same employee, the application starts
a new session. If the same employee logs back in, they can retain all of
their existing work.
The problem is here: If an employee is working on another application when
they are logged out and the login screen is called with ShowDialog(), the
login screen does not come to the top of every form on the desktop.
Now, my employees attempt to return to the application by selecting it from
the task tray. This brings up the program with the login screen somewhere
else, and they are unable to access the form at all.
What's the best way to correct this bug in my application?
Should I set my login form as TopMost=True?
Is there a way so that when an employee clicks the application and the login
form is in ShowDialog() mode, focus can automatically return to the login
form instead of giving them an error sound? (if so, how?)
This bug makes my application look weak because the employees using it do
not realize that another form is being called in ShowDialog() form.
Please help with any suggestions.
Thanks,
~Joe
X minutes of inactivity.
After they have been logged out, the login screen is shown again using
ShowDialog().
If they are not able to log in as the same employee, the application starts
a new session. If the same employee logs back in, they can retain all of
their existing work.
The problem is here: If an employee is working on another application when
they are logged out and the login screen is called with ShowDialog(), the
login screen does not come to the top of every form on the desktop.
Now, my employees attempt to return to the application by selecting it from
the task tray. This brings up the program with the login screen somewhere
else, and they are unable to access the form at all.
What's the best way to correct this bug in my application?
Should I set my login form as TopMost=True?
Is there a way so that when an employee clicks the application and the login
form is in ShowDialog() mode, focus can automatically return to the login
form instead of giving them an error sound? (if so, how?)
This bug makes my application look weak because the employees using it do
not realize that another form is being called in ShowDialog() form.
Please help with any suggestions.
Thanks,
~Joe