<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar/19834389?origin\x3dhttp://netchallenges.blogspot.com', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Put some text here ...

Put some text here ...

Put some text here ...

Put some text here ...

Put some text here ...

Put some text here ...

Name:
Location: Bright, Underground, United States

Grandeur isnt my style; Excellence is!

Powered by Blogger

Thursday, December 29, 2005

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"

 

Blogger Enjoy Life!! said ... (4:59 PM) : 

Interesting blog to start :)

 

Blogger Nabeel said ... (1:37 PM) : 

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 ..

 

post a comment