Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASP Instructor Knocks VFP
Message
From
09/09/2000 03:31:27
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00413034
Message ID:
00414570
Views:
29
John,

>I implemented the proper code in the class, Recompiled my projects, and viola the functionality works for all dates in my projects. Try that for you VB projects, and I'll get back to you next week....
><<
>
>Two ways to solve this in VB come to mind right now...



>1. Create a TextBox activeX control and have use instances of that
>2. Use a native TextBox control and use a behavior class that hooks into the
> keypress event

1. Not very lightweight.. You still have to replace all textboxes with activeX controls. By the way this might work for Textboxes but what in the following case ?

2. You still have check every checkbox in all your projects and hook them into the behaviourclass which in fact is bound to both the keypress and Valid event.


Example 2:

I saw that in the navision database the following was possible:
1. You could switch pages in a pageframe if you used a certain key combination. (Thus not alt+Hotkey).
2. It is possible to leave a form by pressing ESC

I did go to my forms baseclass class, entered the proper code in the keypress event compiled it and violla it work for all my projects.

Life can be easy when using inheritance.

John, I know for sure that when you'll have your inheritance in VB, you'll be talking a lot different when it comes to this subject.

Walter,
Previous
Reply
Map
View

Click here to load this message in the networking platform