?
Solved

WebControls

Posted on 2010-01-10
4
Medium Priority
?
248 Views
Last Modified: 2013-11-26
I have a serials of text boxes and as I input data in one text and reach its max I want it to auto tab to the next text box.

I set the tab index and that works find
I set the max-length to what i wanted
I looked into setting the focus
0
Comment
Question by:Dell12805
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 9

Accepted Solution

by:
magicdlf earned 2000 total points
ID: 26277893
Connect all the TextChanged events to this for all your textboxes
        private int maxText = 5;
        private void textBox_TextChanged(object sender, EventArgs e)
        {
            TextBox textBox = (TextBox)sender;
            if(textBox == null) return;
            if (textBox.Text.Length == maxText)
            {
                this.SelectNextControl((Control)sender, true, true, true, false);
            }
        }

0
 
LVL 9

Expert Comment

by:magicdlf
ID: 26277898
Oops, it's web apps. My solution is for winforms. I believe you need javascript in this case.
0
 
LVL 9

Expert Comment

by:magicdlf
ID: 26277908
0
 

Author Closing Comment

by:Dell12805
ID: 31675171
Thanks that works.
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Starting up a Project

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question