Hi Sergiy,
You can catch that!!!!!!!!.
Just see the below attached textfile.. This is the sample code,which i
followed with Key Vaues....
<<KeyVal.txt>>
Reargds,
Senthil Kumar.I
> -----Original Message-----
> From: Sergiy [SMTP:sergiy@x...]
> Sent: Tuesday, July 30, 2002 5:52 PM
> To: Application Design for Windows Desktops
> Subject: [dotnet_windows_app_design] How to catch Tab key in a text
> box?
>
> Hi,
>
> In VB6 you can catch the Tab key pressed on KeyPress event in a text box
> by:
> If KeyAscii = 9 Then
> . . .
>
> The code converted in VB.Net looks like:
>
> Private Sub Text1_KeyPress(ByVal eventSender As System.Object, ByVal
> eventArgs As System.Windows.Forms.KeyPressEventArgs) Handles
> Text1.KeyPress
> Dim KeyAscii As Short = Asc(eventArgs.KeyChar)
>
> If KeyAscii = 9 Then
> . . .
> But it doesn't work! It catches Enter key, or numbers, etc, but not Tab
> key.
>
> Anyone has an idea what needs to be done to catch a Tab key?
>
> Sergiy
>
>
>
WARNING: The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this message
by anyone else is unauthorised. If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error. Thank you.