Article View: borland.public.cppbuilder.nativeapi
Article #16049simple Keypress question
From: micheal davis
Date: Mon, 02 Jun 2003 01:07
Date: Mon, 02 Jun 2003 01:07
13 lines
1333 bytes
1333 bytes
Hi all,
I've an TEdit control that I want to avoid users entering spaces in it, so I
want to disable the key press of the space bar in the TEdit control
I've tried VK_SPACE under keydown event although it didn't work,
if(Key==VK_SPACE)
{ Key=0;
}
so does anyone know what is the number for the space bar in order to use it
under the keypress event.
thanks a lot for your help and support
Technical Details
Message-ID:
<3edaa344@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed1.earthlink.net!newsfeed.earthlink.net!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,d03b79cb5ee12d8a,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-06-01 18:12:13 PST From: "micheal davis" <micheal_davis@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: simple Keypress question Date: Sun, 1 Jun 2003 17:07:19 -0800 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 212.103.162.69 Message-ID: <3edaa344@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1054516036 212.103.162.69 (1 Jun 2003 18:07:16 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed1.earthlink.net!newsfeed.earthlink.net!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail