Windows look/style/appearance in Visual Studio VB

  • Thread starter BvU
  • Start date
4 replies · 2K views · last reply
BvU
Science Advisor
Homework Helper
Messages
16,226
Reaction score
4,939
Embarrassed having to ask: My windows in VS 2022 (on W10) look like

Plain Windows 10 style window titled Form1 with a small icon at left and minimize, maximize and close buttons at right, empty grey client area.


when I would like them to look like

Screenshot of a blank Windows Forms window titled Form2 with a light blue title bar, minimize, maximize and red close buttons, and selection handles on its edges.


and I can't *&*&* find what caused it and how to get back

Any suggestions where to look ?

##\ ##
 
Thanks for replying. But it's not that easy:

Windows Forms window titled Form1 with seven radio buttons labelled None, FixedSingle, Fixed3D (selected), FixedDialog, SIzable, FixedToolWindow and SizableToolWindow, an Exit button, and the labels 2 and Fixed3D at the bottom.

Only one that gives a different picture is "None" (which does what it should do).

##\ ##
 
BvU said:
Only one that gives a different picture is "None" (which does what it should do).
Huh. Well, I'm out of ideas, other than perhaps re-installing VS.
 
Hesitating to do that -- afraid of making things worse -- but probably the only way out.

Funny to see that MDI child windows look as expected, but the parent window doesn't:

Screenshot of a Windows Forms MDI application titled MDIParent1 with a menu bar (Bewerken, Opmaak), a toolbar, and two MDI child windows labeled Window 1 and Window 2, both with orange-and-blue borders and a white rectangle, and a Status bar at the bottom.


formborderstyle of normal windows do follow Sizable/Fixed expectations; only the looks are wrong.

Oh, well...

[edit] No reason to be so pessimistic: download and install over 200 GB in half an hour. But the problem remains as it was... :frown:

[more edit] copy the .exe, .dll, .pdb, deps.json and runtimeconfig.json to another PC and install runtime .Net 8.0 there: still problem !

SO you think the problem sits inside one of those five files.
However: running a .exe from an old project that used to look OK also has the problem.
Makes you think the problem does NOT sit inside one of those five files.

Tried .NET 7 but no difference.

Flabberghasting ! Where to look now ?


##\ ##
 
Last edited: