Re: How to Run code After Form_Load

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

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)



Relevant Pages

  • Re: Paging the SNBoxeristi
    ... that the paint on the telelever is showing signs of age. ... My fork brace has ... a bit of corrosion and a lot of fasteners are looking 9 years old. ...
    (uk.rec.motorcycles)
  • Re: Ninety degrees at midnite... (resend)
    ... The same one who's been showing up here lately -- the last time, ... attacking people who suggested using the smell of paint to get a horse to ...
    (rec.equestrian)
  • Re: Ninety degrees at midnite... (resend)
    ... The same one who's been showing up here lately -- the last time, ... attacking people who suggested using the smell of paint to get a horse to ...
    (rec.equestrian)
  • Re: When I call form.show in a thread it close when the thread completes.
    ... Any idea on why the form might take so long to paint. ... I know in Foxpro if ... you scrolled thru the items of a listbox before showing it, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Windows XP look n Feel
    ... try to search in this website www.codeproject.com/ ... > Add this before showing any form: ... > HTH, ...
    (microsoft.public.dotnet.languages.csharp)