Beruflich Dokumente
Kultur Dokumente
MySqlClient
Imports System.IO
'btnSeleccionar.Text = "NUEVO"
End If
End Sub
Next
CheckBox1.Enabled = True
CheckBox1.Checked = False
Activar_ComboBox(Me)
Activar_TextBox(Me)
End If
End If
Else
btnModificar.Enabled = False
btnFoto.Enabled = False
Desactivar_TextBox(Me)
Desactivar_ComboBox(Me)
cboUsuario.Enabled = True
CheckBox1.Enabled = False
CheckBox1.Checked = False
txtClave1.Text = ""
txtClave2.Text = ""
txtEmail.Text = "E-Mail"
txtApellidos.Text = "Apellidos"
txtNombres.Text = "Nombres"
cboPregunta.SelectedIndex = -1
txtRespuesta.Text = "Respuesta"
cboNivel.SelectedIndex = -1
End If
btnEliminar.Enabled = True
btnCancelar.Enabled = True
CONEXION.Close()
End Sub
btnModificar.Enabled = True
btnCancelar.Enabled = True
End If
End If
Else
MsgBox("El nombre de usuario o contrasea no coinciden..., intntelo de nuevo...", 16, "SISTEMA
''HOTEL''")
txtUsuario.Text = ""
txtClave.Text = ""
txtUsuario.Focus()
End If
CONEXION.Close()
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
Private Sub btnFoto_Click(sender As Object, e As EventArgs) Handles btnFoto.Click
OpenFileDialog1.InitialDirectory = "D:\FOTOS "
OpenFileDialog1.Filter = "JPEG|*.jpg|GIF|*.gif|BMP|*.bmp|PNG|*.png|Todos los Archivos|*.*"
OpenFileDialog1.FilterIndex = 1
If OpenFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then
PictureBox1.Image = Image.FromFile(OpenFileDialog1.FileName)
End If
btnModificar.Enabled = True
End Sub
End Sub
End Sub
End Sub
End Class
DATE CUENTA QUE AH HAY DOS UNO TEXTO Y EL OTRO COMBO
IGUAL QUE EN EL NIVEL