Click here to Skip to main content
15,887,135 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalrunning a vb.net program on another comp Pin
mixsa4-Dec-04 22:37
sussmixsa4-Dec-04 22:37 
GeneralRe: running a vb.net program on another comp Pin
Dave Kreskowiak5-Dec-04 3:03
mveDave Kreskowiak5-Dec-04 3:03 
GeneralRe: running a vb.net program on another comp Pin
Mekong River5-Dec-04 3:13
Mekong River5-Dec-04 3:13 
Generalpocket pc problem Pin
Ali Usman4-Dec-04 15:34
Ali Usman4-Dec-04 15:34 
GeneralRe: pocket pc problem Pin
Mitch F.4-Dec-04 15:54
Mitch F.4-Dec-04 15:54 
GeneralRe: pocket pc problem Pin
Dave Kreskowiak5-Dec-04 3:02
mveDave Kreskowiak5-Dec-04 3:02 
GeneralRe: pocket pc problem Pin
Mekong River5-Dec-04 3:23
Mekong River5-Dec-04 3:23 
GeneralAllowing Certain Keys Only Pin
Mitch F.4-Dec-04 14:03
Mitch F.4-Dec-04 14:03 
Hello,
I am having troubles allowing only certain keys to work in Visual Basic .Net 2003, using the .Net Compact Framework.

My current code is (on the KeyPress event of a TextBox):
If e.KeyChar = ChrW(110) Then 'Decimal Key
    e.Handled = True
ElseIf e.KeyChar = ChrW(46) Then 'Delete Key
    e.Handled = True
ElseIf e.KeyChar = ChrW(8) Then  'Backspace Key
    e.Handled = True
ElseIf IsNumeric(e.KeyChar) = False Then 'Number Keys
    e.Handled = True
End If


However, only the Delete and Number keys work. The keys that I do want to work are the number keys, delete, backspace, and the decimal key.

If anyone could help, it would be greatly appreciated.

Thanks


Three great things about computers:
1. Visual Basic
2. Visual Basic .Net 2002
3. Visual Basic .Net 2003
GeneralPrint Preview "print button" select printer Pin
crsimmons4-Dec-04 6:23
crsimmons4-Dec-04 6:23 
GeneralRe: Print Preview "print button" select printer Pin
crsimmons5-Dec-04 2:53
crsimmons5-Dec-04 2:53 
QuestionHow can I cocnect TCP/IP to the Server? Pin
ATC4-Dec-04 4:14
ATC4-Dec-04 4:14 
Generaltroubles with MS.Access & ASP.NET. Pin
gamerPotatoe4-Dec-04 0:09
gamerPotatoe4-Dec-04 0:09 
GeneralRe: troubles with MS.Access & ASP.NET. Pin
Mekong River5-Dec-04 3:29
Mekong River5-Dec-04 3:29 
GeneralCRystal Report Pin
nitin_ion3-Dec-04 18:04
nitin_ion3-Dec-04 18:04 
GeneralDatagrid !!! Urgent Pin
syed saba3-Dec-04 16:22
syed saba3-Dec-04 16:22 
QuestionWindowshade? Pin
TAlvord3-Dec-04 13:32
TAlvord3-Dec-04 13:32 
AnswerRe: Windowshade? Pin
Dave Kreskowiak4-Dec-04 5:52
mveDave Kreskowiak4-Dec-04 5:52 
GeneralReturn the highest value Pin
helpmeplease...3-Dec-04 11:11
helpmeplease...3-Dec-04 11:11 
GeneralRe: Return the highest value Pin
Dave Kreskowiak3-Dec-04 12:35
mveDave Kreskowiak3-Dec-04 12:35 
GeneralRe: Return the highest value Pin
MohammadAmiry4-Dec-04 2:45
MohammadAmiry4-Dec-04 2:45 
QuestionCan Anyone Help me with this one? Pin
Suresh Prasad3-Dec-04 8:41
Suresh Prasad3-Dec-04 8:41 
AnswerRe: Can Anyone Help me with this one? Pin
Jim Matthews3-Dec-04 9:00
Jim Matthews3-Dec-04 9:00 
GeneralRe: Can Anyone Help me with this one? Pin
Suresh Prasad3-Dec-04 10:28
Suresh Prasad3-Dec-04 10:28 
GeneralRe: Can Anyone Help me with this one? Pin
Jim Matthews3-Dec-04 10:51
Jim Matthews3-Dec-04 10:51 
GeneralRe: Can Anyone Help me with this one? Pin
Suresh Prasad3-Dec-04 10:56
Suresh Prasad3-Dec-04 10:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.