473,396 Members | 1,785 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,396 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 1909
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: 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:
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.