Click here to Skip to main content
15,911,785 members
Home / Discussions / C#
   

C#

 
GeneralRe: Closing a form - Tooltips Pin
Glen Harvy25-Aug-06 23:29
Glen Harvy25-Aug-06 23:29 
GeneralRe: Closing a form - Tooltips Pin
Filip van der Meeren26-Aug-06 1:07
Filip van der Meeren26-Aug-06 1:07 
QuestionMultiThreading - Synchronization issues Pin
madhusri25-Aug-06 21:13
madhusri25-Aug-06 21:13 
AnswerRe: MultiThreading - Synchronization issues Pin
Nader Elshehabi27-Aug-06 11:07
Nader Elshehabi27-Aug-06 11:07 
QuestionEnumerate local pcs , workgroups etc...(PLEASE HELP) Pin
giddy_guitarist25-Aug-06 21:06
giddy_guitarist25-Aug-06 21:06 
AnswerRe: Enumerate local pcs , workgroups etc...(PLEASE HELP) Pin
Nader Elshehabi26-Aug-06 3:08
Nader Elshehabi26-Aug-06 3:08 
GeneralRe: Enumerate local pcs , workgroups etc...(PLEASE HELP) Pin
giddy_guitarist26-Aug-06 8:11
giddy_guitarist26-Aug-06 8:11 
GeneralRe: Enumerate local pcs , workgroups etc...(PLEASE HELP) Pin
giddy_guitarist31-Aug-06 9:00
giddy_guitarist31-Aug-06 9:00 
hey.. listen.. i did extensive readin on System.Net

IPGlobalProperties-> Provides information about the network connectivity of the local computer. .. i want to enum. neworks remember... AND i found some code that claims to enum. networks with System.DirectoryServices... .BUT i dont understand any of the code cuz... well its not commented at ALL!

it was originally in VB.NET... i got someone to port it to C# .. but the problme is i CAN:T check if it works on my PC!!.. cuz i dont hav networks.. COULD SOMEONE PLEASE TELL ME IF THE FOLLOWING CODE WORKS!/?

<br />
private void btnList_Click(object sender, EventArgs e) <br />
{<br />
  DirectoryEntry entryRoot = new DirectoryEntry("WinNT://" + this.tbComputerName.Text.ToUpper(), "", "", AuthenticationTypes.None);<br />
<br />
  DirectoryEntries memberEntries = entryRoot.Children;<br />
  <br />
  this.lvUsersGroups.SmallImageList = this.ImageList1;<br />
  foreach (DirectoryEntry member in memberEntries)<br />
  {<br />
    if(member.SchemaClassName.Equals("User"))<br />
     this.lvUsersGroups.Items.Add(member.Name, 0);<br />
   <br />
    if(member.SchemaClassName.Equals("Group"))<br />
     this.lvUsersGroups.Items.Add(member.Name, 1);<br />
  }  <br />
}<br />
<br />
You will, of course, need to wire up btnList's Click event to call the above handler if you haven't already done so:<br />
<br />
    this.btnList.Click += new System.EventHandler(this.btnList_Click); 


heres where i got the original code - > http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=3213&lngWId=10[^]

PLEASE TELL ME IF EITHER ONE DOES THE JOB?


Thanx
Gideon
GeneralRe: Enumerate local pcs , workgroups etc...(PLEASE HELP) Pin
Nader Elshehabi31-Aug-06 10:29
Nader Elshehabi31-Aug-06 10:29 
GeneralRe: Enumerate local pcs , workgroups etc...(PLEASE HELP) Pin
giddy_guitarist31-Aug-06 19:46
giddy_guitarist31-Aug-06 19:46 
AnswerRe: Enumerate local pcs , workgroups etc...(PLEASE HELP) Pin
Nader Elshehabi1-Sep-06 5:05
Nader Elshehabi1-Sep-06 5:05 
GeneralRe: Enumerate local pcs , workgroups etc...(PLEASE HELP) Pin
giddy_guitarist5-Sep-06 8:19
giddy_guitarist5-Sep-06 8:19 
QuestionSending and Recieving Fax using ASP.Net, C# Pin
TestPager25-Aug-06 19:10
TestPager25-Aug-06 19:10 
QuestionHow to set the visibility of label item in StatusToolStrip control? Pin
rasper25-Aug-06 18:01
rasper25-Aug-06 18:01 
AnswerRe: How to set the visibility of label item in StatusToolStrip control? Pin
Nader Elshehabi26-Aug-06 3:17
Nader Elshehabi26-Aug-06 3:17 
Questionquestion about Timer Tick event Pin
likefood25-Aug-06 12:30
likefood25-Aug-06 12:30 
AnswerRe: question about Timer Tick event Pin
Nader Elshehabi25-Aug-06 14:28
Nader Elshehabi25-Aug-06 14:28 
GeneralRe: question about Timer Tick event Pin
likefood25-Aug-06 14:47
likefood25-Aug-06 14:47 
GeneralRe: question about Timer Tick event Pin
Subby Dev25-Aug-06 14:39
Subby Dev25-Aug-06 14:39 
GeneralRe: question about Timer Tick event [modified] Pin
likefood25-Aug-06 14:48
likefood25-Aug-06 14:48 
AnswerIt is probably hardware specific Pin
Ennis Ray Lynch, Jr.25-Aug-06 17:29
Ennis Ray Lynch, Jr.25-Aug-06 17:29 
GeneralRe: It is probably hardware specific Pin
likefood25-Aug-06 17:47
likefood25-Aug-06 17:47 
AnswerRe: question about Timer Tick event Pin
Robert Rohde25-Aug-06 21:30
Robert Rohde25-Aug-06 21:30 
GeneralRe: question about Timer Tick event Pin
likefood26-Aug-06 13:31
likefood26-Aug-06 13:31 
AnswerRe: question about Timer Tick event Pin
Mike Dimmick26-Aug-06 2:34
Mike Dimmick26-Aug-06 2:34 

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.