
Combo Box - no2 dropdown list problem
If the ComboBox style is set to DropDownList type, then you can either add
the items at design time using the "List" property, or at run-time using
the cboCertificate.Additem method. To set the DropDownList to a "BLank"
set the cboCertificate.ListIndex = -1.
Setting a DropDownList type combo using a code statement like
cboCertificate.Text = ""
will most likely cause an error, which if not trapped could cause your
runtime to crash.
You can set the DropDownList box by setting the text property = "PG", or
any of your already added items, as long as the word has already been
added to the list.
If you are using a ComboBox then you can set the Text property without
using "AddItem" first however it does not actually get put into the list
until it is added.
Quote:
> Hi
> Pretty easy question I think I want to call a combobox
> cboCertificate and have catagories U, PG, 12, 15 & 18 as options
> but it sets the text property the same as the name and gives a text is
> read only message when I try to change the property to blank
> Could someone help
> Thanks
> Andrew