I have been trying to build a custom control for one of my apps all night and always end up with a greyed-out control in my tool box.
I have tried various flavors of windows forms apps net, desktop with different forms of control libraries all from templates in VS-2022 . My question is WHAT template or what do I have to do to get a working control for an application with the following Project properties . This app targets net 6.0 but all the control templates seem to target net framework 4.X. MS has thrown out so many frameworks lately I have a hard time keeping track of what works with what anymore or even what the differences are .. like what is different from net6 then net framework 4.x and why are there so many flavors all called net ? anyway ...
Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows10.0.22621.0</TargetFramework>
<RootNamespace>OCR</RootNamespace>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<StartupObject>OCR_Fromgame.Program</StartupObject>
<SupportedOSPlatformVersion>10.0.22621.0</SupportedOSPlatformVersion>
<ApplicationIcon>ext\Icon.ico</ApplicationIcon>
</PropertyGroup>
I am sure the confusion is all mine ..but some direction what exactly i need to build a user/custom control for this app would be great ..
The actual control is so simple it is a picture box 10x10 with an X in it and a label to mark screen coordinates on a form ..wasted a whole day here trying to get it into the tool box ..