Go to Post We need to celebrate great things because good enough isn't inspiring. - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 22-01-2010, 10:53
KC1AJT's Avatar
KC1AJT KC1AJT is offline
Head Mentor
AKA: Patrick
FRC #6617 (Bellinghan High School Black Hawks Robotics Club)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Massachusetts
Posts: 185
KC1AJT is an unknown quantity at this point
Question Need Visual Basic Help

I am in the process of designing a scouting program.
I have the following code:
Private Sub teamnum_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles teamnum.KeyPress

Dim allowedChars As String = "0123456789"

If allowedChars.IndexOf(e.KeyChar) = -1 Then
' Invalid Character
e.Handled = True
End If

End Sub

But I would like to add the function of a backspace key.
__________________
Mentor - Team 6617
_____________________________________________
Student Years - Team 61

2011 Boston Regional
2011 BAE Systems/Granite State Regional
2010 Northeast Utilities FIRST Connecticut Regional Finalist
2010 Boston Regional
2009 Archimedes Division
2009 Connecticut Regional
2009 Boston Regional Regional Winner
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Basic basicxman IT / Communications 11 13-11-2007 23:43
Visual basic Help plz Jevin H IT / Communications 4 30-03-2007 18:57
Visual Basic help needed. Cody Carey Programming 1 25-02-2007 15:06
Visual Basic dddriveman Programming 12 20-03-2004 13:03
Help programming in Visual Basic xxlshortys Programming 0 06-04-2003 08:54


All times are GMT -5. The time now is 02:50.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi