How to show Network Interfaces in Treeview by Using "Win32_Networ

i want to show the Installed Network Interface Cards in a tree view us

Page 1 of 1

2 Replies - 1783 Views - Last Post: 16 September 2009 - 08:17 PM Rate Topic: -----

#1 kernal   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 24
  • Joined: 09-August 09

How to show Network Interfaces in Treeview by Using "Win32_Networ

Post icon  Posted 15 September 2009 - 08:54 PM

i want to show the NIC in the PC in a tree view using C#.
Is This A Good Question/Topic? 0
  • +

Replies To: How to show Network Interfaces in Treeview by Using "Win32_Networ

#2 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1663
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: How to show Network Interfaces in Treeview by Using "Win32_Networ

Posted 15 September 2009 - 09:56 PM

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: :code:

Thanks.
Was This Post Helpful? 0
  • +
  • -

#3 kernal   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 24
  • Joined: 09-August 09

Re: How to show Network Interfaces in Treeview by Using "Win32_Networ

Posted 16 September 2009 - 08:17 PM

View PostPsychoCoder, on 15 Sep, 2009 - 08:56 PM, said:

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: :code:

Thanks.



Here the Code Sir.

// ManagementObjectSearcher search = new ManagementObjectSearcher("SELECT * FROM Win32_NetworkAdapter");

foreach (ManagementObject info in search.Get())
{
treeview1.item = "Manufacturer: " + info["manufacturer"].ToString() ;
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1