Hi,
There's probably some easy way to do this but it's driving me mad...
I have a form with a combo box that is populated from a database. When I set the text of the combo box to the value in the db
the combobox remains highlighted, and if the text of the selected item is longer than the width of the combo box, it only shows the last characters. I want to remove this highlighting when the form is loaded (similar to what happens when you tab away from the combo, but still allow the highlighting when a user enters the combobox for entering data.
How can I achieve this?
I've seen someone suggest overriding the paint event, but I'm a bit green here and my attempts at this have failed.
Thanks
There's probably some easy way to do this but it's driving me mad...
I have a form with a combo box that is populated from a database. When I set the text of the combo box to the value in the db
VB.NET:
.Uc_address1.cmb_country.SelectedText = C_User.country
the combobox remains highlighted, and if the text of the selected item is longer than the width of the combo box, it only shows the last characters. I want to remove this highlighting when the form is loaded (similar to what happens when you tab away from the combo, but still allow the highlighting when a user enters the combobox for entering data.
How can I achieve this?
I've seen someone suggest overriding the paint event, but I'm a bit green here and my attempts at this have failed.
Thanks