Re: Newbie Question: Doing tasks after form displays 'on load'

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



> Do you (or anyone else) know if there is there an event that fires (on the
> main thread) AFTER the form has initally drawn itself? I would be content
to
> have the form frozen whilst the data is collected. At the moment, using
> OnLoad to load my data, it is frozen before anything is displayed - ie (in
> an SDI) the user double- clicks the exe file and then waits (with
'nothing'
> happening) for 10 seconds for the data to load and the form to paint.
>
You want to start doing stuff after the window has correctly painted without
using a thread.
In C# I have no clue yet how to do it, but in the MFC way, there existed a
"idle" windows message that I used to trigger execution after the paint. So
maybe someone here can find out how to do that in C#?


.



Relevant Pages

  • Re: ImageIcon memory sizes
    ... > ..When I get a chance I'm going to try the alternate ... > to paint the image myself. ... I found the nes approach was to load the image bytes ... yourself and use Toolkit.createImageto stamp out an ...
    (comp.lang.java.programmer)
  • Re: tell Pervis its ridiculous reinforcing before a comparison
    ... She may conceive once, forbid late, then paint in the light of the certificate due to the movement. ... She may below load without canadian latin plots. ...
    (sci.crypt)
  • Re: Printing the screen and printing in XP
    ... Not sure this is possible but I have to do a load of screen prints ... which I currently paste into Paint. ... Is there shortcut (or another way ...
    (microsoft.public.windowsxp.general)
  • Re: Open Form
    ... If you are expecting it to load all its records, run its other events, and evaluate all expressions in calculated controls before this event completes, that's probably not practical. ... Allen Browne - Microsoft MVP. ... I tried that but the form still doesn't completely paint before the code runs. ... on open and on olad events but the form opens but doesn't completely paint until the code is run, so is there a way to open the form, then run the code without me manuelly having to hit a command button to do it? ...
    (microsoft.public.access.formscoding)
  • Re: Using SetPixel
    ... windows message, it will paint over whatever you drew already. ... What you need to do is attach to the Paint event, ... Bitmap bmp = new Bitmap ...
    (microsoft.public.dotnet.languages.csharp)