Data source wizard in .NET 6

G. Bruijnes 21 Reputation points
2022-11-17T12:36:29.987+00:00

Platform: VB 2022
Version: Visual Studio Community 2022 (64-bit) - Version 17.3.6
OS: Windows 10, 64 bit
Developing: Windows Forms App .NET 6 platform

Toolbox only two datatools present: BindingSource and DataGridView from the original five shown when using .NET 4.8, which are: Chart, BindingNavigator, BindingSource, DataGridView and DataSet.

Questions:

  1. Why only two out of the original five tools present???
  2. Also the Data source wizard does not start, instead showing a link to some aka.ms/... site with not very useful information, which in itself relates to .NET 4.x...

Remarks: this site suggests that the Data source wizard should work using VB 2022:

https://learn.microsoft.com/en-us/visualstudio/data-tools/create-and-configure-datasets-in-visual-studio?view=vs-2022

I am at a loss here... Can anyone make me see the light please???

Do we have to wait for further updates by Microsoft? Is it a known issue? Might a bug be pestering me???

Thanks,

Gerrit

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,246 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Taylor 47,716 Reputation points
    2022-11-17T18:52:06.54+00:00

    The data source wizard and typed datasets are deprecated and have been for a while. You can see the warning here. You will need to migrate to something else or build the equivalent code by hand.

    As for the controls, Chart is part of the DataVisualization assembly and likely hasn't been updated. The winforms designer was completely rewritten to work in newer VS versions and controls that require custom designer components have to be migrated one by one. I'm not sure if this control is even on the list.

    DataSet will not be migrated as discussed above and also mentioned here.

    AFAIK BindingNavigator is supported as discussed here. Personally I have had issues sometimes getting the Toolbox to populate with all valid controls. Sometimes it is just easier to manually add the control to the designer backend and then it shows up in the designer and you hook the UI up normally. Sometimes resetting the toolbox or verifying the control is checked in the list of toolbox items resolves the issue, but sometimes it doesn't.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. G. Bruijnes 21 Reputation points
    2022-11-18T11:19:22.047+00:00

    Although dearly missing these handy controls, I would like to thank @Michael Taylor for your clear answer and for all the supplied links. It clarifies a lot.

    0 comments No comments