Finding MAC address in VB.NET
| Dim mc As System.Management.ManagementClass Dim mo As ManagementObject mc = New ManagementClass("Win32_NetworkAdapterConfiguration") Dim moc As ManagementObjectCollection = mc.GetInstances() For Each mo In moc If mo.Item("IPEnabled") = True Then ListBox1.Items.Add("MAC address " & mo.Item("MacAddress").ToString()) End If Next |

Comments on "Finding MAC address in VB.NET"
-
Enjoy Life!! said ... (4:59 PM) :
-
Nabeel said ... (1:37 PM) :
post a commentInteresting blog to start :)
this is really nice mate .. i'm glad you came up with this blog .. the .net blog .. good resouce.
post the datagrid and the dataview components if you can .. and .. i was working with the datagrid component in vb.net (Visual Studio) .. aa i'll give you the code here to post ..