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

Visual Basic

 
GeneralRe: Software and hardware integration Pin
Ralf Meier26-Sep-19 20:39
mveRalf Meier26-Sep-19 20:39 
GeneralRe: Software and hardware integration Pin
Otekpo Emmanuel27-Sep-19 8:50
Otekpo Emmanuel27-Sep-19 8:50 
GeneralRe: Software and hardware integration Pin
Ralf Meier27-Sep-19 22:21
mveRalf Meier27-Sep-19 22:21 
AnswerRe: Software and hardware integration Pin
jkirkerx29-Sep-19 11:19
professionaljkirkerx29-Sep-19 11:19 
QuestionVisual Basic Pin
RajaMohammed.A23-Sep-19 20:26
RajaMohammed.A23-Sep-19 20:26 
AnswerRe: Visual Basic Pin
Richard MacCutchan23-Sep-19 21:00
mveRichard MacCutchan23-Sep-19 21:00 
AnswerRe: Visual Basic Pin
Eddy Vluggen24-Sep-19 1:38
professionalEddy Vluggen24-Sep-19 1:38 
GeneralFind a File on the Desktop per Location Pin
tooli20-Sep-19 20:26
tooli20-Sep-19 20:26 
QuestionOutputDebugString Pin
Member 1368314914-Sep-19 10:37
Member 1368314914-Sep-19 10:37 
AnswerRe: OutputDebugString Pin
Mycroft Holmes14-Sep-19 12:49
professionalMycroft Holmes14-Sep-19 12:49 
AnswerRe: OutputDebugString Pin
Eddy Vluggen15-Sep-19 12:45
professionalEddy Vluggen15-Sep-19 12:45 
GeneralRe: OutputDebugString Pin
Member 1368314916-Sep-19 5:53
Member 1368314916-Sep-19 5:53 
AnswerRe: OutputDebugString Pin
Eddy Vluggen1-Oct-19 4:05
professionalEddy Vluggen1-Oct-19 4:05 
Questionvb.net in sql data fetching on dataGridView problem Pin
Member 1227528514-Sep-19 3:49
Member 1227528514-Sep-19 3:49 
AnswerRe: vb.net in sql data fetching on dataGridView problem Pin
Dave Kreskowiak14-Sep-19 5:31
mveDave Kreskowiak14-Sep-19 5:31 
AnswerRe: vb.net in sql data fetching on dataGridView problem Pin
Mycroft Holmes14-Sep-19 12:44
professionalMycroft Holmes14-Sep-19 12:44 
Questioni want to erase two datatables with a single button please help Pin
Augusto1008-Sep-19 7:35
Augusto1008-Sep-19 7:35 
AnswerRe: i want to erase two datatables with a single button please help Pin
Dave Kreskowiak8-Sep-19 16:59
mveDave Kreskowiak8-Sep-19 16:59 
GeneralRe: i want to erase two datatables with a single button please help Pin
Augusto10010-Sep-19 7:44
Augusto10010-Sep-19 7:44 
GeneralRe: i want to erase two datatables with a single button please help Pin
Dave Kreskowiak10-Sep-19 8:51
mveDave Kreskowiak10-Sep-19 8:51 
GeneralRe: i want to erase two datatables with a single button please help Pin
Augusto10011-Sep-19 4:14
Augusto10011-Sep-19 4:14 
GeneralRe: i want to erase two datatables with a single button please help Pin
Richard MacCutchan11-Sep-19 5:39
mveRichard MacCutchan11-Sep-19 5:39 
GeneralRe: i want to erase two datatables with a single button please help Pin
Richard Deeming11-Sep-19 23:33
mveRichard Deeming11-Sep-19 23:33 
You haven't told us which line of your original post is line 41, but I'm guessing it's one of these:
VB.NET
CodigoInterno = Me.cmbCodigoInternoEDC.Text
CodigoInterno1 = Me.cmbCodigoInternoVH.Text

The error is telling you that the value in one of those textboxes cannot be converted to an Integer.

Specifically, the textbox is empty. An empty string cannot be converted to an Integer.

Use Integer.TryParse[^] to attempt to convert the user input to an integer. If it fails, report an error to the user.
VB.NET
If Not Integer.TryParse(Me.cmbCodigoInternoEDC.Text, CodigoInterno) Then
    Me.cmbCodigoInternoEDC.Focus()
    MessageBox.Show("Please enter a valid number")
    Return
End If

If Not Integer.TryParse(Me.cmbCodigoInternoVH.Text, CodigoInterno1) Then
    Me.cmbCodigoInternoVH.Focus()
    MessageBox.Show("Please enter a valid number")
    Return
End If




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: i want to erase two datatables with a single button please help Pin
Augusto10011-Sep-19 4:16
Augusto10011-Sep-19 4:16 
GeneralRe: i want to erase two datatables with a single button please help Pin
Richard MacCutchan11-Sep-19 6:38
mveRichard MacCutchan11-Sep-19 6:38 

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.