0

Something changed the look-and-feel of the Windows.Forms PropertyGrid:

PropertyGrids within my applications form look different/darker now (compare to Properties control in lower right)

It looks darker, uglier, and more importantly, breaks visual appearance with all other GUI elements. Other GUI controls remain as they were (as far as I can tell). Of course, Application.EnableVisualStyles(); and Application.SetCompatibleTextRenderingDefault(false); are set the way the wizard set them up.

I am not sure what caused this, but it affects all my CSharp projects in MSVS 2015 and MSVS 2017.

Older projects that I didn't compile in ages seem not to be affected. There the PropertyGrid looks fine.

In newer projects I tried switching down to other .Net version, down to 2.0. No changes; PropertyGrid stays dark and ugly.

I installed and uninstalled many things before I noticed that change. Among others some updates to Visual Studio, QT incl. Creator and VS Addin, MSVS 2013, MSVS 2012, ... Too many to try uninstalling them all.

Any ideas what could have caused this, and how to get rid of this change?

Knowleech
  • 1,013
  • 2
  • 9
  • 15
  • Is this only in the IDE or at compiled app runtime? – Simon Mourier Aug 10 '17 at 16:52
  • Both IDE and (newly) compiled app at runtime. – Knowleech Aug 10 '17 at 16:54
  • Actually I think I have the same look, not sure if it's good or bad :-/ I don't have an old propertygrid app around to test... – Simon Mourier Aug 10 '17 at 17:57
  • Interestingly, there is s difference between `LineColor` property `DefaultValue` and the [backing field initializer](http://referencesource.microsoft.com/#System.Windows.Forms/winforms/Managed/System/WinForms/PropertyGrid.cs,92). I don't know why is that, but it's causing generation of additional line in the designer cs. To get the old look and feel, select the `LineColor` property and invoke *Reset* command. – Ivan Stoev Aug 10 '17 at 18:14
  • Actually Reset doesn't work. And no way to set that in designer because setting it to `InactiveBorder` will not be preserved, and the next time you open it in design/runtime, it gets the `ControlDark` :( – Ivan Stoev Aug 10 '17 at 18:39
  • I can run "old" apps and "newly compiled" apps at the same time. One looks as it should, the other one is dark. At least I am somewhat soothed I am not the only one with this problem. (I didn't find anything via google, and started to wonder...) It's not only `LineColor` The toggle tick button thingies are +-boxes in 'good' and arrow heads in 'bad'. – Knowleech Aug 10 '17 at 20:41
  • AH! https://stackoverflow.com/questions/43609548/windows-10-creators-update-changes-the-style-of-propertygrid-control – Knowleech Aug 10 '17 at 20:46

0 Answers0