VS 2022 and NET 6

Jeff Gaines 71 Reputation points
2022-07-16T12:59:58.313+00:00

I have just installed VS2022 having happily been using VS2008 since it was introduced.

I am gradually getting used to the IDE and have found ways to remove things like line numbers, connecting lines etc. I haven't found a way to reduce the number of popups and tips which I find to be a nuisance because they hide the code.

I have written my first .NET 6 test bed project and it seems to me that most of the underlying classes and controls are little changed from VS2008, the key change being that I can't use the FixedSys font which is so helpful in spotting issue because it lines code up so neatly.

Some of the things that I had hoped would be easier are:

Using system icons in TreeView and ListView

Getting extended information on a file such as its display name etc. instead of using:

SHFILEINFO shfi = new SHFILEINFO();
uint uFlags = (uint)(SHGFI.SHGFI_SYSICONINDEX | SHGFI.SHGFI_SMALLICON | SHGFI.SHGFI_TYPENAME | SHGFI.SHGFI_DISPLAYNAME | SHGFI.SHGFI_ATTRIBUTES);
IntPtr ipTemp = shell32.SHGetFileInfo(fileObject.ObjectPath, 0, ref shfi, Marshal.SizeOf(shfi), uFlags);

Viewing documents in a browser control as we once could so I can build a multi purpose file viewer

Including objects in a ListView such as a ProgressBar

A panel with specified border colour

A combined Label and TextBox

Up to date API Codepack and source code for controls (that is compilable).

It may be that I will discover some of these things but is there a summary anywhere that anybody can point me to please? Those I have found don't mention controls and any searches around the API lead to the same places they have for 20 years. It seems ironic that code I wrote for Win 98 using the API still runs perfectly well although I still have to rely on the API.

Many thanks, I now have to give my spell checker some first aid.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,395 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 80,886 Reputation points
    2022-07-16T13:24:11.903+00:00

    With .NET 6, the last framework is WinUI 3 (XAML controls in Desktop Apps)
    You can download/compile the WinUI-Gallery which shows most of controls

    0 comments No comments