Click here to Skip to main content
15,925,528 members
Home / Discussions / C#
   

C#

 
AnswerRe: Convert a list element Pin
Pete O'Hanlon1-May-07 5:17
mvePete O'Hanlon1-May-07 5:17 
GeneralRe: Convert a list element Pin
DavidNohejl1-May-07 8:14
DavidNohejl1-May-07 8:14 
GeneralRe: Convert a list element Pin
PIEBALDconsult3-May-07 9:02
mvePIEBALDconsult3-May-07 9:02 
QuestionReflection: How to locate/load a specific NameSpace inside an Assembly? Pin
Dominic Pettifer1-May-07 0:34
Dominic Pettifer1-May-07 0:34 
QuestionC#, Interfaces and Interop Pin
Rhys Gravell1-May-07 0:13
professionalRhys Gravell1-May-07 0:13 
Questiondistinct values in dataset Pin
arkiboys30-Apr-07 23:30
arkiboys30-Apr-07 23:30 
AnswerRe: distinct values in dataset Pin
_mubashir1-May-07 0:12
_mubashir1-May-07 0:12 
QuestionCheck Windows username and password using C#.Net 2003 Pin
Dotnetkanna30-Apr-07 21:30
Dotnetkanna30-Apr-07 21:30 
Hi,

Im using C#.Net 2003,im using windows 2000 operating system.. i retrieved all the available windows user by using the following code and listed in the listbox..



private void button2_Click(object sender, System.EventArgs e)

{

using(DirectoryEntry root = new DirectoryEntry("WinNT://node-10"))

{

foreach (DirectoryEntry child in root.Children)

{

if (child.SchemaClassName == "User")

{

listBox1.Items.Add(child.Name);

}

}

}

}



Actually i want to check is it the right user or not from the C#.Net by programmatically..

in textbox1 im entering the username and

in textbox2 im entering the password

on clicking the ok button it should check whether the entered username and password are the right one or not,if it is the right one, then in messagebox("Valid user") else in messagebox("Invaliduser").and also mention if need to refer any namespaces over here...How should i achieve this one...plz help me..its urgent...






rgrds

Kanna..
AnswerRe: Check Windows username and password using C#.Net 2003 Pin
Christian Graus30-Apr-07 22:25
protectorChristian Graus30-Apr-07 22:25 
GeneralRe: Check Windows username and password using C#.Net 2003 Pin
Colin Angus Mackay30-Apr-07 22:30
Colin Angus Mackay30-Apr-07 22:30 
GeneralRe: Check Windows username and password using C#.Net 2003 Pin
Dotnetkanna30-Apr-07 23:40
Dotnetkanna30-Apr-07 23:40 
GeneralRe: Check Windows username and password using C#.Net 2003 Pin
Dotnetkanna30-Apr-07 23:39
Dotnetkanna30-Apr-07 23:39 
GeneralRe: Check Windows username and password using C#.Net 2003 Pin
Christian Graus30-Apr-07 23:59
protectorChristian Graus30-Apr-07 23:59 
GeneralRe: Check Windows username and password using C#.Net 2003 Pin
Dotnetkanna1-May-07 0:17
Dotnetkanna1-May-07 0:17 
AnswerRe: Check Windows username and password using C#.Net 2003 Pin
MrEyes1-May-07 2:37
MrEyes1-May-07 2:37 
GeneralRe: Check Windows username and password using C#.Net 2003 Pin
Dotnetkanna1-May-07 19:41
Dotnetkanna1-May-07 19:41 
GeneralRe: Check Windows username and password using C#.Net 2003 Pin
MrEyes1-May-07 22:40
MrEyes1-May-07 22:40 
QuestionHow can I use Formula in crystal Report 9 ? Pin
mahmoud wafy30-Apr-07 21:28
mahmoud wafy30-Apr-07 21:28 
Questionunrecognized zeros in C# string format Pin
zoroyster30-Apr-07 20:32
zoroyster30-Apr-07 20:32 
AnswerRe: unrecognized zeros in C# string format Pin
Christian Graus30-Apr-07 21:00
protectorChristian Graus30-Apr-07 21:00 
QuestionC# and C++ class in dll Pin
Levnsn30-Apr-07 19:57
Levnsn30-Apr-07 19:57 
AnswerRe: C# and C++ class in dll Pin
Christian Graus30-Apr-07 20:45
protectorChristian Graus30-Apr-07 20:45 
Questionwindow forms Pin
kalyan_241630-Apr-07 18:29
kalyan_241630-Apr-07 18:29 
AnswerRe: window forms Pin
Kashif Iqbal Khan30-Apr-07 19:49
Kashif Iqbal Khan30-Apr-07 19:49 
AnswerRe: window forms Pin
Christian Graus30-Apr-07 20:58
protectorChristian Graus30-Apr-07 20:58 

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.