question

GBruijnes-0579 avatar image
0 Votes"
GBruijnes-0579 asked GBruijnes-0579 answered

Data source wizard in .NET 6

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-formsdotnet-aspnet-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

cooldadtx avatar image
0 Votes"
cooldadtx answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GBruijnes-0579 avatar image
0 Votes"
GBruijnes-0579 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.