Foc002 Focus U-Turn Re-Load Form wwwwp wwwwwp Form1+ lblComments1 This form is used to demonstrate that the 'Focus U-Turn' techniques used in the first form work when the form is loaded, unloaded, and subsequently reloaded. It is also a convenient place to display a copyright notice and advertise my new book. lblComment2 I Focus U-Turn Test Program, Copyright (c) 1992, ETN Corporation lblComment3 Controlling focus is very important in both Windows and Visual Basic application design and programming. Understanding event processing and, more importantly, which particular events to use is another key skill. As you examine this little Visual lblComment4 Basic application, please note that it is both very simple and considerably complex. It is complex not so much because of the number of lines of code but because of the way in which it controls what happens on its forms. There are, perhaps, many lblComment5 ways in which to add Category 2 (i.e., 'verify on exit') edits to your VB forms. The technique for performing 'Focus U-Turns' presented herein is analagous to the technique used in Windows SDK/C/C++ edit control subclassing. If you find this lblComment6 interesting and want to learn more about focus, events, smart objects, Windows, and Visual Basic application designing and programming, then the following book will prove useful. lblComment7 ,VB=mc2: The Art of Visual Basic Programming lblComment10 by J. D. Evans, Jr. lblComment9 ?Book: $29.95 Companion Diskette: $9.95 UPS (USA): $4.95 lblComment8 ETN Corporation RR4 Box 659 Montoursville, PA 17754-9433 USA Tel: (717) 435-2202 Fax: (717) 435-2802 pbtLoadFocusUTurn Re-Load FOCUS-U-TURN Form lblComment11 JRegistered and unregistered trademarks used herein belong to their owners. pbtLoadFocusUTurn_Click Foc001 Foc002 rbtDirection_Click Index szMsg ngIgnoreClickA TRUEZ FALSE) ngCtlFocusID nRetVal Verify rbtDirection Value ngCurrDirectionValue nMsgOn FocusUTurnh rbtDirection_GotFocus ngVerifyOK rbtDirection_LostFocus pbtLoadFocusUTurn_Click