Prevent your app from being unloaded or terminated with this code.
Prevent your app from being unloaded or terminated with this code.
Rate Prevent your app from being unloaded or terminated with this code.
(2(2 Vote))
' instance of Form1 is created, thus preventing the app from being terminated.
' Of course, you will have to restore any information that will be lost in the
' unload function. Also, sometimes Unload invokes Terminate, so make sure that
' only one of those procedures contains code.
Private Sub Form_Unload(Cancel As Integer)
Dim a As New Form1
a.Width = Me.Width
a.Height = Me.Height
a.Left = Me.Left
a.Top = Me.Top
Me.Hide
a.Show
End Sub
Prevent your app from being unloaded or terminated with this code. Comments
No comments yet — be the first to post one!
Post a Comment