Article ID: 129733
Article Last Modified on 12/9/2003
The FreezeEvents method determines whether the control should fire
events. When initially created, the control's freeze count is at zero,
and the control is free to fire events when appropriate. If the
container calls FreezeEvents(TRUE), then the freeze count is
incremented, and the control should not fire any events until the freeze
count returns to zero by the container calling FreezeEvents(FALSE).
This mechanism gives the container a way to suppress events being fired
until it is fully ready to deal with them.
The control is free to decide whether to discard events triggered when
the control is frozen, or to queue them up and fire them when the
control becomes unfrozen. Normally, a control makes this decision based
on how important the event is to the control's contract. If discarding
the event is likely to break users' assumptions and therefore their
code, then the control should queue the event.
Additional query words: 4.00 vb4win vb4all
Keywords: KB129733