Click here to Skip to main content
15,126,498 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: OutputDebugString Pin
Mycroft Holmes14-Sep-19 13:49
professionalMycroft Holmes14-Sep-19 13:49 
AnswerRe: OutputDebugString Pin
Eddy Vluggen15-Sep-19 13:45
professionalEddy Vluggen15-Sep-19 13:45 
GeneralRe: OutputDebugString Pin
Member 1368314916-Sep-19 6:53
MemberMember 1368314916-Sep-19 6:53 
AnswerRe: OutputDebugString Pin
Eddy Vluggen1-Oct-19 5:05
professionalEddy Vluggen1-Oct-19 5:05 
Questionvb.net in sql data fetching on dataGridView problem Pin
Member 1227528514-Sep-19 4:49
MemberMember 1227528514-Sep-19 4:49 
AnswerRe: vb.net in sql data fetching on dataGridView problem Pin
Dave Kreskowiak14-Sep-19 6:31
mveDave Kreskowiak14-Sep-19 6:31 
AnswerRe: vb.net in sql data fetching on dataGridView problem Pin
Mycroft Holmes14-Sep-19 13:44
professionalMycroft Holmes14-Sep-19 13:44 
Questioni want to erase two datatables with a single button please help Pin
Augusto1008-Sep-19 8:35
MemberAugusto1008-Sep-19 8:35 
VB

Public Sub llenaCombo()
Me.cmbCodigoInternoEDC.Items.Clear()
sql = "Select CodigoInterno from [Equipos de Computacion]"
cmd.CommandType = CommandType.Text
cmd.Connection = conn
cmd.CommandText = sql
dr = cmd.ExecuteReader

If dr.HasRows = True Then
While dr.Read()
Me.cmbCodigoInternoEDC.Items.Add(dr.GetValue(0))
End While
End If
dr.Close()

End Sub
Public Sub llenaCombo1()
Me.cmbCodigoInternoVH.Items.Clear()
sql = "Select CodigoInterno from Vehiculos"
cmd.CommandType = CommandType.Text
cmd.Connection = conn
cmd.CommandText = sql
dr = cmd.ExecuteReader

If dr.HasRows = True Then
While dr.Read()
Me.cmbCodigoInternoVH.Items.Add(dr.GetValue(0))
End While
End If
dr.Close()

End Sub

Private Sub BtnBorrar_Click(sender As Object, e As EventArgs) Handles btnBorrar.Click
Dim CodigoInterno As Integer
Dim CodigoInterno1 As Integer
CodigoInterno = Me.cmbCodigoInternoEDC.Text
CodigoInterno1 = Me.cmbCodigoInternoVH.Text
cmd.CommandType = CommandType.Text
cmd.Connection = conn

If sql = "Select * from [Equipos de Computacion]" Then
sql = "delete [Equipos de Computacion] where CodigoInterno= " & CodigoInterno & ""
cmd.CommandText = sql
ElseIf sql = "Select * from Vehiculos" Then
sql = "delete Vehiculos where CodigoInterno= " & CodigoInterno1 & ""
cmd.CommandText = sql
End If

Try
cmd.ExecuteNonQuery()
Me.cmbCodigoInternoEDC.Text = ""
Me.cmbCodigoInternoVH.Text = ""

llenaCombo()
llenaCombo1()
MsgBox("Registro eliminado correctamente")

Catch ex As Exception

MsgBox(ex.ToString)

End Try

End Sub>
AnswerRe: i want to erase two datatables with a single button please help Pin
Dave Kreskowiak8-Sep-19 17:59
mveDave Kreskowiak8-Sep-19 17:59 
GeneralRe: i want to erase two datatables with a single button please help Pin
Augusto10010-Sep-19 8:44
MemberAugusto10010-Sep-19 8:44 
GeneralRe: i want to erase two datatables with a single button please help Pin
Dave Kreskowiak10-Sep-19 9:51
mveDave Kreskowiak10-Sep-19 9:51 
GeneralRe: i want to erase two datatables with a single button please help Pin
Augusto10011-Sep-19 5:14
MemberAugusto10011-Sep-19 5:14 
GeneralRe: i want to erase two datatables with a single button please help Pin
Richard MacCutchan11-Sep-19 6:39
mveRichard MacCutchan11-Sep-19 6:39 
GeneralRe: i want to erase two datatables with a single button please help Pin
Richard Deeming12-Sep-19 0:33
mveRichard Deeming12-Sep-19 0:33 
GeneralRe: i want to erase two datatables with a single button please help Pin
Augusto10011-Sep-19 5:16
MemberAugusto10011-Sep-19 5:16 
GeneralRe: i want to erase two datatables with a single button please help Pin
Richard MacCutchan11-Sep-19 7:38
mveRichard MacCutchan11-Sep-19 7:38 
GeneralRe: i want to erase two datatables with a single button please help Pin
Augusto10013-Sep-19 7:58
MemberAugusto10013-Sep-19 7:58 
GeneralRe: i want to erase two datatables with a single button please help Pin
Richard Deeming13-Sep-19 8:21
mveRichard Deeming13-Sep-19 8:21 
AnswerRe: i want to erase two datatables with a single button please help Pin
Richard Deeming10-Sep-19 2:33
mveRichard Deeming10-Sep-19 2:33 
QuestionHow to perform non-case search in DataGridViewComboBoxColumn Pin
mo14923-Sep-19 9:09
Membermo14923-Sep-19 9:09 
SuggestionRe: How to perform non-case search in DataGridViewComboBoxColumn Pin
CHill604-Sep-19 0:38
mveCHill604-Sep-19 0:38 
GeneralRe: How to perform non-case search in DataGridViewComboBoxColumn Pin
mo14924-Sep-19 5:58
Membermo14924-Sep-19 5:58 
GeneralRe: How to perform non-case search in DataGridViewComboBoxColumn Pin
CHill605-Sep-19 1:02
mveCHill605-Sep-19 1:02 
GeneralRe: How to perform non-case search in DataGridViewComboBoxColumn Pin
mo14925-Sep-19 6:42
Membermo14925-Sep-19 6:42 
QuestionLinq, GroupBy, Select, First() or Last() Pin
jkirkerx28-Aug-19 13:38
professionaljkirkerx28-Aug-19 13: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.