Results 1 to 5 of 5

Thread: Need to click twice on the button

  1. #1
    Guest
    In my application, from the main form, another (modal) form is opened with another button having the focus. However when i click the button nothing seems to happen. But the second time i click the button, the click event gets fired.
    It is such that i need to click on the form once(any where) and then click the button before i can get the button click to be fired. With the key board everything seems to be fine

    Could any one have any idea why?

    Thanx!

  2. #2
    Guest
    Post your code, maybe there is an error in that.

  3. #3
    Guest
    'other code not related to form2
    form2.Show vbModal
    'other code

    form2_activate:
    okbtn.setfocus

  4. #4
    Guest
    form2_activate:
    okbtn.setfocus
    Try this instead:

    Code:
       okbtn.default=true
    oughta work


  5. #5
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    I once had a situtation where something weird like that was happening and I couldn't get it going for the life of me so I finally just deleted the problem form and made a new one and all went well from there.

    No idea why or how but the new form was the answer.
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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