By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,254 Members | 2,365 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,254 IT Pros & Developers. It's quick & easy.

Entering Text

P: 21
Can Anyone send me code just for entering Alphabets in either case(Capital or Small) including space as well as dot.
Thx in anticipation
Sep 1 '07 #1
Share this Question
Share on Google+
3 Replies


debasisdas
Expert 5K+
P: 8,127
u need to capture the key strokes and handle the key ascii and restrict the othres. before asking for code you need to post what / how u have tried to solve this.
Sep 1 '07 #2

sgrec7
P: 59
Can Anyone send me code just for entering Alphabets in either case(Capital or Small) including space as well as dot.
Thx in anticipation
if i knew what you have already tried it would make it a lot easier to give you help.. you haven't made anyones job easy by just asking for code.

try writing what you have done to try to solve the problem (and if you haven't tried to solve the problem then try and stop just trying to get everyone else to do your work!! )

no hard feelings

sgrec7
Sep 2 '07 #3

QVeen72
Expert 100+
P: 1,445
Hi,

Write this in KeyPress Event of textbox :

Expand|Select|Wrap|Line Numbers
  1. If Chr(KeyAscii) = " " Or Chr(KeyAscii) ="." Or (Ucase(Chr(KeyAscii))>="A" And UCase(Chr(KeyAscii)) <= "Z") Then
  2. Else
  3.     KeyAscii =0
  4. End If
  5.  
REgards
Veena
Sep 2 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.