Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView, ImageList error with LoadPicture
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00176276
Message ID:
00176763
Views:
30
>I have 2 suggestions for you Stephen:
>
>1. ActiveX controls cannot process events until a wait state occurs, so clicking an ActiveX control has no effect while user program code is executing. This is the same behavior for Visual FoxPro controls such as the Grid1.
>
>_VFP.AutoYield = .F. && Somewhere at the beginning of your app
>
>
>2. You may want to specify a fully qualified path in your laPictures[lnPicture,2] element.
>
>Either way, let me know. I've quite a bit of development using these ActiveX controls within VFP.
>
>P.S. Are you using VFP 5 or VFP6? What version of the ActiveX controls?

VFP 6.0 and autoyield is set to .F. in the "main". I believe that Doug's response hits the nail on the head........geeze....can you imagine....a bug in LoadPicture(). Why am I not surprised.\

Thanks much,
Steve
Previous
Reply
Map
View

Click here to load this message in the networking platform