提神组合框 [英] refreshing combo box
问题描述
^ ]可能会有所帮助.
这可能对您有帮助.....
最后在单击按钮时编写此代码
comboBox1.Items.Clear(); comboBox1.Items.Add("---select---"); comboBox1.Items.Add("Male"); comboBox1.Items.Add("Female");
您可以使用
combobox1.text=string.Empty;
清除组合框.
希望对您有所帮助:)
有关更多查询,请在此处评论!!hi! i have problem in the combo box ..when i select the value in the combo box the value in the combo box remain unchanged even i used the function combo box1.refresh(); but it did not refresh..how can i set it again ??here i explain ...for example i have values in the combo box like male and female ..and at the form load the text that is pre written in the combo box is select gender and the values are male and female ...when the customer select the value male and when the form values submit after click on refresh button the vallue in the combo box must be refresh and again in the combo box there should be select gender text.....after refreshing thanx if u help
解决方案This[^] may help.
this may help you.....
Write this code at last in button click
comboBox1.Items.Clear(); comboBox1.Items.Add("---select---"); comboBox1.Items.Add("Male"); comboBox1.Items.Add("Female");
You can use
combobox1.text=string.Empty;
to clear the combobox.
hope this help :)
for further queries comment here!!
这篇关于提神组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!