Click here to Skip to main content
15,905,614 members
Home / Discussions / C#
   

C#

 
AnswerRe: Interfacing with hardware through RS232 Pin
Giorgi Dalakishvili2-Oct-08 3:42
mentorGiorgi Dalakishvili2-Oct-08 3:42 
GeneralRe: Interfacing with hardware through RS232 Pin
Sandeep Ambade2-Oct-08 22:15
Sandeep Ambade2-Oct-08 22:15 
AnswerRe: Interfacing with hardware through RS232 Pin
Spacix One2-Oct-08 8:54
Spacix One2-Oct-08 8:54 
GeneralRe: Interfacing with hardware through RS232 Pin
Sandeep Ambade2-Oct-08 22:16
Sandeep Ambade2-Oct-08 22:16 
QuestionWMI code creator Pin
arkiboys2-Oct-08 3:02
arkiboys2-Oct-08 3:02 
AnswerRe: WMI code creator Pin
#realJSOP2-Oct-08 11:23
professional#realJSOP2-Oct-08 11:23 
GeneralRe: WMI code creator Pin
arkiboys2-Oct-08 21:23
arkiboys2-Oct-08 21:23 
QuestionI want to Set focus of combo from Textbox Pin
Chetan Patel2-Oct-08 2:19
Chetan Patel2-Oct-08 2:19 
AnswerRe: I want to Set focus of combo from Textbox Pin
DaveyM692-Oct-08 2:25
professionalDaveyM692-Oct-08 2:25 
QuestionLoad report failed. Pin
NiloofarNoroozi2-Oct-08 2:12
NiloofarNoroozi2-Oct-08 2:12 
AnswerRe: Load report failed. Pin
John_Adams2-Oct-08 10:20
John_Adams2-Oct-08 10:20 
Questionseparate fonts based on language Pin
Jassim Rahma2-Oct-08 2:06
Jassim Rahma2-Oct-08 2:06 
QuestionDateFormat Help Pin
MumbleB2-Oct-08 2:06
MumbleB2-Oct-08 2:06 
AnswerRe: DateFormat Help Pin
J4amieC2-Oct-08 2:11
J4amieC2-Oct-08 2:11 
GeneralRe: DateFormat Help Pin
MumbleB2-Oct-08 2:21
MumbleB2-Oct-08 2:21 
GeneralRe: DateFormat Help Pin
#realJSOP2-Oct-08 2:32
professional#realJSOP2-Oct-08 2:32 
GeneralRe: DateFormat Help Pin
MumbleB2-Oct-08 2:36
MumbleB2-Oct-08 2:36 
AnswerWith Respect Pin
Ennis Ray Lynch, Jr.2-Oct-08 3:11
Ennis Ray Lynch, Jr.2-Oct-08 3:11 
QuestionCustomValidator Pin
Member 34028862-Oct-08 1:47
Member 34028862-Oct-08 1:47 
JokeRe: CustomValidator Pin
Giorgi Dalakishvili2-Oct-08 2:02
mentorGiorgi Dalakishvili2-Oct-08 2:02 
QuestionLocal System Current Username and Password Pin
Sifar - 02-Oct-08 1:35
Sifar - 02-Oct-08 1:35 
AnswerRe: Local System Current Username and Password [modified] Pin
#realJSOP2-Oct-08 2:29
professional#realJSOP2-Oct-08 2:29 
Avoid using the registry. Use the built-in user settings instead. As for the login stuff, I'm sure you'll find an answer if you google it.

[EDIT] What you could do is use Windows authentication, and verify that the currently logged in user is within a certain group. The following criteria should probably be used to verify the user:

0) The required group must be defined on the box.

1) The currently logged-in user must be in the specified group.

2) (Optionally) The user must not be in the administrator group.

If you don't want to use Windows Authentication, you could set up your own and use an XML file to hold user ID's and passwords (encrypted or hashed of course).

[EDIT] This question inspired me to look into windows form login functionality, and I'm writing an article about it. If you can wait a few days, I'll post a reasonably complete solution (if I don't get bored with the whole thing in the process). The sample application is what will require the most time.


"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


modified on Thursday, October 2, 2008 10:28 AM

GeneralRe: Local System Current Username and Password Pin
Sifar - 02-Oct-08 20:09
Sifar - 02-Oct-08 20:09 
AnswerRe: Local System Current Username and Password Pin
#realJSOP2-Oct-08 9:10
professional#realJSOP2-Oct-08 9:10 
QuestionSingletone Executable Pin
Russell Jones2-Oct-08 0:10
Russell Jones2-Oct-08 0:10 

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.