Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Works in EditBox but not in Textbox
Message
 
To
09/07/2002 09:24:56
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00676530
Message ID:
00676592
Views:
10
When you comment out the valid code it runs as you expect it to?

>Caroline
>
>This is what gets me, the Valid code has 2 IF statements but none of them execute because the Textbox doesn't satisfy any criteria.
>
>So no code actually runs!!
>
>Kev
>
>
>>Kev,
>>I seem to remember having a similar problem and I solved it by storing the SelStart and SelLength then resetting them.
>>If you would like me to take a look at the valid code....or have you identified exactly which line causes the reset?
>>
>>>Hi Caroline
>>>
>>>I have code in the Valid but it is not doing anything to the value etc. in the textbox but it is still unselecting the text.
>>>
>>>It doesn't happen on textbox's which are not executing the Valid event.
>>>
>>>Kev
>>>
>>>>>Hi
>>>>>
>>>>>I have some code in the RightClick() event of both my EditBox's and Textbox's - identical code.
>>>>>
>>>>>When I select some text from the Textbox and right-click it loses the SelStart and SelText properties - they reset to 0. This works fine in the Editbox though!
>>>>>
>>>>>Any ideas? I've checked everything.
>>>>>
>>>>>Kev
>>>>Kev,
>>>>Are you sure you don't have any code in the base class for the TextBox maybe LostFocus or Valid?
>>>>
>>>>Try testing the code on a clean form with a clean TextBox (ie use Fox classes) just to see how your code should react.
>>>>
>>>>HTH
Caroline
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform