PrepareForReplay() Method
Prepares the Control for a replay action.

CallPrepareForReplay as the first instruction of each replay function. If PrepareForReplay is not called before any call that accesses the custom control, the results are unpredictable. This call is equivalent to PrepareForReplay(PREPARE_MASK.PM_ALLFLAGS).

The most common use is to check that the object is visible and try to give it focus.
Public Overloads Sub PrepareForReplay() 
public void PrepareForReplay()