View Single Post
  #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