Results 1 to 3 of 3

Thread: [RESOLVED] passing the focus to a textbox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2005
    Posts
    64

    Resolved [RESOLVED] passing the focus to a textbox

    Hi can any one tell me how you pass the focus to a textbox say when a checkbox is ticked
    Thanks White grass

  2. #2
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: passing the focus to a textbox

    just use the Focus method of the textbox

    in the CheckedChanged event of the checkbox put
    Textbox1.Focus 'where Textbox1 is your textbox
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2005
    Posts
    64

    Re: passing the focus to a textbox

    Thanks I should have known
    it's only easy if you know the answer!!

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