Simon, What you're trying to do makes me think of Splash windows (those screens that appear while an app is loading). If only part of your form is showing up, you could force it to paint itself immediately by calling
form.Update(); If you're interested in knowning when a form has been completely loaded and about to be displayed, you can use the Paint event. At the end of the handler, you can remove the Paint event handler, so it won't be called again. A book that shows how to deal with Splash windows is: "Component-Based Development with Visual C#" You can find a description of it at: http://www.faisoncomputing.com/books/CbdWithCSharpTOC.htm Among other things, the book shows how to update a progress bar in a splash window during app loading. --Ted Faison ********************************** On Fri, 24 May 2002 11:51:16 +0100, Simon Robinson <[EMAIL PROTECTED]> wrote: >Two purposes to this post: >1. Ask a question >2. Mention some rather amusing behavior in Windows Forms. > >Questions runs... Is there any event in Windows Forms that >is raised after a Form has been loaded? My form does a lot >of processing at startup and I'd like it to display itself then >do its processing, reporting to the user on its progress as it >does it. I tried the Load event but that seems to get invoked >just before the form is displayed. > >Amusing behavior runs... While looking for solutions to the >above question I tried using the Activated event. The form >contains a Panel and progress report would be written in the panel >using Graphics.DrawString(). The result? >1. The main title bar of the form gets displayed (but not >the rest of the form) >2. The calls to Graphics.DrawString() write the text over >whatever happened to be on the screen where the form is >going to be displayed. You end up with VS.NET sitting >there with all this writing scrawled over it. >3. The form appears - but now without the writing. >This quite tickled me - though I'm intrigued as to why >it happened. I bet the Windows Forms team didn't >intend it. > >Simon >--------------------------------------------------------------- >Simon Robinson >http://www.SimonRobinson.com >--------------------------------------------------------------- > >You can read messages from the DOTNET archive, unsubscribe from DOTNET, or >subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.