Results 1 to 3 of 3

Thread: [RESOLVED] how to remove focus from other forms

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2007
    Posts
    76

    Resolved [RESOLVED] how to remove focus from other forms

    I have two forms. I move from Form1 to Form2 where there is a ok button in form2. Now i have to set form2 in such a way that other forms cannot be accessed unless the ok button of form2 is pressed......How to handle this?

  2. #2

  3. #3
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    Re: [RESOLVED] how to remove focus from other forms

    If you show Form2 vbModal, then no other form in your project can be interacted with, until you unload Form2
    Code:
      Form2.Show vbModal
      'When Form2 is unloaded, code execution will return to here
      Set Form2 = Nothing
    Rob C

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