[Gambas-user] Setting default values on a listbox

P. Hightower sgriobhadair at ...626...
Sun Feb 7 20:56:16 CET 2010


I've been trying to find an answer to this question all afternoon and can't
seem to find it or figure it out from experimentation.

I'm working on a small program that relies on ListBox controls for selecting
an option. Right now the Form loads with the ListBox with nothing selected
and a value of null. What I'd like is for the form to come up with a
particular option in the ListBox preselected.

I've tried setting a text value for the listbox from form_open but that only
gives me an error saying the listbox.text is read only.

What am I missing?



More information about the User mailing list