How to implement login form with Application framework enabled?

K

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: (e-mail address removed)
______________________________________________________
 
C

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top