Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Unload index controls

I have multiple controls that I create/load on a form based on user interaction using Load i.e,

Load optCriteria(Index)
With optCriteria(Index)
.TOP = optCriteria(Index - 1).TOP + BLOCK_TOP_OFFSET
.Visible = True
.Width = optCriteria(0).Width
.Container = Me.picAll
.ZOrder 0
.Left = BLOCK_LEFT_OFFSET
End With

Do he controls that are loaded need to be Unload'ed when the form is Unload'ed? If so, what event should this be done in?

Thanks

Dan
[579 byte] By [danielreber] at [2007-11-11 7:51:23]
# 1 Re: Unload index controls
Dan, the controls dynamically added during runtime will disappear with the form. The only thing is that if the form is re-loaded, then it will have reverted back to it's design time state.

Hope this helps

Steve.
Steve Grant at 2007-11-11 17:26:24 >
# 2 Re: Unload index controls
Thanks for the information Steve.

Dan
danielreber at 2007-11-11 17:27:24 >