Roselene
Jan 6th, 2000, 06:27 PM
Hi, everybody!
When I try to unload a form, I see the following message:
Run-time error ‘361’ Can’t load or unload this object
I’m using the "on click" event of a button, with this command:
Unload MyformName
In fact, I can only close the form by clicking on the control bar.
The MSDN help says that this error is caused when you try load or unload:
a) an object that isn’t a loadable object
b) an existing control that isn't part of a control array. For example, assuming that a TextBox with the Name property Text1 exists, Load Text1 will cause this
c) a Menu control in the Click event of its parent menu.
d) the last visible menu item of a Menu control.
But I guess all of these alternatives are inadequate in my case!
Thanks in advance for any help,
Roselene
When I try to unload a form, I see the following message:
Run-time error ‘361’ Can’t load or unload this object
I’m using the "on click" event of a button, with this command:
Unload MyformName
In fact, I can only close the form by clicking on the control bar.
The MSDN help says that this error is caused when you try load or unload:
a) an object that isn’t a loadable object
b) an existing control that isn't part of a control array. For example, assuming that a TextBox with the Name property Text1 exists, Load Text1 will cause this
c) a Menu control in the Click event of its parent menu.
d) the last visible menu item of a Menu control.
But I guess all of these alternatives are inadequate in my case!
Thanks in advance for any help,
Roselene