Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: HTML rendering in C# Pin
Christopher Lord14-Jul-02 10:47
Christopher Lord14-Jul-02 10:47 
QuestionDateTimePicker Localization? Pin
Syed Hussain12-Jul-02 6:05
Syed Hussain12-Jul-02 6:05 
GeneralAutorun... Pin
David Stone12-Jul-02 6:03
sitebuilderDavid Stone12-Jul-02 6:03 
GeneralRe: Autorun... Pin
Nitron12-Jul-02 6:20
Nitron12-Jul-02 6:20 
GeneralRe: Autorun... Pin
David Stone12-Jul-02 7:01
sitebuilderDavid Stone12-Jul-02 7:01 
General[Yet Another Q] making a non-resizable form Pin
Nnamdi Onyeyiri12-Jul-02 2:20
Nnamdi Onyeyiri12-Jul-02 2:20 
GeneralRe: [Yet Another Q] making a non-resizable form Pin
Andreas Philipson12-Jul-02 4:12
Andreas Philipson12-Jul-02 4:12 
GeneralADSI Retrieving Domains Pin
Ben Swann12-Jul-02 0:53
Ben Swann12-Jul-02 0:53 
I am trying to retrieve all the domains using ADSI. I don't know much about
ADSI and have been reading the docs on it with unavail.

I have currently used the code below to retrieve the users in the admin group
however, when the str variable is set to "WinNT://computer/Users,Group" it
gets to the loop stage and throws the exception: "specified cast is not valid"

To retrieve domains, I am guessing its similar to this code, however, I have
to change the Invoke method and filter etc.

Any help is greatly received

string str = "WinNT://computer/Administrators,Group";
DirectoryEntry ent = new DirectoryEntry(str);
IADsMembers mc = (IADsMembers)ent.Invoke("Members");
mc.Filter = new object [] {"user"};
foreach (IADsUser member in mc)
{
Console.WriteLine(member.ADsPath + ": " + member.Name);
}
GeneralFloating Toolbars Pin
Tim Kingsmill11-Jul-02 18:48
Tim Kingsmill11-Jul-02 18:48 
GeneralRe: Floating Toolbars Pin
Andreas Philipson12-Jul-02 4:14
Andreas Philipson12-Jul-02 4:14 
GeneralRe: Floating Toolbars Pin
leppie12-Jul-02 4:26
leppie12-Jul-02 4:26 
GeneralIESourcing issues... Pin
Ray Hayes11-Jul-02 12:51
Ray Hayes11-Jul-02 12:51 
GeneralRe: IESourcing issues... Pin
leppie11-Jul-02 22:08
leppie11-Jul-02 22:08 
GeneralRe: IESourcing issues... Pin
Ray Hayes11-Jul-02 23:02
Ray Hayes11-Jul-02 23:02 
GeneralRe: IESourcing issues... Pin
leppie12-Jul-02 0:27
leppie12-Jul-02 0:27 
GeneralRe: IESourcing issues... Pin
Ray Hayes12-Jul-02 4:03
Ray Hayes12-Jul-02 4:03 
GeneralRe: IESourcing issues... Pin
James T. Johnson12-Jul-02 22:34
James T. Johnson12-Jul-02 22:34 
GeneralRe: IESourcing issues... Pin
leppie13-Jul-02 7:11
leppie13-Jul-02 7:11 
GeneralRe: IESourcing issues... SOLVED Pin
Ray Hayes15-Jul-02 4:41
Ray Hayes15-Jul-02 4:41 
GeneralWinXP Style Pin
Nnamdi Onyeyiri11-Jul-02 11:22
Nnamdi Onyeyiri11-Jul-02 11:22 
GeneralRe: WinXP Style Pin
Chris Rickard11-Jul-02 11:46
Chris Rickard11-Jul-02 11:46 
GeneralRe: WinXP Style Pin
Nnamdi Onyeyiri11-Jul-02 23:50
Nnamdi Onyeyiri11-Jul-02 23:50 
GeneralADO Null Referance Pin
Steve Severance11-Jul-02 10:40
Steve Severance11-Jul-02 10:40 
GeneralRe: ADO Null Referance Pin
Philip Fitzsimons11-Jul-02 11:59
Philip Fitzsimons11-Jul-02 11:59 
GeneralRe: ADO Null Referance Pin
Steve Severance12-Jul-02 3:19
Steve Severance12-Jul-02 3:19 

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.