Public Sub New() InitializeComponent()
' only load files, etc. when NOT closing to install an update If Not automaticUpdater.ClosingForInstall Then ' load important files, etc. ' LoadFilesEtc() End If End Sub
Private Sub automaticUpdater_ClosingAborted(ByVal sender As System.Object, ByVal e As System.EventArgs) ' your app was preparing to close ' however the update wasn't ready so your app is going to show itself ' LoadFilesEtc() End Sub
Private Sub frmAppmain_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Try mnuUpdates.Enabled = True mnuCheckForUpdates.Enabled = True mnuUpdates.Focus() mnuCheckForUpdates.PerformClick()
Next Catch ex As Exception MessageBox.Show(ex.Message, "Message", MessageBoxButtons.OK, MessageBoxIcon.Information) End Try End Sub
Private Sub btnQuit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnQuit.Click Me.Dispose() End End Sub
is any thing needed in main form load or closing aborted