views:

141

answers:

3

Visual Studio 2008 just recently started hanging up when I first go into a form in the designer. It hangs for about 22 seconds and then lets me continue. It just started doing this on my pc for a couple weeks now all of a sudden.

I do use I disabled all add-ins and macros using the Visual Studio Options.

Any ideas what could be causing this or how to find out?

+1  A: 

Have you got any user controls that do any Design Time rendering or operations?

Alternatively, have you got the latest service packs?

If you do have anything slow running at design time, you can add the following to stop it:

if (!this.DesignMode)
{
   // Your slow design time code
}
GenericTypeTea
A: 

What's the code in the forms doing ? Visual Studio vill run,atleast,the constructor of your form when going to design mode - are you doing anything that might time out/faile/etc. ?

nos
A: 

Visual Studio is rebuilding its control bar. You are probably seeing your mouse cursor change to a cog wheel with an arrow for the whole duration.

Check out step 6 of this post and see if it help.

Pierre-Alain Vigeant