borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (problems instantiating inherited forms)Next Topic (Highlight a Column) New Topic New Poll Post Reply
AndreaVB Forum : VB.Net : How to Use Keypress Event ?
Poster Message
its_yogesh
Level: Protégé

Registered: 03-12-2002
Posts: 7

icon How to Use Keypress Event ?

Hai All

In VB we can use keyascii
for example

if keyascii = 13 then
   txtname.setfocus
end if

but how can i use in vb.net?

please help me.

25-09-2003 at 05:59 PM
View Profile Send Email to User Show All Posts | Quote Reply
Chris_871
Level: Master


Registered: 30-11-2002
Posts: 106
icon Re: How to Use Keypress Event ?

In .net also u can use keyascii . but little change

if e.keychar = chr(13) then 'for enter key
   txtname.setfocus
end if

in any keypress event u can use this.

by
chris

25-09-2003 at 06:04 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB.Net : How to Use Keypress Event ?
Previous Topic (problems instantiating inherited forms)Next Topic (Highlight a Column) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder