Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox picture issues
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Listbox picture issues
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01136520
Message ID:
01136520
Views:
80
I have a listbox on my form with the following properties:
.RowSource = mcategor.desc
.RowSourceType = 6
.Picture = "listbox.bmp"
In the Init of my form I am trying to set the picture value of some of the listbox items to a different image. But when the listbox is displayed, all items are shown with the same default picture.

However, if I change the listbox properties to this:
.RowSource = "One,Two,Three,Four,Five"
.RowSourceType = 1
.Picture = "listbox.bmp"
and then do the same code in my Init, everything works fine and the items I wanted to show up with a different picture.

Can someone tell me 1)Why the listbox won't let me update the image in the form's Init when the RowSourceType = 6 and 2) If there is a workaround for this?

Thanks tons for your help!
Next
Reply
Map
View

Click here to load this message in the networking platform