How can i clear the fields when ever form loads?

Posted by Sudheep.grandhe under C# on 1/7/2012 | Points: 10 | Views : 896 | Status : [Member] | Replies : 1
Hi,

I am developing Windows applications.I having two combo boxes.my requirment is when form loads it will display "select one" message like that.How can i do this.please do the needful.

Best,
Sudheep.



Responses

Posted by: Awakale.gajanan on: 1/7/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Sandheep,
You can use following code to clear your comboboxes on load event of page & whenever you want.


private void Form1_Load(object sender, EventArgs e)
{
comboBox1.Items.Insert(0, "Select One");
comboBox1.SelectedIndex = 0;
}

Regards,
Gajanan Awakale
09975635088

Sudheep.grandhe, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response