Hi Ali,
Here is the code I used (bit shorter):
----------------------------------------
Dim bc As BitConverter
MessageBox.Show(bc.ToString(OpenNETCF.Net.Networking.GetAdapters.Item(0).Mac
Address))
--------------------------------------------
BUT, both codes (yours and mine) work when the PDA is in the cradle. Here is
when it doesn't work: if the PDA is out of cradle, wireless is ON, and the
PDA has only one WiFi adapter, the application throws an
"ArgumentOutOfRange" exception. It looks like a bug in OpenNETCF SDE
framework 1.2 (the one I use).
I also tried some of the other suggestions to modify "OpenNETCF.Net"
library, but without success.
I am not sure how you got it to work, but here are couple of sites that
suggest there is bug in 1.2 framework:
http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=2530
http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=2138
Thanks for your time
Goran Djuranovic