ener.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Unable to unload within this context (ERR: 365)
■ In some situations, you are not allowed to unload a form or
  control on a form. This error may be caused by trying to
  unload a form or control on the form:
 
  • During any Paint event for the form or any control on the
    form.
 
  • Whenever a combo box control is opened either on the form
    being unloaded or on the form that contains the control
    being unloaded.
 
■ Possible solution:
 
  • Remove the UNLOAD statement from the Paint event procedure
    or disable the combo box during the Unload event.
 
■ If you need additional help, move the cursor to a keyword
  and press F1 to open the Help window.