Problem in Combobox
If we split some text from selected item of combobox and required to set that splitted text as combobox.Text .... How can we solve that problem ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
ahmedPosted Jan 23, 2008, 5:55 AM
hi
i think solving this problem by writing code in this event
-
ExampleMouseUp combobox
- create windows application
- drag ombobox called combobox1 ,Label called Label1
- select event MouseUp
- write this code
private void comboBox1_MouseUp(object sender, MouseEventArgs e){
comboBox1.Text = comboBox1.SelectedText;
}
5- build programme and try it by select value from combobox ,slect part from text ,relase mouse click , u will see selected text on label1
thanks