Home All Groups Group Topic Archive Search About

How to implement login form with Application framework enabled?

Author
26 May 2006 8:12 AM
Karel Kral
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
______________________________________________________

Author
26 May 2006 10:06 AM
Cor Ligthert [MVP]
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
> ______________________________________________________