Rick Strahl's Weblog  

Wind, waves, code and everything in between...
.NET • C# • Markdown • WPF • All Things Web
Contact   •   Articles   •   Products   •   Support   •   Advertise
Sponsored by:
Markdown Monster - The Markdown Editor for Windows

Grayed out ASP.NET Toolbox Controls? Check your Mouse!


:P
On this page:

I've heard from several of my customers that have upgraded to Visual Studio 2008  that they've been unable to access custom controls on the toolbox. It doesn't matter whether the controls were auto-installed or manually added. According to several of the customers the controls simply show greyed out and apparently disabled so that they can't be accessed. You can't access the controls on the toolbox although standard controls work just fine.

It turns out that the  cause is: Interaction with certain mice. Specifically Microsoft Laser Mice which have for some reason been a major problem with Visual Studio now and in the past. It's ironic that Microsoft mice specifically should have these problems, but apparently there's an issue with the drivers (or the generic HID driver they also use) that affect the idle timing that the ASP.NET designer relies on.

It's not just with my controls and tools though. Here's a thread on the ASP.NET forums that talks about the same issue with the AJAX Control Toolkit:

http://tinyurl.com/35zayz  (cached the original url doesn't appear to work anymore)

Sure enough after I found the above thread I mentioned to several of our customers that were seeing these problems to unplug their mice and immediately the controls showed up properly in the ASP.NET designer toolbox.

Can Microsoft EVER get this right?

This is really a sad state of affairs. I've had lots of problems in the past related to this same sort of idle time detection in Visual Studio, but it's always been in the ASP.NET designer, never with any of the other tools. In the past it's affected Intellisense activation, property sheet synching issues and now this odd toolbox behavior. And FWIW this problem has apparently not been solved by the recent HotFix Microsoft released specifically to address a host of ASP.NET designer issues in Visual Studio 2008.

There are a few things that you can do to minimize these mouse related problems. On Vista make sure that you install the latest mouse drivers and if you haven't done so install the latest HID driver. Windows Update should have updated the HID driver automatically last year and it fixed a host of weird issues for me at the time in Visual Studio 2005. If for some reason you're not installing updates check for that one at least and install it. The latest mouse drivers from Microsoft also should include the latest HID driver. Personally I do not have the Control Toolbox issue, so it must be a specific hardware/software combination that's making this happen, but given that I've heard from roughly a dozen customers this is not an isolated problem. According to the above thread too it doesn't seem to be a rare instance and there are certainly a lot of Microsoft Laser Mice out there.

I hope the ASP.NET Visual Studio Web Tools team can take a closer look at these issues that keep cropping up over and over again. I've been struggling with lagging focus and activation issues in the ASP.NET designer and in many cases - all the way back to Visual Studio 2005 - the issues were always caused by the mouse. Unplugging the mouse and using the mouse pad often completely solved the problems. It seems to me that there's a serious flaw in the assumptions that the ASP.NET designer makes to detect idle state (or whatever it does to refresh the UI) and it's only a problem in the ASP.NETdesigner. None of the other tools in Visual Studio have had any of these issues so there's gotta be a better way to deal with this than tie designer refresh operations to whatever particular idle state is used at the moment.

As a side note, it seems harder and harder to be able to get a decent WIRED mouse these days. I've thought about using a different mouse but I've become hopelessly attached to my smallish Microsoft Wireless Laptop mouse. Wireless mice are nice but they can get funky if there's interference or line of sight blockage. I would go back to a wired mouse if only I could find a decent small one for  my girlish sausage fingers <g>... 

Posted in ASP.NET  Visual Studio  

The Voices of Reason


 

Russell Garner
March 15, 2008

# re: Grayed out ASP.NET Toolbox Controls? Check your Mouse!

If you want a decent wired mouse, gaming culture to the rescue - gamers abhor even microscopic lag which wireless mice are said to introduce. I swear by my Logitech MX518, which may now have been replaced. The Logitech G7 is also damn nice.

Rick Strahl
March 15, 2008

# re: Grayed out ASP.NET Toolbox Controls? Check your Mouse!

@Russell - yeah I figured some gaming mice might do the trick. The things is just when I get really incensed about some mouse related issue, and I'm ready to buy something new, the problem gets somehow fixed and I never get around to.

The other issue for me is I'm stuck on an island without a decent computer store to check out mice physically. I won't just buy a mouse based on a picture at this point given that I ended up with tendenites a while back from mouse 'stress' <g>... (mostly due to a bad mouse at the time).

When I'm back on the mainland I'm going to take a look when I have a chance.

Arnold Smith
March 17, 2008

# re: Grayed out ASP.NET Toolbox Controls? Check your Mouse!

Rick,

Great column. I never miss it.

BTW, I'm using an Targus mouse. Small for my hand - wireless and rechargeable through the USB while I'm working - and no problems with greyed out controls.

Thanks,

Arnold

Will
April 11, 2008

# re: Grayed out ASP.NET Toolbox Controls? Check your Mouse!

I have also found the Microsoft Laser Mice (Intellimouse Explorer) to cause problems with SQL Server 2005 as well.

http://www.sqlteam.com/Forums/topic.asp?TOPIC_ID=78370&whichpage=1

Darrin
September 03, 2008

# re: Grayed out ASP.NET Toolbox Controls? Check your Mouse!

I ran into this problem with a Microsoft Intellimouse Explorer 2.0. I was using the default driver and could not use any 3rd party (Infragistics) web controls in my VS designer; they were there but disabled. I installed the correct driver that I downloaded from Microsft as you had suggested and all the controls (and the tabs) magicalliciously appeared.

Thank you!

Larry
January 20, 2009

# re: Grayed out ASP.NET Toolbox Controls? Check your Mouse!

It isn't just Microsoft laser mice; my Logitech Cordless Optical Trackman has the same issue.

Thanks for the article--you saved me hours of frustration!

lesley hart
April 22, 2010

# re: Grayed out ASP.NET Toolbox Controls? Check your Mouse!

I am having this same problem, and after turning off the mouse, i still have the toolbox greyed out. Are there any other solutions?

West Wind  © Rick Strahl, West Wind Technologies, 2005 - 2024