Oppure

Loading
Questo topic e' stato chiuso dal moderatore.
01/05/09 8:15
LittleHacker
Salkve a tutti io ho creato un programma BromProtector che poi posterò anche su pierotofy e vorrei che fino a quando non si è verificato il nome utente e la password non poermetta di uscire con la combinazione Alt + F4 ho provato così:

Private Sub frmProtector_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
e.Cancel = True
End Sub
Ok va bene ma anche quando clicco su esci per uscire non mi esce e il mouse resta "incastrato" nella form. Come posso fare??
Grazie mille :k::k:
aaa
01/05/09 11:28
theprogrammer
If (e.CloseReason = CloseReason.UserClosing) Then e.Cancel = True
aaa
01/05/09 11:34
LittleHacker
Scusate ho già risolto ho fatto
If cmdexit.enabled = True Then
e.Cancel = False
ElseIf cmdexit.enabled = false Then
e.Cancel = true
End If
:k:
aaa