﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » Newbie Question</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 00:16:51 GMT</lastBuildDate><ttl>20</ttl><item><title>Newbie Question</title><link>http://forum.strataframe.net/FindPost7152.aspx</link><description>Hello all,&lt;/P&gt;&lt;P&gt;Sorry for the newbie question and I imagine the answer is no.&amp;nbsp; I have a method I want to run&amp;nbsp;after the form is completely loaded.&amp;nbsp; What I mean by Loaded is all controls have been drawn and the form is waiting for user input.&amp;nbsp; I can see running this method in the background so perhaps a worker thread is appropriate here?&amp;nbsp; &lt;/P&gt;&lt;P&gt;My question is this:&amp;nbsp; Is there a standard form event I can use to call my method after the form has been completely drawn?&amp;nbsp; I have tried after InitializeComponents in the New event, Load, Activate, GainFocus (with a flag stating its the initial load), etc. and none of these events allow the form to completely draw prior to calling my method that takes&amp;nbsp;between 5-10 seconds to run.&lt;/P&gt;&lt;P&gt;Ideas?&lt;/P&gt;&lt;P&gt;Ben</description><pubDate>Mon, 26 Feb 2007 09:08:56 GMT</pubDate><dc:creator>Ben Kim</dc:creator></item><item><title>RE: Newbie Question</title><link>http://forum.strataframe.net/FindPost7167.aspx</link><description>You can&amp;nbsp;create a System.Threading.Timer within the Load event and have it wait about 250ms before processing your callback.&amp;nbsp; Also, the callback will already happen on another thread (it doesn't invoke on the main thread), so there's no need to create another thread explicitly.&amp;nbsp; Or, you can put your code in the Shown() event... I believe that's the one that fires after the SetVisibleCore() has been called on the form to draw everything.</description><pubDate>Mon, 26 Feb 2007 09:08:56 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>