How to find chart control under my toolbox? - c#

As you can see in my screenshots below, I don't have an option chart under my toolbox. I checked and seem to have the proper references in place. I don't see any option to add the chart control either. Please help. Tnks.
reference
toolbox
no option to add chart control

The References under Solution Explorer only refers to what you can use in code. Toolbox items have to be added separately. To do this, right-click inside the Toolbox and select Choose Items.... In the dialog that appears select the tab referring to the type of control (in this case it looks like WPF). Scroll through the list to find the controls you want to add, tick them and click OK. The controls should now be available in the Toolbox. You can add extra tabs/sections to the Toolbox with the Add Tab right-click option.
That's a good question - I needed to search for a solution when I first tried to add new controls to the Toolbox!
Hope this helps! :)

I suggest you to use devexpress..
Install devexpress first..
After installing , restart you visual studio,, open a windows form application
and
Try devexpress..
Add " New Tab" in your tool box.
Right Click Tab and "Choose Items"
You can select dll files there. selec all related files and click ok
when you are done, just drag and drop chart control on you application, the reference will automatically updated.

The Chart is not a standard feature control of .NET 3.5 although it can be installed from a separate download. It is only standard in .NET 4.0 or higher. It is Not available at all (no separate download) for .NET 3.0 and below!
If you can, do change your project to .NET 4.0 to make the Chart control present in the Toolbox and then be able to add it to your forms. I have learnt this the long way...

Related

Cannot add GMapControl to Visual C# studio from GMap.NET

I need to add Google Maps in one of my projects and I found that I can use GMap.NET. Show I downloaded the GMap.NET and I add as references GMap.NET.Core.dll
and GMap.NET.WindowsForms.dll as shown in the guide of the GMap.net. Show according to the guide in "Choose Items" in toolbox section it must has appeared the GMapControl item but it hasn't. I haven't find any solution to this problem so I decided to make this article. Sorry for my bad english, I would be glad if anyone can help.
Go to TOOLS menu then click on "choose toolbox items...". Select .NET Framework Components, then click browse.Add GMap.NET.WindowsForms.dll there. Then when you open your toolbox, you should see GMapControl on General menu. If it's not there, check other toolbox menus.

XCeed WPF Toolkit -use Controls on Designer

I have problems to use the Extended WPF Toolkit controls in the XAML designer
environmet: Win8.1, WPF Toolkit 2.1.0.0, MS VisualStudio Express 2013
What have I done?
- Downlod the actual "Extended WPF Toolkit Binaries" from Codeplex-Homepage, unzip....
- include the Xceed.Wpf.Toolkit in my project - referencies ( o.k )
- in Toolbox: Add a new Tab "WPF Toolkit Extended" ( o.k )
- in the new registercard: Add Items. I see all the about 70 customs controls (ex. SingleUpDown and so on) (o.k)
- I try to drag and drop a custom (ex. SingleUpDown) to my main window. DOESN'T WORK
I get a messagebox (in german, I try to translate)
" a reference "XCeed.WPF.Toolkit, Version 2.1.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4" was added to the project. Press OK to restart the XAML Designer, that you can use the new types / controls out of the new referencies. After restart of the XAML designer you should do it again.
When I restart the Designer, or VisualStudio or even the computer, its always the same message. And I do not see the reference to the toolkit in the XAML designer.
I surely also tried all the referencies and hints on the codeplex installation site:
Add a using statement ("using Xceed.Wpf.Toolkit;") to the top of .cs files
Add a new xmlns (for example, xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit") to the top of XAML files
In your XAML, use the namespace prefix (in the above example, )
But this also doesn't work.
Is there any idea, why I am not able to drag and drop the controls to my main window and what is wrong in my approach. (I am pretty new to C# and WPF)
SORRY SORRY SORRY SORRY SORRY SORRY SORRY SORRY SORRY SORRY SORRY SORRY
I just solved it by additional google search. problem is to unblock properties after DLL-Downloads. My salvation was this comment:
This is a common problem when downloading files from thw web. Simply go to the folder where you downloaded the DLL. Right-click the DLL and select properties. Near the bottom of the properties dialog there should be a button that says "Unblock". Click that and you should be good to go.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I think the best solution is to add the WPF toolkit via Nuget.
If you don't have nuget already installed, go to Tools -> Extension and Updates in Visual studio. On the online section you should find Nuget easily it always appear on top, then click "download"
Once Nuget installed, right click on your project in the solution viewer and click on "Manage NuGet packages"
In the menu search for the Wpf Toolkit, and click on "install"
This way you are sure that the library is added correctly.

Unable to add QuickTime control to Windows Forms project in Visual Studio

I'm trying to follow the instructions on http://www.codeproject.com/Articles/50056/Read-M4A-tags-in-C to host the QuickTime control in a Windows Forms project. I'm using VS2010 with C#.
I've added all the available Apple QuickTime COM references to my project but I don't see the QuickTime control listed in the Toolbox.
In several examples online, people are using AxQTOControlLib.AxQTControl qtPlayerObj = new AxQTOControlLib.AxQTControl(); to initialize the control. In my project, I only have QTOControlLib, not AxQTOControlLib.
I've done this a bunch of times with other controls. Am I missing something?
Thanks!
You can right click on your ToolBox select Choose Items then select the Com Components Tab. You then will want to look for Apple QuickTime Control 2.0 and select it. When you Click Ok you will then have the Control in your ToolBox.
Try this, Open a console and browse to the location of QTOControlLib. Run AxImp.exe with QTOControlLib.dll as an argument. It should generate the AxInterop which you would then reference in your project.
PS: If you have already added QTOControlLib.dll to the toolbox, add a temporary windows form and drag the control on to the form. Visual studio should automatically generate the AxInterop. If this does not work try the above mentioned solution.

Change a Toolbox for new component

ALL,
I have created a new component in Visual Studio inside the solution I'm working on my application.
Now I want that component to appear in the Toolbox of Visual Studio.
How can I do that?
I tried to close and re-open the solution and its not there.
Thank you.
When you rebuild your solution after creating the control, Visual Studio automatically adds the control by creating a new category named after your application. If for some reason, VS doesn't adds it, you can manually do it by right clicking in the toolbox and choosing Customize. A dialog box will appear listing assemblies to be added to the toolbox. Since you have a custom control, you need to browse for your control's DLL (You have it under Bin folder of your application). This will add the control to the toolbox.
You right click on the toolbox and choose "Customize" , you will have a dialog that lets you browse to the assembly of your control .

Can I use a UserControl from the same project without making a DLL?

I made a User Control and already was able to use it by adding it to a form in the C# code. The User Control is in the same VS2005 Project as the main form.
The problem is that I can't see the User Control in the gui editor ([Design] window) with this implementation. I tried many things but I wasn't able to add the user control to the real form desing.
I read some things about making a control lib dll and then add this dll to the toolbox but I don't want to have an additional project and an additional binary file.
How can I use a User Control in an form Design, if both are in the same VS Project? I think somehow this should be possible?
Edit 1:
Sorry I have Visual Studio 2005 not 2010
It's certainly possible to use a UserControl in design mode when it's part of the same project.
Do note, however, that it will only show up in your toolbox if you have enabled the "AutoToolboxPopulate" setting. Go to the "Tools" menu and select "Options". Expand "Windows Forms Designer", and click on "General". Make sure that the "AutoToolboxPopulate" property is set to True. When you rebuild your solution, your UserControl should show up at the top of your toolbox, ready to add to your form.
Alternatively, you can add the UserControl to your toolbox manually. To do that, right-click on your toolbox and select "Choose Items" from the context menu. Navigate to your control, ensure that it is checked in the list, and click "OK".
In the event that an exception is thrown (like MacX mentioned), you will still be notified by the designer. The control will still show up in the toolbox, and you'll still be able to attempt to add it to your form.
As APShredder already mentioned the control should automatically appear in the toolbox. If it doesn't check your Visual Studio Settings:
Tools - Options - Windows Forms Designer - General - AutoToolboxPopulate - True
For further informations just read the Walkthrough in the MSDN.
You should be able to use a custom User Control in the Winforms designer. You have to build your project first however. You can do this by going to Build --> Build Solution or by pressing F6. Then your control should appear in the Toolbox.
Yes, in the toolbox, right-click and choose "Choose items...". Then navigate to the ".NET Framework Components" - your controls should be listed in there. Just choose to add them.
There should be no Problem with the Control, except you have an exception which is thrown within the constructor or the Load-Event. The the Designer is not able to display the control correctly.
In VS2010 after you create a User Control and compiled it, VS add automatically your component and make it visibile in his namespace on ToolBar.
This can be done in Both WPF and old style code/Components...

Categories