473,378 Members | 1,334 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Position Cursor

Hi All,

I have a form with 3 tab controls. Each tab control has
its own text boxes placed. My question is how do I place
the cursor in the first text box in the respective tab
control as the user clicks from tab control to tab
control.
Appreciate help.

SK
Jul 21 '05 #1
2 1907
Private Sub TabControl1_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles TabControl1.SelectedIndexChanged

Select Case TabControl1.SelectedIndex

Case 0

TextBox1.Focus()

Case 1

TextBox2.Focus()

End Select

End Sub
--
Sylvain Barde

MCP Microsoft Certified Professional
MCT Microsoft Certified Trainer
_________________________________________

MCSD Microsoft Certified Solution Developer
"Suresh Kumaran" <ku********@hotmail.com> a écrit dans le message de
news:4a****************************@phx.gbl...
Hi All,

I have a form with 3 tab controls. Each tab control has
its own text boxes placed. My question is how do I place
the cursor in the first text box in the respective tab
control as the user clicks from tab control to tab
control.
Appreciate help.

SK

Jul 21 '05 #2
Sylvain

Thanks. It worked
SK

-----Original Message-----
Private Sub TabControl1_SelectedIndexChanged(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles TabControl1.SelectedIndexChanged
Select Case TabControl1.SelectedIndex

Case 0

TextBox1.Focus()

Case 1

TextBox2.Focus()

End Select

End Sub
--
Sylvain Barde

MCP Microsoft Certified Professional
MCT Microsoft Certified Trainer
_________________________________________

MCSD Microsoft Certified Solution Developer
"Suresh Kumaran" <ku********@hotmail.com> a écrit dans le message denews:4a****************************@phx.gbl...
Hi All,

I have a form with 3 tab controls. Each tab control has
its own text boxes placed. My question is how do I place
the cursor in the first text box in the respective tab
control as the user clicks from tab control to tab
control.
Appreciate help.

SK

.

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: jason | last post by:
I've got this javascript routine (i found on google - thank you) in an asp.net page that on page reload sets the cursor of a textbox to the last line. It works great! Using a similar concept, I...
3
by: PeP | last post by:
Good morning, I have a form containing a text-area, I'd like to know if it exists a function that, when I activate an event, returns the position of the cursor in the text-area. For example, I...
25
by: JeffS | last post by:
Honest, I scoured the comp.lang.c.faq for this but found nothing. :) Is there a library function for placing the cursor position in the console? Or is it something that can only be done with a...
3
by: Mathieu Chavoutier | last post by:
I want to make a tool to design (like paint). So, I want to know the position of the mouse. Cursor.Position.X gives me that information. But, when I draw a picture, it is not at the good place...
1
by: Tantra Veda | last post by:
Hello C# gurus, I have a question about finding cursor position in NumericUpDown control. On my form I have a numericUpDown control with 2 decimal places. I want to increment value in the numeric...
1
by: Paul | last post by:
Hi all, I am making a DirectInput application wich must report correctly the cursor position in windowed mode (it means it has to be the same as Microsoft Window´s cursor position). First of...
2
by: tony | last post by:
Hello! Assume I catch a double click in a form by using the event handler that forms designer create for me. Now to my question when I double click in the form the event handler is trigged...
1
by: jobs | last post by:
I'm trying to understand this and don't get it... I found some code that looks like it's going to work if I can make sense of how to position the div. The code displays a div with some data...
4
by: Billy | last post by:
Hi all, I'm building a text file from a database table using the ASP Write Method and would like to position the cursor in a specific column position before writing the fields. As I loop through...
1
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
We have some dumb and lazy people here, so I need help. To fix the dumb part: We have placed MaskedTextBoxes on the forms so they will stop entering the information incorrectly. Now the lazy...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.