VB.NET

Moderators: seancampbell
Number of threads: 4020
Number of posts: 10026

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
how to discard input key in keypress event Posted by aniskhan on 22 Oct 2005 at 1:28 PM
hello

usually did " keyascii = 0 " to discard the input key pressed in VB6.

but i was not able to do in vb.net that way..

i tried " e.keychar " to get the input key but can not discard the input key.

Suggest a simple way..
Report
Re: how to discard input key in keypress event Posted by kungfukittens on 22 Oct 2005 at 3:32 PM
This message was edited by kungfukittens at 2005-10-22 15:34:5

try
e.handled =true or is it e.handled = false
forgot..


Report
Re: how to discard input key in keypress event Posted by digitalgeek on 22 Oct 2005 at 5:47 PM
: This message was edited by kungfukittens at 2005-10-22 15:34:5

: try
: e.handled =true or is it e.handled = false
: forgot..
:
:
:
Sub Key_Press...

if e.Keychar = ... then
e.handled = true
end if

end sub

e.hanlded = false will leave the key event alone.

Report
Re: how to discard input key in keypress event Posted by aniskhan on 24 Oct 2005 at 1:48 AM
: Sub Key_Press...
:
: if e.Keychar = ... then
: e.handled = true
: end if
:
: end sub
:
: e.hanlded = false will leave the key event alone.
:
:
THANKS you guys have solved my simple problem

will look for help in future



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.