ZedGraph doesn't works in Visual Studio 2012 - c#

Anyone used ZedGraph in VS2012 ?? When i try load component i get error message that "There are not Component in zedgraph.dll that can be placed on toolbox".
I can't find info does zedgraph works on VS2012.
Please recommend me some library to plot graph of math functions, thx

You first need to add the ZedGraphControl to your toolbox. The instructions on the Zedgraph CodeProject page works for Visual Studio 2012 as well:
ZedGraph is accessible as a control from the control toolbox in Visual Studio .NET. To access ZedGraph, first launch Visual Studio .NET, and create a new Windows Application (Forms) project. Open the form design so that it appears in the current window. View the toolbox using the View/Toolbox menu command. Right-click inside the "General" or "Components" sub-pane of the tool box, and select the "Choose Items..." option. Click "Browse...", and navigate to the ZedGraph.dll file. Once this file is added, you should see a ZedGraphControl option in the toolbox.
If you want to use an alternative charting library, please be aware that .NET 4 and later contains the .NET Charting library for Windows Forms out-of-the-box, see here.

Just go to nuget package manager console and:
Install-Package ZedGraph
It will install what you need and it will be working

Related

DataGridView not avaiable on Visual Studio 2019 ToolBox

I'm new to Visual Studio and in trying to follow a tutorial I can't seem to find the DataGridView on the ToolBox for Windows Forms. I understand I can go to "Choose Toolbox Items" to select what I want but even then when I try to drag and drop the DataGridView it doesn't allow me to drop it.
I don't understand it because in every tutorial I watch this seems to be a pretty straightforward operation. If this is not possible, or if this is not the control I should be using, what is the other option to display a datatable on windows forms?
Any help is appreciated.
Here is the fix:
Trying adding using System.Windows.Forms;. From .Net Framework only.
OR
After watching your image I think that it is a fresh project. So, create a new project. (Windows Form App(.Net Framework)), don't use .Net Core (still in progress as #JhonG said).

How to enable Windows Forms Design View in Visual Studio 2019

I'm starting with the Head First C# book and right off the bat I can't get my screen to look like how it looks in the book. It wants me to open Visual Studio, create a new Windows Forms Application and the picture they have shows Design View which has a blank form in the center and on the left, there's a Toolbox with bunch of windows form items to drag to the center, such as pointer, button, checkbox, label, listbox, etc. When I'm searching online how to get this Design View, everyone says select the form in the solution explorer and either right click and select Solution Designer or click Shift+F7. All this does is goes to the code in the center of the screen. How do I get to see the visual part of the form instead of just the code?
The .NET Core implementation of Windows Forms does not include a designer by default as it is still a preview feature.
The instructions to install the preview designer can be found here:
https://devblogs.microsoft.com/dotnet/introducing-net-core-windows-forms-designer-preview-1/
Alternatively, and more likely what you want to do is use the full .NET Framework for your Windows Forms application.
To do this, when creating the project in Visual Studio there will be a project type called 'Windows Forms App (.NET Framework)'
I had a similar issue. It turns out I was opening the Folder my program was in and not the Solution file. When I opened solution, it worked as expected.
EDIT: This is from right-clicking the .cs file in Solution Explorer. The Shift + F7 also doesn't work if you opened it as a folder rather than a solution.

Chart tool is greyed out in Visual Studio

I'm trying to add a chart to my Visual Studio form but the button is greyed out. I'm using .NET Framework 3.5 and C#. Following instructions online I've downloaded and installed the dll files from this link: http://www.microsoft.com/en-us/download/details.aspx?id=14422
I also added them as references and added the following line at the top of my form file:
using System.Windows.Forms.DataVisualization.Charting;
but the button is still greyed out.
What have I missed?
To make the chart control available, you need:
To be using .Net framework 4.0 or higher, OR for .Net framework 3.5 install this: http://www.microsoft.com/en-us/download/details.aspx?id=14422
On the toolbox context menu -> Choose Items... have the Chart control selected. (Sort by name in the Choose Toolbox Items dialog and scroll to Chart. There are two: one for Windows forms, one for Web forms. You need only select what's relevant.)
The chart control appears in the "Data" section of the Toolbox.
You do NOT need to any any "using" clause to the form source file, or any reference in the project references. (The reference is added automatically for you when you add the control.)
I too had this issue and could not resolve it for hours.
As posted here:
Visual Studio 2010 toolbox controls disabled or inactive
In order to solve it for me I just right-clicked one of the items in the toolbox, and chose "Reset Toolbox"
This resets the entire toolbox, so as mentioned in the answer above, all custom tools are lost and need to be re-imported.
Had the same problem.
What I did was to make sure that I was using the same Framework with the chart framework version.
During project creation, by default using .net 3.5. But since the chart is written for Framework 4.0, it will not work with 3.5.
You need to change the solution or project Framework to 4.0 or above by doing this:
On the menu bar of Visual Studio, click <your project name>/Properties.
Change target framework to 4.0 or above.
Save the properties setting.
Rebuild your solution.
After this, you may use that chart component.

.NET 3.5 Chart Controls Disabled

I've been using .NET 4.0 C# Windows Form Application utilizing the chart controls to render a chart on my form. I've recently had to switch to .NET 3.5 to use a reference that doesn't support 4.0. Now, I can’t use the chart controls for my application.
I’ve downloaded and installed the recommended packages:
Microsoft Chart Controls for Microsoft .NET Framework 3.5
http://www.microsoft.com/download/en/details.aspx?id=14422
Microsoft Chart Controls Add-on for Microsoft Visual Studio 2008
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=23903
But my problem is that I am using Visual Studio 2010, the add-on is only for vs2008.
I had to select 'Show All' on the toolbox in order to even see the chart option, but now it is disabled and when I attempt to click and drag I get a error icon as my mouse pointer.
I tried to upload the image that shows the disabled chart, but SO wouldnt let me.
Is there any way that I can use the .Net 3.5 Chart Controls with VS2010?
Thanks,
Bryan
Right click into toolbox
choose items...
filter for "chart"
check out chart-checkboxes
Now they should be available.
If you upgraded to framework 4.0, remove manually added references of chart control, because framework 4 already has chart control.
Go to Project|Application properties and change your target framework to .NET Framework 4. It will close the solution and reopen it by itself. your chart control will be enabled.
This is how I included chart in .net 3.5. Download the dll from "https://www.nuget.org/packages/System.Windows.Forms.DataVisualization/". You can check the license there. Now open visual studio/visual c# express(In my case it is Visual C# express 2008). Go to Tools->Choose ToolBox Items-> In the window there would be a "browse" button in the bottom side. Browse the downloaded dll. Now it will show the "Chart" control in the same window's ".Net Framework Components" tab.Now click on it and press "OK". Now go to your toolbox , there you can find the "Chart" Control.

DevExpress Toolboxes don't get created on Visual C# Express

I installed DevExpress v2011 vol 1 on my Win7-32 Home Premium computer running Microsoft Visual C# 2010 Express.
The DevExpress controls do not appear in the ToolBox. I tried running the ToolboxCreator program with logging, and it resulted in:
VS 2005 not found
VS 2008 not found
VS 2010 not found
It looks like I can manually add DevExpress controls to the ToolBox by doing the "Choose Items..." method and selecting a DevExpress tool, but that's a lot of controls, and even though I specified to only install the WinForm controls, it looks like a lot of web controls are there, too.
Is this the way I have to do it, or is there a better way?
It seems like this is a known problem according this post. The post acknowledges issues with VS Express, and links to this support article. Unfortunately, it says:
It is possible to use our ASP.NET and WinForms products in Express Editions, but you will have to manually add the required product items to your Toolbox. This can be done via the "Choose Items..." command of the Toolbox' context menu as described bellow.
So, sorry, there doesn't seem to be an easier way; I am guessing DevExpress themselves would be suggesting it if there were.
I resolved the issue in the following manner. I ran the devexpress toolboxcreator. But after that the toolbox was still abscent any devexpress controls. Then I right clicked the toolbox and selected 'Reset toolbox'. Maybe that would have worked if i'd tried it first, but it did the trick for me!
Note that if you use 60 free DevExpress controls then you should use only DevExpress.Utils.v11.2.dll and DevExpress.XtraEditors.v11.2.dll (for winforms) like in this video http://www.youtube.com/watch?v=QovScQvyvNM
DevExpress Controls not showing up (disable) in Visual Studio toolbox:
This issue was caused by the application Target Framework being set to .Net Framework 2.0
once the Target Framework was changed to 4.0, the controls became available in the Toolbox.
To change the Target Framework in Visual Studio:
For VB.net:
Right click the project in the Solution Explorer and click Properties...
On the Compile tab, click the Advanced Compile Options... button
Change the Target framework (all configurations) to .NET Framework 4.
For C# .net:
Right click the project in the Solution Explorer and click Properties...
Click the Application tab and change the Target framework to .NET Framework 4.
After that you need to repair toolbox by right clicking on toolbox tab, where controls exist.
Visual Studio will close automatically and will reopen after some configuration will apply.
Now you will find all devExpress Controls available on toolbox..

Categories