.NET Framework Bookmark and Share   
 index > Chart Controls for .NET Framework > How do I use the Chart Control Samples With Visua Basic Express
 

How do I use the Chart Control Samples With Visua Basic Express

I have downloaded the Chart Control samples and all the associated files etc, but I can't load the samples into VB.Net Express 2008 SP1.

I get an error message saying that the project type is not supported by this version of the application.

When I look at the files in Windows Explorer, under the 'Type' column the files appear to be C# files - Other posts I have read seem to indicate the samples are both VB and C#, so I assume I'm doing something wrong with opening them up?

Failing this, if anyone can point me in the direction of a decent tutorial that shows me how to use the charts with variables rahter than data imported from a DB or external that would probably get me going on my first project.

Thanks in advance

Neil
Neil Warwick
You probably need Visual C# Express instead ofVisual Basic Express to run the samples.. since the sample project is a C# project.

http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvcs/thread/77616791-a03c-409e-9ecc-87d41987c7eb(Where do I download Visual C# Express?)

The non-express Visual Studio versions let you develop with different programming languages without installing a separate instance of Visual Studio.

I think your best bet is just to try and get the sample project working. It's very comprehensive.

Or, you might want to look at the links found here.. (If you find the samples "seriously lacking") http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/f3079f74-294b-42bc-9d2b-217dfa2f6e96
  • Edited bysipla Tuesday, September 22, 2009 12:48 PMAdded link
  • Proposed As Answer byAlex GorevMSFT, OwnerTuesday, September 22, 2009 2:39 PM
  • Marked As Answer byNeil Warwick Tuesday, September 22, 2009 9:48 PM
  •  
sipla
Thanks for the advice, I will download C# express and see if that helps. I have read other forum post that certainly suggest that the samples will work with VB so maybe having C# co-installed will help. Neil
Neil Warwick
Just in case anyone else reads this thread and has the same problem, it's not completely clear in any of the documentation that the samples can only be run under C#.

This probably isn't an issue for the 'pro' developers out there who install the whole Visual Studio suite, for us amateurs / begginers that have only VB.net Express installed it could do with being made more obvious.

Neil
  • Marked As Answer byNeil Warwick Tuesday, September 22, 2009 10:07 PM
  •  
Neil Warwick
You probably need Visual C# Express instead ofVisual Basic Express to run the samples.. since the sample project is a C# project.

http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvcs/thread/77616791-a03c-409e-9ecc-87d41987c7eb(Where do I download Visual C# Express?)

The non-express Visual Studio versions let you develop with different programming languages without installing a separate instance of Visual Studio.

I think your best bet is just to try and get the sample project working. It's very comprehensive.

Or, you might want to look at the links found here.. (If you find the samples "seriously lacking") http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/f3079f74-294b-42bc-9d2b-217dfa2f6e96
  • Edited bysipla Tuesday, September 22, 2009 12:48 PMAdded link
  • Proposed As Answer byAlex GorevMSFT, OwnerTuesday, September 22, 2009 2:39 PM
  • Marked As Answer byNeil Warwick Tuesday, September 22, 2009 9:48 PM
  •  
sipla
Thanks for the advice, I will download C# express and see if that helps. I have read other forum post that certainly suggest that the samples will work with VB so maybe having C# co-installed will help. Neil
Neil Warwick
Just in case anyone else reads this thread and has the same problem, it's not completely clear in any of the documentation that the samples can only be run under C#.

This probably isn't an issue for the 'pro' developers out there who install the whole Visual Studio suite, for us amateurs / begginers that have only VB.net Express installed it could do with being made more obvious.

Neil
  • Marked As Answer byNeil Warwick Tuesday, September 22, 2009 10:07 PM
  •  
Neil Warwick

You can use google to search for other answers

Custom Search

More Threads

• Chart Control with Authentication mode="Forms"
• chart animation
• tick marks show through markers
• Code-Behind File
• Printed chart looks different to that on screen
• problem installing chart controls
• Next Version
• Chart.SaveImage throws exception when chart has two scale breaks
• Stacked bar label text?
• ChartArea.AxisX.CustomLabels: vertical position of label when AxisY.IsReversed = true;