General discussion

Locked

VB6:Unable to unload within this context

By Soundbomber ·
I have a form with a label set up as an array - Label1(0). I have used the Load and Unload events to put additional values into the array thus:-
for f=1 to 10
Load .Label1(f)
....
Unload .Label1(f)
next
My problem is this:
The firsttime through the code, the program has no problem Loading and Unloading, but subsequently I recieve the following error message:-Unable to unload within this context (Error 365)
I have looked at the MSDN help files but to no avail.
If anyone couldhelp I would be grateful

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

VB6:Unable to unload within this context

by MadestroITSolutions In reply to VB6:Unable to unload with ...

Is your form set to autoredraw?

There are certain situations in which you cannot unload a control:

You cannot use unload on the "paint" event of the control.

If that doesnt help, I would need to look at the entire form code in order to tellhelp you out.

Good Luck!

Collapse -

VB6:Unable to unload within this context

by Soundbomber In reply to VB6:Unable to unload with ...

Thanks for the reply.
The autoredraw setting is false, but I tried it as True - didn't help.
I've gone as far as removing every other unload statement from the project - again didn't help.
Incidentally the full form code is HUGE and I probably wouldn't get permission from my bosses to send it to you.
Thanks anyway

Collapse -

by Soundbomber In reply to VB6:Unable to unload with ...

This question was closed by the author

Back to Web Development Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums