Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassed Textbox in Grid
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00130514
Message ID:
00130517
Views:
23
Mark,

Make sure you set the CurrentControl property to the name of the textbox you added. Otherwise it uses the default TextBox control which is Text1.

>I have a Grid added to a form using 'AddObject'. After setting columncount, I added a textbox object to the columns using a subclassed textbox with code in the GotFocus, & LostFocus events. When running the form, the GotFocus & LostFocus event of the custom textbox control don't fire when the object gets or loses focus. To verify that the subclassed textbox was built correctly, I added a textbox based on the custom class directly to the form and the Gotfocus & LostFocus events fire normally.
>
>Any ideas?
>
>Mark Allen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform