if (txtBoxQuestion.Text == "" || txtbxchoice1.Text == "" || txtbxchoice2.Text == "" || txtbxchoice3.Text == "" || txtbxchoice4.Text == "" || Cmboboxtype.SelectedIndex ==0) { MessageBox.Show(" Please Fill All TEXT BOXES"); }
Just use
Cmboboxtype.SelectedItem="Choose Item...";
Or you may use selectedindex
Cmboboxtype.SelectedIndex=0 ; //or 1,2,3 index of the item
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)