Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox behavior - not responding
Message
From
09/06/2018 13:12:04
 
 
To
09/06/2018 11:20:04
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01660652
Message ID:
01660653
Views:
66
>Hi,
>
>I have a form on which I create a LIstbox - Fill the data with following code:
>
>
>Select curList
>	With Thisform.ggListbox
>		.RowSource = m.lcSQL
>		.RowSourceType = 3
>		.Requery()
>		.ListIndex = 1
>		.Visible = .T.
>		.SetFocus()
>	ENDWITH
>
>It shows the listbox with all the content correctly, however I cant do anything with it. Click on any Item, it does not respond.
>
>So for testing I had added a combobox with following code
>
>With Thisform.ggListbox
>		.RowSource = m.lcSQL
>		.RowSourceType = 3
>		.Requery()
>		.ListIndex = 1
>		.Visible = .T.
>		.SetFocus()
>	ENDWITH
>	**FOR testing purpose I had added a combo gglCombo1
>	With Thisform.gglcombo1
>		.RowSource = m.lcSQL
>		.RowSourceType = 3
>		.Requery()
>		.ListIndex = 1
>		.Visible = .T.
>		.SetFocus()
>	Endwith
>
>
>And the combo 'works' viz I can select a.s.o.
>What should I change to my code so that the Listbox will also allow an item to be selected?
>
>Regards,
>Koen

Did you set the listbox to readonly?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform