|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to implement login form with Application framework enabled?Hello,
I need to implement a login form before my application starts and the main form shows. Without Application framework (AF) is this simple. In Sub Main I create and execute login form, then (if login is successful) show and start main form. But how to implement this with Application framework enabled? If AF is on, I must set application startup object to form. -- ______________________________________________________ Karel Kral, reditel IT / IT manager PURUS-MEDA, s.r.o., Palackeho 174, 621 00 Brno, CZ E-Mail: k***@purusmeda.cz ______________________________________________________ Karel,
The best is of course to prevent any login by using the build in system http://msdn2.microsoft.com/en-us/library/ms172996.aspx Otherwise, just opening a form, wich you show with showdialog in the loadevent of your mainform, where you test it is in my idea the most easy way to do this. Private Load_Form .......................... Dim myLoginfrm as new Loginfrm 'what you have made if myLoginwrm.showDialog <> dialogresult.OK then me.close end if frm.dispose I hope this helps, Cor Show quoteHide quote "Karel Kral" <kralk***@purus.cz> schreef in bericht news:OrdOUwJgGHA.1204@TK2MSFTNGP02.phx.gbl... > Hello, > I need to implement a login form before my application starts and the > main form shows. > > Without Application framework (AF) is this simple. In Sub Main I create > and execute login form, then (if login is successful) show and start > main form. But how to implement this with Application framework enabled? > If AF is on, I must set application startup object to form. > -- > ______________________________________________________ > Karel Kral, reditel IT / IT manager > PURUS-MEDA, s.r.o., Palackeho 174, 621 00 Brno, CZ > E-Mail: k***@purusmeda.cz > ______________________________________________________
converting the use of interfaces under vb6 to vb.net
WebBrowser Control Frame Documents How to translate C++ 'for' loop into VB.NET? error handle Windows Service using VB.Net automatic startup problem ! catch the process terminate from the task manager make a form shared - called from another form - how? ClickOnce deployment problem! Text color list box opening a document with system's default app |
|||||||||||||||||||||||