im creating a simple calculator and i dont know how to disable letter in the textbox.. can someone help me please...newbie here....BTW im using VB6...
masterfact18
0
Light Poster
Recommended Answers
Jump to Postif the inputted character is letter then
use the statementKeyAscii=0
you have to write that code on the key press event of the text box
now i hope that you can handle the issue with ASCII VALUES of letters
if you think letters as alphabets then ascii value range …
Jump to PostvbBack is string value
try Asc(vbBack)
All 7 Replies
rishif2
57
Posting Whiz in Training
masterfact18
0
Light Poster
TnTinMN
418
Practically a Master Poster
rishif2
57
Posting Whiz in Training
AndreRet
526
Senior Poster
masterfact18
0
Light Poster
AndreRet
526
Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.