Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combobox with defined itens to select 2

Status
Not open for further replies.

SitesMasstec

Programmer
Sep 26, 2010
526
Brasil
Hi!

I have a Combobox with the Init procedure:

With This
.AddItem("Green")
.AddItem("Yellow")
.AddItem("Red")
.ListIndex = 1
EndWith

I want it to perform in order that the user must not enter another color (and change any of the 3 pre-defined colors, or even erase any of them).

Is there any item in the Property window to achieve this?

Thank you,
Sites Masstec

 
What's not working?

By default a combobx is what its defined as: A combination of textbox and picklist/dropdown list. To just have a picklist, either use a listbox or sete combobox style=2.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top