Results 1 to 15 of 15

Thread: What gets selected, when the project is run?

Hybrid View

  1. #1
    Head Hunted anhn's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    3,669

    Re: What gets selected, when the project is run?

    @RodDog, your way will make it "look normal" but all controls are disabled, you will need code to enable them.
    I think the OP wants no control gets focus when open the form but they must be enabled as normal and ready to be clicked.
    By default, as LaVolpe said, the first enabled control (in tab order), if any, will receive focus when the form open, if no enabled control the form will receive focus.

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: What gets selected, when the project is run?

    Quote Originally Posted by anhn
    @RodDog, your way will make it "look normal" but all controls are disabled, you will need code to enable them.
    I think the OP wants no control gets focus when open the form but they must be enabled as normal and ready to be clicked.
    By default, as LaVolpe said, the first enabled control (in tab order), if any, will receive focus when the form open, if no enabled control the form will receive focus.
    That code would just be

    Frame1.Enabled = True

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