FormsName.Show()
Public Class FormNotify Private Sub FormNotify_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load End Sub Private Sub ExitToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles ExitToolStripMenuItem.Click Application.Exit() End Sub Private Sub FormNotify_FormClosing(sender As Object, e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing Select Case MsgBox("There are some files you have not save in Google Drive?" & vbCrLf & "Do you want to save it?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) Case Windows.Forms.DialogResult.Yes e.Cancel = True 'cancel the form closing event FormLogfile.Show() Case Windows.Forms.DialogResult.No 'Nothing to do End Select End Sub End Class
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)