Results 1 to 2 of 2

Thread: Determining the Previous Control

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Location
    Pierre, SD USA
    Posts
    23

    Question

    Okay, perhaps this is a simple questions, but the answer is certainly eluding me.

    In VBA the Screen object has a PreviousControl property, which is very useful if you want to know which control had the focus before the current one received it. In VB, however, the Screen object does not have this property. Does anyone have any ideas how to determine the previous control in VB?

    Barrie A. Sargent
    Programmer/Analyst - VB/VBA

  2. #2
    Guest
    It would somewhat burdensome to do this after the form was created, but you could set up a global IWasThere and in each control code section set it to the name of the control.

    I don't know of any other way, but, hopefully, you'll get a better answer.


    Good Luck
    DerFarm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width