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

Intercepter l'appui de la touche Tabulation

Bonjour,

Dans une winform, je cherche à intercepter l'évènement généré par
l'appui de la touche tabulation.

J'ai essayé d'intercepter les évènements KeyPress, KeyDown et KeyUp.
Par exemple :

Private Sub frmProposition_KeyDown(ByVal sender As Object, ByVal e
As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If e.KeyData = Keys.Tab Then
_messageOK = False
End If
End Sub

J'ai également essayé de procéder de cette manière :

Protected Overrides Sub OnKeyDown(ByVal e As
System.Windows.Forms.KeyEventArgs)
If e.KeyCode = Keys.Tab Then
MessageBox.Show("OK")
End If
End Sub

Toutes ces méthodes interceptent l'appui d'une touche mais pas l'appui
de la touche tabulation.
Savez-vous comment procéder ?

Merci d'avance.

Aug 21 '07 #1
1 2171
Hi,

If you use the key-up you will see in the information from the e (event)
much more information than when it was pressed.

Will you be so kind to use next time in English. This is not an English
newsgroup (there is no UK or US at the end), however many users are from
English speaking countries, using an English version of Visual Studio or
just like to communicate here because beside that the community members in
this group are very international.

Therefore we use English as our communication language.

Thanks in advance,

Cor

<xl******@gmail.comschreef in bericht
news:11**********************@22g2000hsm.googlegro ups.com...
Bonjour,

Dans une winform, je cherche à intercepter l'évènement généré par
l'appui de la touche tabulation.

J'ai essayé d'intercepter les évènements KeyPress, KeyDown et KeyUp.
Par exemple :

Private Sub frmProposition_KeyDown(ByVal sender As Object, ByVal e
As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If e.KeyData = Keys.Tab Then
_messageOK = False
End If
End Sub

J'ai également essayé de procéder de cette manière :

Protected Overrides Sub OnKeyDown(ByVal e As
System.Windows.Forms.KeyEventArgs)
If e.KeyCode = Keys.Tab Then
MessageBox.Show("OK")
End If
End Sub

Toutes ces méthodes interceptent l'appui d'une touche mais pas l'appui
de la touche tabulation.
Savez-vous comment procéder ?

Merci d'avance.

Aug 22 '07 #2

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

Similar topics

1
by: Raymond H. | last post by:
Hello, I tried for a long time to find a means of preventing the menu of the right button of the mouse to appear in Textbox but without success because I always could found a way of making it...
2
by: selwyn | last post by:
hi there, I would like some pointers on a pythonesque way of cross-tabulating an SQL result set. i.e. from the result set below: dept | gender ------------- hr | m hr | f
0
by: Med | last post by:
How to disable return or making it as tabulation in asp page, I have some fields, the user visit fields by typing tabulation and the valid the values but if he type the return the execute a...
17
by: bearophileHUGS | last post by:
Hello, I know this topic was discussed a *lot* in the past, sorry if it bores you... >From the Daily Python-URL I've seen this interesting Floating Point Benchmark:...
5
by: surena abari | last post by:
Hi, When writing the hello world program I insert \b in various locations in the sentence.It works(making backspace) except when inserting it after world\b.It dose not work. Printf("hello,...
0
by: Stewart Midwinter | last post by:
I have a Tkinter app running on cygwin. It includes a Test menu item that does nothing more than fetch a directory listing and display it in a Toplevel window (I'd use a tkMessageBox showinfo...
1
by: boutnach | last post by:
Hello, I came across this expression in C code \ n. Would anyone know what this means? Thanks
2
by: js19 | last post by:
I'm searching for a way to force 2 words to always appear together on the same line in IE, FireFox and NN 8.x. The 2 words are my company's name. Let's use Deloitte Touche as an example. Each Web...
0
by: Narz1986 | last post by:
hi.....i am trying to create a cross table report...but i m not getting any idea about how to do so... here is my data i hve a tabe with three columns date Category unit...
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: 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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.