Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't select controls on my form

This has started happening recently (not too sure what caused the change unfortunately), but I can no longer select controls on my form. My reading on this has uncovered some possible explanations including:

  1. You're running your program in debug mode
  2. Your form is derived from another class where everything is private
  3. Your controls are "locked".

For (1), no, it's definitely not running and for (2) my form is derived from DevComponents.DotNetBar.RibbonForm. For (3), no, they're not "locked" (I tried locking and then unlocking, in case some state was stuck in the designer, but no dice). The controls are on my form, not the base class form and the instances aren't private (I deliberately made them public just to test this one) and they were working fine before.

So, what can I do? I can select a control, like a ComboBox, from the Properties window drop-down list, change its properties and so on. But when I choose it nothing gets selected in the designer. I can select the form itself (by its border) and resize it in the designer. I can add a new control, like a label, and interact with it fine in the designer, so this is something that's happened to my existing controls.

I'm sure it's either something spectacularly dumb, or Visual Studio 2012 is on the wind-up.

Anybody?

Edit: Zipped the solution up and brought it home. Cleaned and rebuilt and it's working fine in the designer. I guess there's an issue with my install at work, somehow.

like image 336
Robinson Avatar asked Sep 12 '13 15:09

Robinson


2 Answers

To get this working for me I ended up having to add the references to the designer for the different controls: SuperGrid.Design and DotNetBar.Design

like image 132
Noah Rushefsky Avatar answered Nov 12 '22 05:11

Noah Rushefsky


The problem can occur when a new version of DevComponents.DotNetBar is installed and the old version is still referenced from a separate library folder.

The app and all DotNetBar referenced dlls should be re-referenced to the latest version.

like image 25
peterincumbria Avatar answered Nov 12 '22 07:11

peterincumbria