like we clear textbox item txtname.clear()..
so how we can bring combo box main item....
i have combo box of date...
and text of combo box is "Select Date"
after insertin the data i want to bring back "select Date" on combo box..
Hope someone will help me..
Regards..
Farhad
Farhad.idrees
1
Junior Poster in Training
Recommended Answers
Jump to PostI cant remember exactly but i think ComoBox.SelectedItem or ComoBox.SelectedText will do the trick.
Jump to PostcomboBox1.Text //an example code: comboBox1.Items.AddRange(new string[] { "item 1", "item 2", "item 3" }); comboBox1.Text = "Select date";
property will do it ones again!
But I would like to ask you how do you populate data into comboBox?
All 8 Replies
williamrojas78
11
Junior Poster
mcriscolo
47
Posting Whiz in Training
Mitja Bonca
557
Nearly a Posting Maven
Mitja Bonca
557
Nearly a Posting Maven
vivekagrawal
-3
Light Poster
vivekagrawal
-3
Light Poster
Mitja Bonca
557
Nearly a Posting Maven
Farhad.idrees
1
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.