Implementing a login window

C

chance

Hello,
I want to implement a login window that should remain in focus until
the user has entered the correct password. I am coming from the
PowerBuilder world and there this was implemented has a response or
modal window. I looked around in properties but can't seem to find
anything...Can someone tell me what is the equivelent in the c# world?

tia,
chance.
 
M

Michel Bechelani

You can try using a

Form1 frmForm1 = new Form1();
frmForm1.ShowDialog();

And in Form1 until the user introduces a correct password you do a
DialogResult = DialogResult.Ok on the form.

Hope this helps,

Michel Bechelani
 

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