ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  VB NetWinCharts code on Net8.0 project.
Posted by Luiz Defendi on Sep-03-2025 20:55
Hi Peter!

Noticed that NetCoreWinCharts have only C# code samples. Is it possible to use the VB code from the "NetWinCharts" in a Windows Visual Basic DeskTop Net8.0 project?

Thanks in advance,

Luiz

  Re: VB NetWinCharts code on Net8.0 project.
Posted by Peter Kwan on Sep-04-2025 04:33
Hi Luiz,

I noted the C# sample code for NetWinCharts and NetCoreWinCharts are identical. It seems only the project configuration is different. The NetWinCharts project targets the .NET framework 4 and reference netchartdir.dll. The NetCoreWinCharts targets .NET Core (including .NET 8) and reference the ChartDirector NuGet package.

I will try to modify the project file for VB to see if it can work with NET 8 too. I will update you for the result.

Best Regards
Peter Kwan

  Re: VB NetWinCharts code on Net8.0 project.
Posted by Luiz Defendi on Sep-04-2025 18:49
Thanks Peter! 👍

  Re: VB NetWinCharts code on Net8.0 project.
Posted by Peter Kwan on Sep-05-2025 02:59
Hi Luiz,

I confirm the VBNetWinCharts sample code can be used in .NET 8 Windows Forms project.

I simply create an empty .NET 8 Windows Forms project using Visual Studio, and import all the code files in the ChartDirector VBNetWinCharts sample code to the project. I then  add the ChartDirector.NET.Desktop.Controls nuget package to the project as a dependency, set the framework to .NET 8, and set the startup object to ChartExplorer. It compiles and run normally.

I have uploaded the project to our web site as follows:

https://www.advsofteng.com/support/VBNetWinCharts_NET8.zip

Best Regards
Peter Kwan

  Re: VB NetWinCharts code on Net8.0 project.
Posted by Luiz Defendi on Sep-07-2025 04:36
Thank you so much for taking the test and sharing the results, Peter.