I am loading VS.Net and need for my application to wait for it to fully load before it continues. I am using WaitForInputIdle but it seems that VS.Net lies. It says it's doing nothing when really it is, because it isn't fully loaded. Is there any other way i can make my application wait untill the window is fully loaded.

I know i can sit in a loop and wait until the foregroundwindow class is the main window for VS.Net but this is sloppy code.

If no-one can come up with a better / sane solution i guess i will have to use that.

Thanks in advance for the help / comments and suggestions.