Home > Software engineering >  Set up a cancel=1 mdi child form main form cannot be unloaded
Set up a cancel=1 mdi child form main form cannot be unloaded

Time:09-19

Private Sub Form_Unload (Cancel As Integer)
Cancel=1
End Sub


Set up a cancel=1 mdi child form main form cannot unmount how to solve

CodePudding user response:

Cancel=1 the delete

CodePudding user response:

Private Sub Form_QueryUnload (Cancel the As an Integer, UnloadMode As Integer)
Judge by UnloadMode close message to cancel=1
  • Related