Private Sub Button26_Click(sender As Object, e As EventArgs) Handles btnErro1.Click conecta() Dim oktoDelete As MsgBoxResult = MsgBox("Tem certeza que deseja excluir o registro do erro?", MsgBoxStyle.YesNo) If oktoDelete = MsgBoxResult.Yes Then Dim str As String str = "Delete from Lab01Micro01 ([Nome_Do_Professor], [Nome_Professor_Substituto], [Numero_De_Registro], [Disciplina], [Turma], [Professor_Ausente?], [Reservado?], [Ocupado?])" Dim cmd As OleDbCommand = New OleDbCommand(str, myConnection) Try cmd.ExecuteNonQuery() cmd.Dispose() myConnection.Close() Catch ex As Exception End Try ElseIf oktoDelete = MsgBoxResult.No Then End If lblFuncionamento1.Visible = True lblFuncionamento2.Visible = False btnErro1.Visible = False btnM1.BackgroundImage = System.Drawing.Bitmap.FromFile("C:\TCC\computador3a.png") End Sub Private Sub Button34_Click(sender As Object, e As EventArgs) Handles btnErro2.Click lblFuncionamento4.Visible = True lblFuncionamento3.Visible = False btnErro2.Visible = False btnM2.BackgroundImage = System.Drawing.Bitmap.FromFile("C:\TCC\computador3a.png") End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)