Home Image-Pro Automation (Macros, Apps, Reports)

Control focus

How can I give focus to a control (e.g. button). I tried setting the following properties 'focus', 'focused', 'canfocus' but no luck.

Best Answer

  • Answer ✓
    2017-05-22-09334

    Paul --

    Here are some code SNIPPETS that may assist you.

            'Select the FIRST GROWTH TEXTBOX
            textBox_FirstGrowth.Focus()

            'SELECT the CONTINUE button
            button_ContinueTab3.Focus()

    I hope this is helpful.

    -- Matt

Answers

  • thanks, this is what I need. Think I missed the () when trying the 'focus' method. Rookie error.
  • 2017-05-22-104310

    Paul --

    One of the MEDIA CY GUYS pointed me to this a while back.

    I'm just passing along a favor.

    Good luck.

    -- Matt
Sign In or Register to comment.