Click here to Skip to main content
15,913,610 members
Home / Discussions / C#
   

C#

 
GeneralUpdate DataSource when DataGrid is lost focus Pin
Anonymous28-Feb-05 4:35
Anonymous28-Feb-05 4:35 
GeneralA simple question about FileIO Pin
RockRock28-Feb-05 3:53
RockRock28-Feb-05 3:53 
GeneralRe: A simple question about FileIO Pin
Dave Kreskowiak28-Feb-05 6:34
mveDave Kreskowiak28-Feb-05 6:34 
GeneralDrag & Drop Pin
sreejith ss nair28-Feb-05 3:15
sreejith ss nair28-Feb-05 3:15 
GeneralWorking directly with pixel of a bitmap Pin
Anonymous28-Feb-05 2:05
Anonymous28-Feb-05 2:05 
GeneralRe: Working directly with pixel of a bitmap Pin
leppie28-Feb-05 6:15
leppie28-Feb-05 6:15 
QuestionHow to creat login Pin
chandtec28-Feb-05 2:00
chandtec28-Feb-05 2:00 
AnswerRe: How to creat login Pin
turbochimp28-Feb-05 10:03
turbochimp28-Feb-05 10:03 
Your question is a little vague. How do you plan to authenticate users (e.g. will you perform a lookup against a database; do you keep your user information in a text/XML file; are user IDs and passwords hard coded; how are passwords secured etc. ?).

If all you want is a form for users to enter user IDs and passwords (and assuming you're using VS), just create a new WinForms app, add a new Windows form or use the default form (Form1), and drag 2 textbox controls from the toolbox to the form surface. Then select the textbox you plan to use for the password and set its PasswordChar property to whatever character you want to display instead of the actual text of the password.

Next, add a button to the form, and set its text property to "Submit" or "Log In" or whatever makes you happy.

Finally, add a method that handles the Click event of the button (double-click the button on the design surface and this method will be stubbed out for you and the cursor will move to the stubbed handler method). Insert whatever logic applies to the way you want to authenticate users in the button's Click event handler method (or make a call to another method/type that handles user login), and you're done.




The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’

GeneralRe: How to creat login Pin
chandtec28-Feb-05 10:52
chandtec28-Feb-05 10:52 
GeneralRe: How to creat login Pin
turbochimp28-Feb-05 16:11
turbochimp28-Feb-05 16:11 
GeneralIPAddress(byte[]) fails - need help Pin
Sebastian Schneider28-Feb-05 1:36
Sebastian Schneider28-Feb-05 1:36 
GeneralRe: IPAddress(byte[]) fails - need help Pin
leppie28-Feb-05 6:18
leppie28-Feb-05 6:18 
GeneralRe: IPAddress(byte[]) fails - need help Pin
Sebastian Schneider1-Mar-05 20:39
Sebastian Schneider1-Mar-05 20:39 
GeneralRe: IPAddress(byte[]) fails - need help Pin
lushgrass21-Jul-05 14:36
lushgrass21-Jul-05 14:36 
Generalsocket connection in Windows XP Pin
Begoña28-Feb-05 1:32
Begoña28-Feb-05 1:32 
GeneralRe: socket connection in Windows XP Pin
leppie28-Feb-05 6:21
leppie28-Feb-05 6:21 
GeneralRe: socket connection in Windows XP Pin
Dave Kreskowiak28-Feb-05 7:15
mveDave Kreskowiak28-Feb-05 7:15 
Generaldatagrid sorting hassles Pin
steven shingler28-Feb-05 0:27
steven shingler28-Feb-05 0:27 
GeneralRe: datagrid sorting hassles Pin
leppie28-Feb-05 6:22
leppie28-Feb-05 6:22 
GeneralToolbar Pin
subPose27-Feb-05 23:51
subPose27-Feb-05 23:51 
GeneralRe: Toolbar Pin
subPose1-Mar-05 1:03
subPose1-Mar-05 1:03 
GeneralWildcard Conversion to Regular Expressions Pin
Aisha Ikram27-Feb-05 23:38
Aisha Ikram27-Feb-05 23:38 
GeneralCustom Printdialog - Printer Properties Pin
pahlsson27-Feb-05 23:27
pahlsson27-Feb-05 23:27 
GeneralCustom DataType Pin
Maqsood Ahmed27-Feb-05 20:16
Maqsood Ahmed27-Feb-05 20:16 
GeneralRe: Custom DataType Pin
spif200127-Feb-05 22:04
spif200127-Feb-05 22:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.