Click here to Skip to main content
15,443,549 members
Home / Discussions / C#
   

C#

 
AnswerRe: XML -- Call me stupid -- LOL Pin
OriginalGriff23-Jun-09 21:27
mveOriginalGriff23-Jun-09 21:27 
GeneralRe: XML -- Call me stupid -- LOL Pin
Sk9323-Jun-09 23:07
MemberSk9323-Jun-09 23:07 
AnswerRe: XML -- Call me stupid -- LOL Pin
Eslam Afifi23-Jun-09 18:25
MemberEslam Afifi23-Jun-09 18:25 
QuestionHttp post [modified] Pin
kibromg23-Jun-09 12:32
Memberkibromg23-Jun-09 12:32 
AnswerRe: Http post Pin
Gary Stafford23-Jun-09 14:34
MemberGary Stafford23-Jun-09 14:34 
Questionactive directory users Pin
caiena23-Jun-09 10:58
Membercaiena23-Jun-09 10:58 
AnswerRe: active directory users [modified] Pin
EliottA23-Jun-09 11:01
MemberEliottA23-Jun-09 11:01 
GeneralRe: active directory users Pin
caiena23-Jun-09 11:15
Membercaiena23-Jun-09 11:15 
i tried this method to see if i could figure out if the user was disabled but i get and error i just wanted to see if i would get a 0x1 if the user account is not disbled and a 0x2 if it was


public void Disable(string userDn)
{
try
{
DirectoryEntry user = new DirectoryEntry(userDn);
int val = (int)user.Properties["userAccountControl"].Value;
\\ get the error on the above line
user.Properties["userAccountControl"].Value = val | 0x2;
//ADS_UF_ACCOUNTDISABLE;

}
catch (System.DirectoryServices.DirectoryServicesCOMException E)
{
//DoSomethingWith --> E.Message.ToString();

}
}
AnswerRe: active directory users [modified] Pin
rolandm661023-Jun-09 11:49
Memberrolandm661023-Jun-09 11:49 
QuestionBreakpoint problem Pin
Dan Neely23-Jun-09 10:21
MemberDan Neely23-Jun-09 10:21 
AnswerRe: Breakpoint problem Pin
EliottA23-Jun-09 10:28
MemberEliottA23-Jun-09 10:28 
GeneralRe: Breakpoint problem Pin
Dan Neely23-Jun-09 10:42
MemberDan Neely23-Jun-09 10:42 
GeneralRe: Breakpoint problem Pin
EliottA23-Jun-09 10:44
MemberEliottA23-Jun-09 10:44 
GeneralRe: Breakpoint problem Pin
Dan Neely23-Jun-09 10:50
MemberDan Neely23-Jun-09 10:50 
GeneralRe: Breakpoint problem Pin
EliottA23-Jun-09 10:52
MemberEliottA23-Jun-09 10:52 
AnswerRe: Breakpoint problem Pin
Christian Graus23-Jun-09 10:28
mveChristian Graus23-Jun-09 10:28 
GeneralRe: Breakpoint problem Pin
Dan Neely23-Jun-09 10:42
MemberDan Neely23-Jun-09 10:42 
GeneralRe: Breakpoint problem Pin
Christian Graus23-Jun-09 10:52
mveChristian Graus23-Jun-09 10:52 
GeneralRe: Breakpoint problem Pin
Dan Neely23-Jun-09 11:07
MemberDan Neely23-Jun-09 11:07 
AnswerRe: Breakpoint problem Pin
Adam Maras23-Jun-09 10:52
MemberAdam Maras23-Jun-09 10:52 
GeneralRe: Breakpoint problem Pin
Dan Neely23-Jun-09 11:09
MemberDan Neely23-Jun-09 11:09 
QuestionGet value of REG_NONE in registry Pin
jamesband00723-Jun-09 9:27
Memberjamesband00723-Jun-09 9:27 
AnswerRe: Get value of REG_NONE in registry Pin
Luc Pattyn23-Jun-09 9:31
sitebuilderLuc Pattyn23-Jun-09 9:31 
AnswerRe: Get value of REG_NONE in registry Pin
Manas Bhardwaj23-Jun-09 9:31
professionalManas Bhardwaj23-Jun-09 9:31 
QuestionCommunicating with a serial port Pin
12425623-Jun-09 8:55
Member12425623-Jun-09 8:55 

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.