Reputation: 521
I have a form with a combo box. Currently It displays the available values from the database. But for a particular scenario, I wants it dynamically change to a text box so that the user can manually enter the value. Can I do it in the same form. If I use a second form,I can solve this problem. But I want to do it with little code changes. Can someone provide some ideas?
Upvotes: 0
Views: 1862
Reputation: 521
I used a combo array(combobox(0),combobox(1)) with two different styles(simple combo and dropdowncombo) and made it visible and disable at runtime using the Visible property
Upvotes: 0
Reputation: 453
You can set
My bad. Indeed, in vb6 the style property can't be changed during runtime. DropDownStyle
to DropDown
.
Locked
property.Upvotes: 1