Click here to Skip to main content
15,887,676 members
Home / Discussions / C#
   

C#

 
GeneralRe: MAC ADDRESS Pin
dan!sh 12-Jul-09 22:15
professional dan!sh 12-Jul-09 22:15 
QuestionRe: MAC ADDRESS Pin
sanforjackass12-Jul-09 22:21
sanforjackass12-Jul-09 22:21 
AnswerRe: MAC ADDRESS Pin
dan!sh 12-Jul-09 22:46
professional dan!sh 12-Jul-09 22:46 
GeneralRe: MAC ADDRESS Pin
sanforjackass12-Jul-09 22:48
sanforjackass12-Jul-09 22:48 
GeneralRe: MAC ADDRESS Pin
dan!sh 12-Jul-09 22:55
professional dan!sh 12-Jul-09 22:55 
QuestionRe: MAC ADDRESS Pin
sanforjackass12-Jul-09 22:57
sanforjackass12-Jul-09 22:57 
AnswerRe: MAC ADDRESS Pin
dan!sh 12-Jul-09 23:00
professional dan!sh 12-Jul-09 23:00 
QuestionRe: MAC ADDRESS Pin
sanforjackass12-Jul-09 23:29
sanforjackass12-Jul-09 23:29 
There IS An Erorr

ManagementScope theScope = new ManagementScope("\\\\computerName\\root\\cimv2");


StringBuilder theQueryBuilder = new StringBuilder();
theQueryBuilder.Append("SELECT MACAddress FROM Win32_NetworkAdapter");
ObjectQuery theQuery = new ObjectQuery(theQueryBuilder.ToString());
ManagementObjectSearcher theSearcher = new ManagementObjectSearcher(theScope, theQuery);
ManagementObjectCollection theCollectionOfResults = theSearcher.Get();

foreach (ManagementObject theCurrentObject in theCollectionOfResults)
{
string macAdd = "MAC Address: " + theCurrentObject["MACAddress"].ToString();<-----------Erorr(Object Reference not set to an ...)
MessageBox.Show(macAdd);
}
What can I Do?
AnswerRe: MAC ADDRESS Pin
J4amieC13-Jul-09 0:08
J4amieC13-Jul-09 0:08 
AnswerRe: MAC ADDRESS Pin
Henry Minute13-Jul-09 0:10
Henry Minute13-Jul-09 0:10 
QuestionRe: MAC ADDRESS Pin
sanforjackass13-Jul-09 0:39
sanforjackass13-Jul-09 0:39 
AnswerRe: MAC ADDRESS Pin
Henry Minute13-Jul-09 0:45
Henry Minute13-Jul-09 0:45 
AnswerRe: MAC ADDRESS Pin
#realJSOP13-Jul-09 1:02
mve#realJSOP13-Jul-09 1:02 
AnswerRe: MAC ADDRESS Pin
#realJSOP13-Jul-09 2:15
mve#realJSOP13-Jul-09 2:15 
AnswerRe: MAC ADDRESS Pin
#realJSOP13-Jul-09 1:04
mve#realJSOP13-Jul-09 1:04 
AnswerRe: MAC ADDRESS Pin
#realJSOP13-Jul-09 0:28
mve#realJSOP13-Jul-09 0:28 
QuestionRe: MAC ADDRESS Pin
sanforjackass13-Jul-09 0:43
sanforjackass13-Jul-09 0:43 
AnswerRe: MAC ADDRESS Pin
#realJSOP13-Jul-09 1:00
mve#realJSOP13-Jul-09 1:00 
QuestionStore updated data from datagridview to sqlserver2000 Pin
elci12-Jul-09 21:13
elci12-Jul-09 21:13 
AnswerRe: Store updated data from datagridview to sqlserver2000 Pin
dan!sh 12-Jul-09 21:31
professional dan!sh 12-Jul-09 21:31 
GeneralRe: Store updated data from datagridview to sqlserver2000 Pin
elci12-Jul-09 22:47
elci12-Jul-09 22:47 
Questionread video stream from IP Address on 80 port assigned to DVR Pin
kunal.tawde12-Jul-09 20:37
kunal.tawde12-Jul-09 20:37 
AnswerRe: read video stream from IP Address on 80 port assigned to DVR Pin
#realJSOP13-Jul-09 1:05
mve#realJSOP13-Jul-09 1:05 
GeneralRe: read video stream from IP Address on 80 port assigned to DVR Pin
kunal.tawde13-Jul-09 21:14
kunal.tawde13-Jul-09 21:14 
Questionc#:how to install new font? Pin
lhong100112-Jul-09 19:00
lhong100112-Jul-09 19:00 

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.