"rowe_newsgroup s" <ro********@yah oo.comwrote in message
news:11******** **************@ p10g2000cwp.goo glegroups.com.. .
>
Ok, use a standard textbox and add a event handler to for the KeyPress
event and block the keystroke there.
Something like:
Private Sub TextBox1_KeyPre ss(ByVal sender As System.Object, ByVal
e As System.Windows. Forms.KeyPressE ventArgs) Handles TextBox1.KeyPre ss
If Not Char.IsNumber(e .KeyChar) Then e.Handled = True
End Sub
Let me know how it works out!
Thanks,
Seth Rowe
Thanks Seth, that did work.
Now, how about this...my smartphone (Cingular Blackjack) has a QWERTY
keyboard with the numbers "on top" of some of the letters. For example, the
1 is on the e key, 2 is on the t key, 3 is on the u key, etc. Is there a
way instead to have it substitute the numbers when the corresponding letter
key is pressed?
Something like
if keypressed = "e" then keypressed = "1"
I could probably wrangle my way through this with VB6, but I'm about as much
a newbie with VB05 as anyone.
Thanks again!
d