One important thing in this post you will need to add reference to System.Menagement dll
We need to add the :
using System.Management;
and in button click event next code:)
private void button1_Click(object sender, EventArgs e)
{
ManagementObjectSearcher MOS = new ManagementObjectSearcher("Select * From Win32_BaseBoard");
foreach (ManagementObject getserial in MOS.Get())
{
label1.Text="Your motherboard serial is : "+ getserial["SerialNumber"].ToString();
}
}
for the end of this post , I will like to said hello to one beautiful girl called Sandy ;)
0 comments:
Post a Comment