M
Michael J. Salamone
Reposting to a larger audience - hope someone can help!
This may seem a bit odd, but I'd like to set the text in a ComboBox control
when an item is selected from the drop down list. I want the text to be
different than the display text of the selected item.
For example, if "x" is the display text of the selected item, I want the
text in the text box to be set to "y".
I tried changing the text on SelectedIndexChanged event, but the text is set
(by the control) to the display text of the selected item *after* this
event. I've also tried TextChanged (same problem as SelectedItemChanged)
and TextUpdate (but this only fires when the user enters text directly in
the text box).
In Win32, I do this at WM_COMMAND/CBN_SELCHANGE time, which I would have
thought equates to SelectedIndexChanged in the .NET Framework.
Any ideas?
This may seem a bit odd, but I'd like to set the text in a ComboBox control
when an item is selected from the drop down list. I want the text to be
different than the display text of the selected item.
For example, if "x" is the display text of the selected item, I want the
text in the text box to be set to "y".
I tried changing the text on SelectedIndexChanged event, but the text is set
(by the control) to the display text of the selected item *after* this
event. I've also tried TextChanged (same problem as SelectedItemChanged)
and TextUpdate (but this only fires when the user enters text directly in
the text box).
In Win32, I do this at WM_COMMAND/CBN_SELCHANGE time, which I would have
thought equates to SelectedIndexChanged in the .NET Framework.
Any ideas?