473,387 Members | 1,890 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,387 software developers and data experts.

emulate tab key

HI

In a edit form which has text boxes is it possible to emulate TAB and
Shift-TAB with the UP & DOWN keys

Thanks in advance
Feb 16 '06 #1
2 2711
yes have a look at SelectNextControl

'Example
Private Sub Textbox_KeyUp(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles txt1.KeyUp, txt2.KeyUp,
txt3.KeyUp
If e.KeyCode = Keys.Up Then
Me.SelectNextControl(CType(sender, Control), False, True, True, True)
ElseIf e.KeyCode = Keys.Down Then
Me.SelectNextControl(CType(sender, Control), True, True, True, True)
End If
End Sub

"Starbuck" <st******@tisconi.com> wrote in message
news:u$*************@TK2MSFTNGP09.phx.gbl...
HI

In a edit form which has text boxes is it possible to emulate TAB and
Shift-TAB with the UP & DOWN keys

Thanks in advance

Feb 16 '06 #2
Many thanks
"AMDRIT" <am****@hotmail.com> wrote in message
news:uS**************@TK2MSFTNGP09.phx.gbl...
yes have a look at SelectNextControl

'Example
Private Sub Textbox_KeyUp(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles txt1.KeyUp, txt2.KeyUp,
txt3.KeyUp
If e.KeyCode = Keys.Up Then
Me.SelectNextControl(CType(sender, Control), False, True, True, True)
ElseIf e.KeyCode = Keys.Down Then
Me.SelectNextControl(CType(sender, Control), True, True, True, True)
End If
End Sub

"Starbuck" <st******@tisconi.com> wrote in message
news:u$*************@TK2MSFTNGP09.phx.gbl...
HI

In a edit form which has text boxes is it possible to emulate TAB and
Shift-TAB with the UP & DOWN keys

Thanks in advance


Feb 17 '06 #3

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

Similar topics

7
by: Bruce A. Julseth | last post by:
How do I emulate the web page "Close" Button, i. e. the "X" in the upper right hand corner of each web page? Thank you.... Bruce
2
by: Bart Nessux | last post by:
This probaly isn't possible with Python, but I thought I'd ask. I want to emulate a key press programatically. I want the computer (G5 running Mac OSX 10.3) to think that the user has pressed the...
1
by: Bob Van Der Ploeg | last post by:
I need a DB design to emulate a operating system so I can add folders (Categories) with unlimited folders (Sub categories) in side folders Any suggestions? Bob
2
by: bulk88 | last post by:
How can I emulate DOM level 1 removeChild in IE 4? I already figured out to emulate getElementById by doing this if((!document.getElementById) && document.all) {document.getElementById =...
61
by: /* frank */ | last post by:
I have to do a homework: make a CPU simulator using C language. I have a set of asm instructions so I have to write a program that should: - load .asm file - view .asm file - do a step by step...
3
by: mario.rossi | last post by:
Hello! I would like to write a pointer to type template that behaves exactly and completely like normal pointers, which I will use as starting point for other kinds of pointers that hold extra...
7
by: C a r l o s A n t o n i o | last post by:
Hello, I have to submit a file via HyperTerminal using my PC's internal modem on a daily basis. Does anybodoy know how to accomplish this in VS2005? Any language is good, VB preferred. ...
11
by: Andrus | last post by:
I'm implementing entity object which should populate its properties from database when property is first referenced. In RDL reports I use object properties like MyObject.MyProperty MyObject...
0
by: Sin Jeong-hun | last post by:
The term 'system-wide' just means that click is dealt in whole-screen wide level. Just like the real mouse pointer. What I'd like to do is to emulate mouse move and click. For example, the...
14
by: Eugeny Myunster | last post by:
Hello all, How can i emulate sizeof() only for integers?
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.