Click here to Skip to main content
15,913,944 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: PictureBox Pin
helelark12321-Oct-09 22:34
helelark12321-Oct-09 22:34 
GeneralRe: PictureBox Pin
Eddy Vluggen21-Oct-09 23:59
professionalEddy Vluggen21-Oct-09 23:59 
GeneralRe: PictureBox Pin
helelark12322-Oct-09 0:58
helelark12322-Oct-09 0:58 
QuestionProblems with VB6 Winsock Connection and Senddata Method Pin
she-Developer20-Oct-09 20:29
she-Developer20-Oct-09 20:29 
AnswerRe: Problems with VB6 Winsock Connection and Senddata Method Pin
Christian Graus20-Oct-09 20:32
protectorChristian Graus20-Oct-09 20:32 
GeneralRe: Problems with VB6 Winsock Connection and Senddata Method Pin
she-Developer20-Oct-09 20:44
she-Developer20-Oct-09 20:44 
GeneralRe: Problems with VB6 Winsock Connection and Senddata Method Pin
Eddy Vluggen20-Oct-09 22:15
professionalEddy Vluggen20-Oct-09 22:15 
QuestionTest for NUMERIC values Pin
PAguilar0920-Oct-09 17:57
PAguilar0920-Oct-09 17:57 
Hi i am currently using this following code to test if the user enters in anything else besides numeric values:
I am having trouble because if I try to use the enter key or backspace key it also views it as a alphanumeric character and will display the error message but I WANT TO ALLOW THE ENTER AND BACKSPACE KEY any SUGGESTIONS?


Private Sub txtAns_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtAns.KeyPress
'*************************************************************************************
'in this subroutine when the user clicks on the text box to enter in his/her numeric value
'I will test for numeric validation and if the user tries to enter anything other then a number
'an error message will be displayed.
'*************************************************************************************

' textbox1 just accept numeric data
If Char.IsNumber(e.KeyChar) Then

e.Handled = False


Else
'numeric value has not been entered so display appropriate error msg and allow user to try again
MessageBox.Show("Please Enter Numbers Only")
txtAns.Clear()
e.Handled = True

End If
End Sub
AnswerRe: Test for NUMERIC values Pin
dan!sh 20-Oct-09 18:07
professional dan!sh 20-Oct-09 18:07 
GeneralRe: Test for NUMERIC values Pin
PAguilar0920-Oct-09 18:25
PAguilar0920-Oct-09 18:25 
GeneralRe: Test for NUMERIC values Pin
Christian Graus20-Oct-09 20:04
protectorChristian Graus20-Oct-09 20:04 
GeneralRe: Test for NUMERIC values Pin
dan!sh 20-Oct-09 21:16
professional dan!sh 20-Oct-09 21:16 
AnswerRe: Test for NUMERIC values Pin
Jaime Olivares20-Oct-09 18:24
Jaime Olivares20-Oct-09 18:24 
GeneralRe: Test for NUMERIC values Pin
PAguilar0920-Oct-09 18:28
PAguilar0920-Oct-09 18:28 
GeneralRe: Test for NUMERIC values Pin
Jaime Olivares20-Oct-09 18:58
Jaime Olivares20-Oct-09 18:58 
GeneralRe: Test for NUMERIC values Pin
Christian Graus20-Oct-09 20:05
protectorChristian Graus20-Oct-09 20:05 
GeneralRe: Test for NUMERIC values Pin
dan!sh 20-Oct-09 21:09
professional dan!sh 20-Oct-09 21:09 
GeneralRe: Test for NUMERIC values Pin
Christian Graus20-Oct-09 21:19
protectorChristian Graus20-Oct-09 21:19 
GeneralRe: Test for NUMERIC values Pin
dan!sh 20-Oct-09 21:14
professional dan!sh 20-Oct-09 21:14 
AnswerRe: Test for NUMERIC values Pin
_Damian S_20-Oct-09 18:33
professional_Damian S_20-Oct-09 18:33 
GeneralRe: Test for NUMERIC values Pin
Ashfield21-Oct-09 1:37
Ashfield21-Oct-09 1:37 
QuestionSharing SAPI Speech Objects Pin
wheeldog9920-Oct-09 14:52
wheeldog9920-Oct-09 14:52 
AnswerRe: Sharing SAPI Speech Objects Pin
Mycroft Holmes20-Oct-09 16:32
professionalMycroft Holmes20-Oct-09 16:32 
GeneralRe: Sharing SAPI Speech Objects Pin
wheeldog9921-Oct-09 9:26
wheeldog9921-Oct-09 9:26 
QuestionCalling cell address - Excel UDF in a DLL Pin
Hathome20-Oct-09 9:51
Hathome20-Oct-09 9:51 

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.