Community discussion forum

close button (X)

  • 1 year ago
    hiiiiiiiiiiiiiiiii, how to make operation in close button (X). for example if user click the close button, after that the form will be hide is not close. Please advice.. thanks
  • 1 year ago
    Sub Form_Closing(sender, e as System.FormClosingArgs) Handles Me.Closing
    e.Cancel = True
    Me.hide
    ...
  • 1 year ago
    Private Sub FormMain_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing If e.CloseReason = CloseReason.UserClosing Then e.Cancel = True Me.Hide() End If End Sub
  • 1 year ago
    Private Sub FormMain_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing If e.CloseReason = CloseReason.UserClosing Then e.Cancel = True Me.Hide() End If End Sub
  • 1 year ago
    Thanks for ur answer

Post a reply

Enter your message below

Sign in or Join us (it's free).

Want to stay in touch with what's going on? Follow us on twitter!