Click here to Skip to main content
15,921,694 members
Home / Discussions / C#
   

C#

 
QuestionHelp autonumber... Pin
KppsK20-Sep-07 23:28
KppsK20-Sep-07 23:28 
AnswerRe: Help autonumber... Pin
Colin Angus Mackay20-Sep-07 23:41
Colin Angus Mackay20-Sep-07 23:41 
AnswerRe: Help autonumber... Pin
Anthony Mushrow21-Sep-07 1:43
professionalAnthony Mushrow21-Sep-07 1:43 
GeneralRe: Help autonumber... Pin
Colin Angus Mackay21-Sep-07 1:47
Colin Angus Mackay21-Sep-07 1:47 
Questiondirectshow filters [modified] Pin
Kuldeep Antil20-Sep-07 23:06
Kuldeep Antil20-Sep-07 23:06 
AnswerRe: directshow filters Pin
Sam Xavier21-Sep-07 1:27
Sam Xavier21-Sep-07 1:27 
QuestionEnumerate NT Group membership on remote computer Pin
Harkamal Singh20-Sep-07 22:47
Harkamal Singh20-Sep-07 22:47 
AnswerRe: Enumerate NT Group membership on remote computer Pin
elibriscoe21-Sep-07 12:43
elibriscoe21-Sep-07 12:43 
Hello. I've actually recently written a program to manage user groups on remote servers, including add an expiration date/time when that user will be removed. I'll be posting an article on it soon. Here is some code that should help you out. You will need to add a reference to System.DirectoryServices, and using statements for System.DirectoryServices and System.Collections:

<br />
String entryString = "WinNT://" + computerName + ",computer";<br />
DirectoryEntry dirEntry = new DirectoryEntry(entryString, username, password);<br />
<br />
foreach (DirectoryEntry entry in dirEntry.Children)<br />
{<br />
   if (entry.SchemaClassName.Equals("group", StringComparison.CurrentCultureIgnoreCase))<br />
   {<br />
      if (entry.Name.Equals("Administrators"))<br />
      {<br />
         object members = entry.Invoke("Members", null);<br />
<br />
         foreach (object member in (IEnumerable)members)<br />
         {<br />
            DirectoryEntry memberEntry = new DirectoryEntry(member);<br />
            String name = memberEntry.Name;<br />
            String path = memberEntry.Path;<br />
            MessageBox.Show(path + "\n" + name + "\n" + memberEntry.SchemaClassName);<br />
         }<br />
      }<br />
   }<br />
}<br />

GeneralRe: Enumerate NT Group membership on remote computer Pin
Harkamal Singh21-Sep-07 20:10
Harkamal Singh21-Sep-07 20:10 
QuestionThick Client Appplication Pin
SakthiSurya20-Sep-07 22:19
SakthiSurya20-Sep-07 22:19 
AnswerRe: Thick Client Appplication Pin
Pete O'Hanlon20-Sep-07 22:25
mvePete O'Hanlon20-Sep-07 22:25 
AnswerRe: Thick Client Appplication Pin
Sathesh Sakthivel20-Sep-07 22:26
Sathesh Sakthivel20-Sep-07 22:26 
GeneralRe: Thick Client Appplication Pin
SakthiSurya20-Sep-07 23:55
SakthiSurya20-Sep-07 23:55 
GeneralRe: Thick Client Appplication Pin
Pete O'Hanlon21-Sep-07 0:00
mvePete O'Hanlon21-Sep-07 0:00 
Questiondelegates Pin
www.suniltvl.in20-Sep-07 22:06
www.suniltvl.in20-Sep-07 22:06 
AnswerRe: delegates Pin
www.suniltvl.in20-Sep-07 22:07
www.suniltvl.in20-Sep-07 22:07 
AnswerRe: delegates Pin
ray_f20-Sep-07 23:24
ray_f20-Sep-07 23:24 
AnswerRe: delegates Pin
Pete O'Hanlon21-Sep-07 0:02
mvePete O'Hanlon21-Sep-07 0:02 
QuestionEnterPrise Library 3.0 April 2007 Pin
Praveen02920-Sep-07 21:55
Praveen02920-Sep-07 21:55 
Questiondata binding for listbox to display table Pin
cyn820-Sep-07 21:44
cyn820-Sep-07 21:44 
QuestionReading xml Pin
praveenkumar palla20-Sep-07 20:53
praveenkumar palla20-Sep-07 20:53 
AnswerRe: Reading xml Pin
Scott Dorman20-Sep-07 20:55
professionalScott Dorman20-Sep-07 20:55 
GeneralRe: Reading xml Pin
praveenkumar palla21-Sep-07 3:50
praveenkumar palla21-Sep-07 3:50 
GeneralRe: Reading xml Pin
praveenkumar palla21-Sep-07 3:52
praveenkumar palla21-Sep-07 3:52 
GeneralRe: Reading xml Pin
Scott Dorman21-Sep-07 4:25
professionalScott Dorman21-Sep-07 4:25 

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.