Click here to Skip to main content
15,908,775 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionGlobal Dataset Pin
liona5-Feb-07 2:42
liona5-Feb-07 2:42 
AnswerRe: Global Dataset Pin
Kschuler5-Feb-07 5:25
Kschuler5-Feb-07 5:25 
AnswerRe: Global Dataset Pin
nlarson115-Feb-07 5:38
nlarson115-Feb-07 5:38 
AnswerRe: Global Dataset Resolved Pin
liona5-Feb-07 7:02
liona5-Feb-07 7:02 
QuestionNET-1.1: Setup didn't include all assemblies Pin
Marco Turrini5-Feb-07 1:05
Marco Turrini5-Feb-07 1:05 
Questionhow to call sub report Pin
neo_bags5-Feb-07 0:33
neo_bags5-Feb-07 0:33 
QuestionIP Address and MAC Address Pin
nawalage4-Feb-07 23:40
nawalage4-Feb-07 23:40 
AnswerRe: IP Address and MAC Address Pin
Ahmed El-Badry5-Feb-07 3:05
Ahmed El-Badry5-Feb-07 3:05 
I get all code from http://www.codeproject.com[^]
to get MAC Address Imports System.Management

Dim strMACAddress As String = ""
'
' Create the query, in SQL syntax, to retrieve the properties from
' the active Network Adapter.
'
Dim strQuery As String = "SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True"
'
' Create a ManagementObjectSearcher object passing in the query to run.
'
Dim query As ManagementObjectSearcher = New ManagementObjectSearcher(strQuery)
'
' Create a ManagementObjectCollection assigning it the results of the query.
'
Dim queryCollection As ManagementObjectCollection = query.Get()
'
' Loop through the results extracting the MAC Address.
'
Dim mo As ManagementObject
For Each mo In queryCollection
strMACAddress = mo("MacAddress").ToString().Replace(":", "")
Exit For
Next
Dim a1 = strMACAddress

to get IP Address or MachineName Imports System.Net


Dim ipEntry As IPHostEntry = Dns.GetHostByName(Environment.MachineName)
Dim IpAddr As IPAddress() = ipEntry.AddressList

Cool | :cool: Rose | [Rose]




Ahmed El-Badry

GeneralRe: IP Address and MAC Address Pin
nawalage5-Feb-07 5:24
nawalage5-Feb-07 5:24 
QuestionRe: IP Address and MAC Address Pin
nawalage5-Feb-07 20:02
nawalage5-Feb-07 20:02 
AnswerRe: IP Address and MAC Address Pin
Ahmed El-Badry5-Feb-07 22:55
Ahmed El-Badry5-Feb-07 22:55 
AnswerRe: deleting many folders Pin
Christian Graus4-Feb-07 23:01
protectorChristian Graus4-Feb-07 23:01 
Questiondeleting many folders Pin
charchabil034-Feb-07 22:44
charchabil034-Feb-07 22:44 
AnswerRe: deleting many folders Pin
Christian Graus4-Feb-07 23:02
protectorChristian Graus4-Feb-07 23:02 
GeneralRe: deleting many folders Pin
ChandraRam5-Feb-07 3:49
ChandraRam5-Feb-07 3:49 
GeneralRe: deleting many folders Pin
charchabil035-Feb-07 5:26
charchabil035-Feb-07 5:26 
AnswerRe: deleting many folders Pin
TwoFaced5-Feb-07 7:06
TwoFaced5-Feb-07 7:06 
GeneralRe: deleting many folders Pin
charchabil035-Feb-07 8:00
charchabil035-Feb-07 8:00 
QuestionWiFi Connection Pin
ChPortos4-Feb-07 22:00
ChPortos4-Feb-07 22:00 
AnswerRe: WiFi Connection Pin
ChPortos7-Feb-07 3:35
ChPortos7-Feb-07 3:35 
Questionhow to handle list boxes? Pin
Jennisa4-Feb-07 21:27
Jennisa4-Feb-07 21:27 
AnswerRe: how to handle list boxes? Pin
jack_claudine4-Feb-07 21:54
jack_claudine4-Feb-07 21:54 
AnswerRe: how to handle list boxes? Pin
Vikash Yadav4-Feb-07 21:59
Vikash Yadav4-Feb-07 21:59 
GeneralRe: how to handle list boxes? Pin
Jennisa4-Feb-07 22:23
Jennisa4-Feb-07 22:23 
GeneralRe: how to handle list boxes? Pin
Vikash Yadav4-Feb-07 22:44
Vikash Yadav4-Feb-07 22:44 

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.