Results 1 to 3 of 3

Thread: [RESOLVED] How to set focus to an object

  1. #1

    Thread Starter
    Lively Member VBNubcake's Avatar
    Join Date
    Feb 2008
    Location
    Caledon, Ontario, Canada
    Posts
    80

    Resolved [RESOLVED] How to set focus to an object

    is it possible to set focus to a command button from another command button?

    So like, if i click command1, can i set focus to command2?

    if so, how?

    thanks

    nubcake

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: How to set focus to an object

    In the click event of Command1, put this code:
    Code:
    Command2.SetFocus

  3. #3

    Thread Starter
    Lively Member VBNubcake's Avatar
    Join Date
    Feb 2008
    Location
    Caledon, Ontario, Canada
    Posts
    80

    Re: How to set focus to an object

    Quote Originally Posted by si_the_geek
    In the click event of Command1, put this code:
    Code:
    Command2.SetFocus
    i knew it!
    bad memory :P

    thx

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