Click here to Skip to main content
15,924,583 members
Home / Discussions / C#
   

C#

 
QuestionMillisecods in C# DateTime format Pin
Praveen Raghuvanshi19-Dec-06 4:20
professionalPraveen Raghuvanshi19-Dec-06 4:20 
AnswerRe: Millisecods in C# DateTime format Pin
V.19-Dec-06 4:22
professionalV.19-Dec-06 4:22 
GeneralRe: Millisecods in C# DateTime format Pin
Colin Angus Mackay19-Dec-06 4:26
Colin Angus Mackay19-Dec-06 4:26 
GeneralRe: Millisecods in C# DateTime format Pin
V.19-Dec-06 4:36
professionalV.19-Dec-06 4:36 
GeneralRe: Millisecods in C# DateTime format Pin
Praveen Raghuvanshi19-Dec-06 4:27
professionalPraveen Raghuvanshi19-Dec-06 4:27 
AnswerRe: Millisecods in C# DateTime format Pin
Colin Angus Mackay19-Dec-06 4:26
Colin Angus Mackay19-Dec-06 4:26 
GeneralRe: Millisecods in C# DateTime format Pin
Praveen Raghuvanshi19-Dec-06 4:29
professionalPraveen Raghuvanshi19-Dec-06 4:29 
QuestionValidating a User in local computer using DirectoryEntry Pin
martin_codeproject19-Dec-06 4:18
martin_codeproject19-Dec-06 4:18 
Hi,

Iam trying to verify a user account present in the local computer using DirectoryEntry.
The code is as given below:

public bool TestUserLoginInComputer(string userNamePath, string userPassword)
{
try
{
DirectoryEntry myUser = new DirectoryEntry(string.Format("WinNT://" + _machineName + "/" + userNamePath + ", user"),userNamePath, userPassword);

if (myUser != null)
{
mname = admin.Name;
mypath = admin.Path;
return true;
}
else
{ return false; }
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
}

Iam getting an exception saying "Logon failure: unknown user name or bad password.". Even though I hav given correct username and password. I hav checked with several accounts, but same problem.
Please sumone cud help me out .


Thanks in advance.
Martin
QuestionArgumentOutOfRangeException delegate Pin
Yustme19-Dec-06 4:03
Yustme19-Dec-06 4:03 
GeneralRe: ArgumentOutOfRangeException delegate Pin
Martin#19-Dec-06 4:21
Martin#19-Dec-06 4:21 
GeneralRe: ArgumentOutOfRangeException delegate Pin
Yustme19-Dec-06 4:24
Yustme19-Dec-06 4:24 
GeneralRe: ArgumentOutOfRangeException delegate Pin
Martin#19-Dec-06 4:37
Martin#19-Dec-06 4:37 
GeneralRe: ArgumentOutOfRangeException delegate Pin
Yustme19-Dec-06 20:46
Yustme19-Dec-06 20:46 
GeneralRe: ArgumentOutOfRangeException delegate Pin
Martin#19-Dec-06 23:09
Martin#19-Dec-06 23:09 
GeneralRe: ArgumentOutOfRangeException delegate Pin
Yustme19-Dec-06 23:22
Yustme19-Dec-06 23:22 
GeneralRe: ArgumentOutOfRangeException delegate [modified] Pin
Martin#19-Dec-06 23:38
Martin#19-Dec-06 23:38 
QuestionDataset/DataTable with DataGrid (local database only!) Pin
Blubbo19-Dec-06 3:38
Blubbo19-Dec-06 3:38 
AnswerRe: Dataset/DataTable with DataGrid (local database only!) Pin
Private_Void19-Dec-06 7:43
Private_Void19-Dec-06 7:43 
GeneralRe: Dataset/DataTable with DataGrid (local database only!) Pin
Blubbo19-Dec-06 7:49
Blubbo19-Dec-06 7:49 
GeneralRe: Dataset/DataTable with DataGrid (local database only!) Pin
Private_Void19-Dec-06 8:39
Private_Void19-Dec-06 8:39 
GeneralRe: Dataset/DataTable with DataGrid (local database only!) Pin
Blubbo19-Dec-06 8:53
Blubbo19-Dec-06 8:53 
GeneralRe: Dataset/DataTable with DataGrid (local database only!) Pin
Private_Void19-Dec-06 9:47
Private_Void19-Dec-06 9:47 
QuestionDataGridView and new rows Pin
Wjousts19-Dec-06 3:25
Wjousts19-Dec-06 3:25 
AnswerRe: DataGridView and new rows Pin
Lisa Jorgensen23-Dec-06 16:18
Lisa Jorgensen23-Dec-06 16:18 
QuestionInconsistent Connection Pooling Behavior Pin
Jason Pease19-Dec-06 3:16
Jason Pease19-Dec-06 3: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.