Unloading Control Array Objects During a Form Resize

Bobofbobland
04-03-2003, 04:36 AM
You really don't want to know why I want to know how to do this... but,

I need to unload a lot of labels from a control array upon form resize. The alternative is to get into a horrible situation making them visible or invisible and updating lots of information in them. There's also a scroll bar that I can see is just waiting to foul things up if I take this route.

Any way that I can fire off an event from the form resize after I've exited it?

-Thanks.

Flyguy
04-03-2003, 07:20 AM
If you put all code to create the new labels in a sub instead of some event then you can just call this function/sub just before the Exit Sub of the Resize event.

Bobofbobland
04-03-2003, 07:58 AM
Ah, I don't think this will work. I'm trying to unload objects that are already there and visible on the form. This code already is in a subroutine but thta subroutine is called by the resize event and thus the app falls over.

Have I misunderstood what you were saying?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum