home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code1 / focusprb / readme.txt < prev   
Text File  |  1994-04-14  |  855b  |  19 lines

  1. FocusPrb: Keeping Track of Last Control After MsgBox Invoked in LostFocus Event
  2.  
  3. The sample FOCUS.MAK project contains the files FORM1.FRM and FORM2.FRM.
  4.  
  5. The idea of the sample is to demonstrate how to design your own message box
  6. for validation checking. Because of the problem with using MSGBOX(ie modal
  7. window). You can try something like this sample instead. The article that
  8. talks more on the problem is: Q85856.
  9.  
  10. You first want to enter some text in the Text1 box. Then press the Tab key
  11. to move the focus to the next control(ie Text2), you will see a customized
  12. message box(ie form2) become displayed. Select either the Yes of No button to
  13. proceed on. If you select the Yes button, then the focus will be in the
  14. Text2 text box.  
  15.  
  16. The same steps need to be choosen to get the focus from the Text2 text box to
  17. the Text3 text box.
  18.  
  19.