how to move focus from one text box control to another text box control
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: how to move focus from one text box control to another text box control

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Posts
    115

    Question how to move focus from one text box control to another text box control

    Dear Sir,

    I am beginner in developing Web Application. I have a form which contains 5 text box control and I want when page is loaded the focus goes to 1st Text box control after that i filled some text i want to use tab key or enter key to move the focus next text box control. but how to do please help me is it possible in code behind file, I am using vb.net language. so please show me finest way so that i can follow up in future.

    Thanking You

    Debasis Bag

  2. #2
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,770

    Re: how to move focus from one text box control to another text box control

    Web forms do not have a settable Focus like Windows forms... however the Tab key will move the focus to the next Focus settable object in the webform (link, button, textbox, etc)..

    Enter will often default as the submit button..
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center