J
Jesper, Denmark
Hi,
I'm using a combobox in DropDown style. It shows the time in hours for a
proces. In the drop down list I've put in some values like
15 min
30 min
45 min
1 h
2h
etc...
When these are selected, they are converted into hours. This number is
written in the Text property of the cmb_control. I.e. when 45 min is
selected, I want the combobox to show 0.75. However, It's like the Text
property is not reacting (or cannot override a selected index). I've tried
deselect by setting the SelectedIndex property to -1 before writing to the
Text property of the control, but it does not work either.
How can I enforce the Text property of the combobox shown after a
SelectedIndexChanged event.
Any idea to resolve this problem?
Regards Jesper.
I'm using a combobox in DropDown style. It shows the time in hours for a
proces. In the drop down list I've put in some values like
15 min
30 min
45 min
1 h
2h
etc...
When these are selected, they are converted into hours. This number is
written in the Text property of the cmb_control. I.e. when 45 min is
selected, I want the combobox to show 0.75. However, It's like the Text
property is not reacting (or cannot override a selected index). I've tried
deselect by setting the SelectedIndex property to -1 before writing to the
Text property of the control, but it does not work either.
How can I enforce the Text property of the combobox shown after a
SelectedIndexChanged event.
Any idea to resolve this problem?
Regards Jesper.