G
Galil
I have a subroutine I need to convert from vb.net 2005 to visual C++
( .net 2005)
The function only allows specific characters to be typed into a
textbox. the backspace and 0 -9.
Private Sub textbox1_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
Select Case Asc(e.KeyChar) <-- Is this function available in C
+
+?
Case 8, 48 To 57
e.Handled = False
Case Else
e.Handled = True
End Select
End Sub
Could someone convert this into C++?
or is there a way to call this subroutine in C++?
I am very new to programming so please be specific. (#include
statements, etc.)
Thank you
( .net 2005)
The function only allows specific characters to be typed into a
textbox. the backspace and 0 -9.
Private Sub textbox1_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
Select Case Asc(e.KeyChar) <-- Is this function available in C
+
+?
Case 8, 48 To 57
e.Handled = False
Case Else
e.Handled = True
End Select
End Sub
Could someone convert this into C++?
or is there a way to call this subroutine in C++?
I am very new to programming so please be specific. (#include
statements, etc.)
Thank you