I tried many ways , but have non can successfully alter the combo box Text after selected an item from drop down, and I want to make sure this is just not possible.
This is what I need, if after I selected an item - "1 apple" from the drop down, i want the combo box shows text, "1". I tried write code in different eventhandlers, overrider Text property, clear items . non of those way can achieve this.
public class AccountComboBox : ComboBox
public override string Text
if (this.SelectedItem != null)
base.Text = SelectedItem.ToString().Remove(this.SelectedItem.ToString().IndexOf(" "));
View Complete Post