Click here to Skip to main content
15,896,278 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Singletone Executable Pin
Simon P Stevens2-Oct-08 0:32
Simon P Stevens2-Oct-08 0:32 
GeneralRe: Singletone Executable Pin
Russell Jones2-Oct-08 0:35
Russell Jones2-Oct-08 0:35 
AnswerRe: Singletone Executable Pin
blackjack21502-Oct-08 1:00
blackjack21502-Oct-08 1:00 
QuestionDeploy a web service Pin
fady_sayegh1-Oct-08 23:59
fady_sayegh1-Oct-08 23:59 
Questionvoid and static void problem Pin
Rick van Woudenberg1-Oct-08 23:21
Rick van Woudenberg1-Oct-08 23:21 
AnswerRe: void and static void problem Pin
Giorgi Dalakishvili1-Oct-08 23:27
mentorGiorgi Dalakishvili1-Oct-08 23:27 
AnswerRe: void and static void problem Pin
J4amieC2-Oct-08 0:34
J4amieC2-Oct-08 0:34 
GeneralRe: void and static void problem Pin
Spacix One2-Oct-08 8:59
Spacix One2-Oct-08 8:59 
AnswerRe: void and static void problem Pin
Le centriste2-Oct-08 8:59
Le centriste2-Oct-08 8:59 
QuestionForms not drawing correctly in Vista Pin
__DanC__1-Oct-08 22:52
__DanC__1-Oct-08 22:52 
Questionprnadmin.dll Pin
arkiboys1-Oct-08 22:51
arkiboys1-Oct-08 22:51 
AnswerRe: prnadmin.dll Pin
DaveyM691-Oct-08 23:00
professionalDaveyM691-Oct-08 23:00 
GeneralRe: prnadmin.dll Pin
arkiboys1-Oct-08 23:06
arkiboys1-Oct-08 23:06 
GeneralRe: prnadmin.dll Pin
arkiboys1-Oct-08 23:16
arkiboys1-Oct-08 23:16 

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.