Web form first control


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Web form first control

  1. #1
    Stephen Russell Guest

    Web form first control

    If I have 5 text boxes how do I get the cursor into the textbox upon opening
    of the form?

    __Stephen



  2. #2
    Boris Karadjov Guest

    Re: Web form first control

    By default Form sets the focus to the Control with the lowest value of
    TabIndex and TabStop = true.

    If you want to determine the Control that gets the focus when the Form is
    displayed at run time, set Form.ActiveControl in the Form constructor or
    OnLoad method.
    --
    Boris Karadjov
    Brainbench MVP for Visual C++
    http://www.brainbench.com


    "Stephen Russell" <Stephen.Russell@somewhereovertherainbow.org> wrote in
    message news:3ea71fd5@tnews.web.devx.com...
    > If I have 5 text boxes how do I get the cursor into the textbox upon

    opening
    > of the form?
    >
    > __Stephen
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center