I need to fire an event AFTER a form has finished loading and is displayed to the user.
Currently, I'm initializing my MapPoint control on my form in the form_load event. But, if the connection to the MapPoint server is down, the form never really finishes loading before an exception is thrown and it's very slow.
I want to put my MapPoint initialize inside an event that fires AFTER the form has finished loading and is displayed to the user.
How can I do this

Where's the WinForm event for AFTER a form has finished loading?
Arjun B
There is some delay in actually displaying the form such that even though I'm initializing my MapPoint map in the form_Shown event, the form STILL doesn't display properly. It's about half-way drawn when the form_Shown event is fired. Then when this happens, the form stops finishing it's drawing and just hangs while it tries to initialize the map. Uhhhh.
I suppose I could start a timer in my form_load or form_shown event, and then have it fire a few seconds after....but that's ridiculous.
SOAC
But as I mentioned, the Shown event isn't working either. The form still doesn't finish displaying before the Shown event is called. And because of this, the form drawing still doesn't finish before the MapPoint calls are made. The result is a half-drawn form that stalls until MapPoint times out.
I tried setting the form's DoubleBuffered property. That didn't seem to help.
Any other suggestions
MJohannesson
Hello All.
Polity4h
kidwidahair
The Activation is wrong way. It may be called, but is not guarranteed to be called. There are cases where it will not be.
Ivan Selchenkov
Hello All.
_Quimbly_:
Well, I'm not the one to advise you about cross-thread issues. You might want to start a new thread on that question, and get some of the threading experts hereabouts to lend a hand.
HTH.
zille
Hello All.
_Quimbly_:
You could use either Shown (as ahmedilyas said) or Activated, depending on your situation. Shown fires once when the form is first created, and never fires again. Activated fires each time the form is made the active form. Whichever one best fits your situation.
HTH.
Martin Goodliffe
Hello All.
_Quimbly_:
Well then, what about putting the MapPoint ini on a background worker thread
HTH.
abhas
Hello All.
_Quimbly_:
And it does the same thing in the Activated event handler Have you tried setting the DoubleBuffered property of the form to true
HTH.
MMCompton
Flamin
Ha! No pun intended