Hi i have searched the web with several people complaining about the same trouble .Some found the solution , some did not.
I have a Winform application created in C# using Visual Studio.
I have two computers : One has Visual Studio 2012 Express Desktop and another is Visual Studio 2012 Ultimate and both have the same trouble.
Under my "Data" tab i see no option that says "Chart".
Here is what i tried :
right clicked "Data" and clicked "Show all items". I get "Chart" but that is grayed out.
I tried resetting the toolbox , but the result is same.
I tried right clicking and chose " Choose items" . There i see my "Chart" control , both for web and winforms and both are checked.
It also shows the following description :
Language : Invariant Language (Invariant Country)
Version : 4.0.0.0
Please help .
Change : I downloaded the DataVisualization.dll and tried adding reference manually. I am now able to add the reference with "using" keyword.
I also tried to drag the dll in the toolbox and it dows show me the new chart control but that is still grayed out.
Well am not sure what made it work . But after downloading the dll and adding a manual reference, i had to restart Visual Studio. I still have the item grayed out and i am not able to drag the control in my application . But strangely now when i right click and choose to copy the control and go in my WinForm applicatin and paste it . It does show up the control there.
Related
So I want to start doing c# from head first c# 3rd edition, the big problem is that I can't find neither blank page and I saw alot of people saying that using WPF is okay, but when I try and add a new item I see nothing related to c# or what I actually need, what I need is a basic page, here is how it looks like:
now the problem is I can't fix it to show me what I need only for c# I tried, community,enterprise.
Does anyone have any idea of how to fix this?
You seem to be trying to add an item at the solution level. Note that in the screenshot it says "Add New Item - Solution Items". This will create files that exist in the solution, but no belong to any particular project, not affecting the output of compilation of any project. That's the reason why you don't see anything code related, you're not editing a code project.
Instead, right click on the project item on the solution explorer (not on the top solution item) and add a new item there. The selection of options will be specific to the type of code there. For example for WPF you'll get all XAML-based file types, or for Winforms you'll see forms and control classes.
I had this same problem I am using Visual studio 2015 community edition, the problem is you have created the wrong project to start of with. The screenshots in the book are from VS 2013 so it will look a little different.You need to create a Blank App(Universal windows 8.1) highlighted in the image attached and not Blank App(universal window). Once I done this basic page will no be available in the add new item page.
VS 2015 Screenshot
I'm new to Visual Studio and couldn't find my answer anywhere else for hours over the internet..
I'm Using "Visual Studio Express 2012 for Windows" and everytime I create a new project with a blank page (XAML), the designer only shows me the frame of the page with its missing background.
And any control I drag to it, is invisible (I can only see the square border of the control I dragged but no texture..)
This is only happening during design time. On RunTime it actually shows up..
This is happening to me since I had the first fresh install. Just to be clear, I am NOT opening an existing previous project.. I have non. This is the first time I make a project in C# and I'm surprised I didn't find anything useful so far over internet search..
Also tried installing, uninstalling, repairing and changing to different versions...
The problem didn't show on Visual Studio 2012 Express for Desktop, but this product doesn't seem to be fit to my needs.. (I'm trying to also learn how to develop for Windows Store and other products)
The IDE doesn't show any errors or warnings..
Help would be much appreciated!
P.S - I'm running Windows 8.1
You can try Blend to open the project and render the xaml,if the problem appear too, maybe you should check out your graphics card or update driver.
try with this!
Check the following:
Tools -> Options
Expand Text Editor -> XAML -> Miscellaneous
Make sure that "Always open documents in full XAML view" is not checked
Or perhaps the default program for opening .xaml files has changed:
Right-click your .xaml file in Solution Explorer
Click Open With...
Select XAML UI Designer
Click Set as Default button
Click OK
If it's related to the video driver, maybe disabling hardware acceleration will help?
Or you could try Visual Studio Community Edition (http://www.visualstudio.com/, click on the Download button under "Free developer tools"
Did one of these suggestions work?
Just a few days ago this started happening, and I'm not entirely sure why. When I add a control to my form (specifically from here), it goes straight to the icon list, like where a timer would go.
Things I've tried:
Uninstalling and reinstalling Visual Studio
Installing another version of Visual Studio (tried 2010, 2012, 2013)
Adding the control's project to my solution and using it that way instead of manually adding the controls to my toolbox from the compiled dll.
Nothing has worked so far, so right now I am at a loss. Should I just reformat and start fresh?
EDIT: I should clarify. When it's added to the list at the bottom, I cannot manually add it to the form or anything. If I change the Location property, it goes straight back to 0,0 and doesn't show up.
MetroFramework.dll requires that you also reference MetroFramework.Design in order to obtain design-time support.
[Designer("MetroFramework.Design.Controls.Metro...")]
...
public class MetroButton : Button, IMetroControl
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.
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.