Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox behavior - not responding
Message
From
09/06/2018 15:21:28
 
 
To
09/06/2018 13:12: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:
01660656
Views:
55
>>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?
Hi,
I cant find the property ReadOnly in listbox.
Read also an article by Mike Lewis : http://www.hexcentral.com/articles/readonly-listbox.htm
Regards,
Koen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform