S
S Wheeler
Hi all -
I am somewhat new to winforms and my question should be kind of basicbut I
have been unable to find the solution thus far.
I have a VB.net app that requires a user to login; the idea is to open the
app with toolbars disabled - the user clicks on a "login button" and a login
dialog (form) appears. The user enters a username password pair and is
subsequently authenticated and the toolbars are then enabled; simple so far.
But, I want the login dialog to be modal which it is by using showdialog()
but the user can move the login dialog outside of the bounds of the main
application window - I was able to prevent this by using an "embedded form"
but then that was not modal - so, how can I make an embedded form modal OR
how can I make a modal dialog that can not be moved outside of a "parent"
form (window)?
Thanks...
SWheeler
I am somewhat new to winforms and my question should be kind of basicbut I
have been unable to find the solution thus far.
I have a VB.net app that requires a user to login; the idea is to open the
app with toolbars disabled - the user clicks on a "login button" and a login
dialog (form) appears. The user enters a username password pair and is
subsequently authenticated and the toolbars are then enabled; simple so far.
But, I want the login dialog to be modal which it is by using showdialog()
but the user can move the login dialog outside of the bounds of the main
application window - I was able to prevent this by using an "embedded form"
but then that was not modal - so, how can I make an embedded form modal OR
how can I make a modal dialog that can not be moved outside of a "parent"
form (window)?
Thanks...
SWheeler