Re: How to Run code After Form_Load

From: Gary Milton (anonymous_at_discussions.microsoft.com)
Date: 03/29/04


Date: Mon, 29 Mar 2004 07:28:54 +0100

Lynn,

Put your code in the Form_Activated event. This event gets called after the
form has been loaded. However, this event also gets called every time the
form is re-activated (i.e. changing focus to another form and then back
again) so you may want to use a flag so that your code in that event is only
executed for the first activation.

HTH,
Gary

"Lynn" <lynn@net5.com.tw> wrote in message
news:1519f01c41535$5d70cca0$a101280a@phx.gbl...
> I need to auto paint line at Form_Component(Ex: button,
> RichEdit, etc....)
> I write code in Form_Load, the code run before the Form
> showing, so it can't paint at Form_Component
> How to Run code after Form_Load(mean after the Form showed)