# Unload form in Paint event

Posted by 小吴 on September 10, 1998 at 07:46:07:

In Reply to: 崋欴妏Form祥珆尨堤懂? posted by eager on September 09, 1998 at 14:22:09:

You can't use Unload Me in Form_Load event. However, Form_Paint event will be triggered immediately after Form_Load event. So you can use a form module level variable and set the variable to true in Form_Load event procedure, and you check the variable in Form_Paint event procedure, if the variable is True, then Unload Me.

Follow Ups: