Posts

Showing posts from September, 2008

In Windows application Tag Property of radio button (controls) is useful as like value field of controls in web Application

I don't have so much experience in windows application.. at that time i have gone through internet for Value Filed property of Controls in windows application. but i haven't find any link then i have gone through Property windows of Radio Button (any control).then I used that TAG property like a value field as we are using in web application. I used it in one of my desktop application.see this one of the step of XML Operation(XMLNodeIterator) for eg. rbButton.Tag = (object)xNodeIterator.Current.GetAttribute("ansId", "");

How to get motherboard serial number, Processor ID, VolumeSerialNumber using C#?

Add using System.Management; namespace in your application then //Get motherboard's serial number ManagementObjectSearcher mbs = new ManagementObjectSearcher("Select * From Win32_BaseBoard"); foreach (ManagementObject mo in mbs.Get()) { textBox1.Text = mo["SerialNumber"].ToString(); } //Get Processor's Identity mbs = new ManagementObjectSearcher("Select * From Win32_processor"); foreach (ManagementObject mo in mbs.Get()) { textBox2.Text = mo["ProcessorID"].ToString(); } //Get Network Adapter Configuration mbs = new ManagementObjectSearcher("Select * From Win32_NetworkAdapterConfiguration"); foreach (ManagementObject mo in mbs.Get()) { textBox3.Text = mo["MACAddress"].ToString(); break; }