CUANDO EJECUTO EL LOGIN MI PAGINA DE MENU PRINCIPAL NO APARECE
Publicado por fredy (8 intervenciones) el 30/01/2017 18:32:50
hola muy buenos dias, mi consulta es lo siguiente cuando ejecuto mi login ingreso mi usuario y conrtaseña me aparece el formulario de mi menu principal y despues se cierra automaticamente me podrian ayudar muchas gracias.
Quisiera saber por que motivo se cierra automaticamente.
Quisiera saber por que motivo se cierra automaticamente.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Imports Entidad
Imports Datos
Public Class Login
Dim dts As New Eusuario
Dim func As New Fusuario
Private Sub btnentrar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnentrar.Click
Try
dts._DNI_USUARIO = TXTUSUARIO.Text
dts._CONTRASEÑA = TXTCLAVE.Text
If func.INICIOSESION(dts) = True Then
Dim forLogin As New MenuPrincipal
forLogin.Show()
Me.Hide()
Else
MsgBox("Acceso denegado")
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Private Sub btnsalir_Click(sender As Object, e As EventArgs) Handles btnsalir.Click
End Sub
End Class
Valora esta pregunta


0