Krypton Toolkit controls not showing in form - c#

Krypton used to be a purchase item, but now it's displayed on Github for personal and commercial projects.
https://github.com/ComponentFactory/Krypton
I'm using Visual Studio 2012 and the components seems to work in this version as I quote:
Full source code for all the controls and components is included along
with Visual Studio project and solution files for 2005, 2008 and 2010
versions of Visual Studio. If you are using a newer version of Visual
Studio you can still load the solutions and it will compile just fine.
I have download the github files and I have a bunch of dll files. I have added those dll files into my Visual Studio Toolbox.
What happens is that the items are added successfull but when I drag and drop them into the form they do not appear. I have tried the Buttons, DataGridViews, etc, none of them work.
The project shows no error when I run..what am I missing?

Solved.
1) Inherit the KryptonForm
public partial class Form1 : KryptonForm
2) Add the Design.dll library as reference and not as Toolbox item

Related

Empty toolbox in Visual Studio 2022 for .NET 6.0 WinForms and Control Library projects

When I create WinForms project or Control Library project for .NET 6.0, the designer toolbox is empty with information "There are no usable controls in this group".
Reseting toolbox does not fix the problem.
Repairing VS installation from VS Installer level does not fix the problem.
Visual Studio Cummunity 2022 v 17.3.1
Has anyone encountered such a problem?
I found a solution for this:
Close Visual Studio
Go to this folder on your computer:
%USERPROFILE%\Local Settings\Application Data\Microsoft\VisualStudio\
Open the sub-folder for your version of Visual Studio, something like 17.0_65d436a7
Delete these 4 files:
toolbox.tbd
toolbox_reset.tbd
toolboxIndex.tbd
toolboxIndex_reset.tbd
After you open Visual Studio the toolbox items should be there.
A similar issue occurred on my machine, with an empty Toolbox and all the latest updates. I hadn't noticed the Reset Toolbox option, but I landed here after searching and the comments above helped resolve my issue. For future reference, here's a quick visual guide of things to try if the Toolbox is empty.
Verify
Reset
Resetting...
Try right click on Toolbox empty space and click "Show All".

How do I view and edit Visual Basic Power Pack shapes in a Windows Form app with Visual Studio 2022?

I've got a windows forms app created in an older version of Visual Studio (VS2019).
When I open it in VS2022, none of the Power Pack shapes are show in the design view.
I've got the Power Pack dll in references.
Opening the projects with VS2022 the Microsoft.VisualBasic.PowerPacks controls disappear from the design screen even though everything is referenced correctly, the project is compiled without errors and the controls are visible in the application when it runs.
I have tried inserting Microsoft.VisualBasic.PowerPacks elements from the toolbox but it doesn’t work, everything compiles but the components are not visible in the design (only in runnig application).
I want to use the new version of Visual Studio (VS2022).
I have fixed this by using PowerPack v3.0. Version 10 and 12 does not work for me as well.
After several attempts I managed to get the .dll to work with version 9.0.0, version 12.0.0 seems not to work.
With this, the shapes are visible and editable even in design.
Combination Working:
Microsoft Visual Studio Enterprise 2022 (64 bit) - Current Version
17.3.2
Microsoft .NET Framework Version 4.8.04084
Microsoft.VisualBasic.PowerPacks Version 9.0.0 / Runtime Version
2.0.50727
I hope this will Help

Class Diagrams in VS 2017

I have been using VS 2015 and like the Class Diagram item.
I recently upgraded to 2017 and can't seem to find the Class Diagram item.
Anyone know how I get to it?
Using VS2017 Enterprise:
Go to the Quick Launch Bar (top right) Ctrl + Q
Type "Class Designer" and an install link will pop up
Click install, restart, and your off to the races... Enjoy!
Noticed this in the beta and thought I had a bad install. The UI elements to add new Class Diagrams were missing and I was unable to open existing *.cd Class Diagram files in my solutions. Just upgraded to 2017 and found the problem remains. After some investigation it seems the Class Designer component is no longer installed by default.
Re-running the VS Installer and adding the Class Designer component restores both my ability to open and edit Class Diagrams as well as the UI elements needed to create new ones
You need to install “Visual Studio extension development” workload and “Class Designer” optional component from the Visual Studio 2017 Installer to get the feature.
See: Visual Studio Community 2017 component directory
But this kind of item is not available on all project types. Just try for yourself:
In a Console App (.NET Framework) is available;
In a Console App (.NET Core) is not available.
I couldn't find more info on future availability also for .NET Core projects.
Woo-hoo! It works with some hack!
According to this comment you need to:
Manually edit Microsoft.CSharp.DesignTime.targets located in C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\Managed (for VS Community edition, modify path for other editions), append ClassDesigner value to ProjectCapability (right pane):
Restart VS.
Manually create text file, say MyClasses.cd with following content:
<?xml version="1.0" encoding="utf-8"?>
<ClassDiagram MajorVersion="1" MinorVersion="1">
<Font Name="Segoe UI" Size="9" />
</ClassDiagram>
Bingo. Now you may open this file in VS. You will see error message "Object reference not set to an instance of object" once after VS starts, but diagram works.
Checked on VS 2017 Community Edition, v15.3.0 with .NETCore 2.0 app/project:
GitHub issue expected to fix in v15.5
the following procedure worked for me:
Close VS.
Run Visual Studio Installer.
Click on the 'Modify' button under 'Visual Studio Professional 2017'
In the new window, scroll down and select 'Visual Studio Extension Development' under 'Other Toolsets'.
Then on the right, if not selected yet, click on 'Class Designer'
Click on 'Modify' to confirm
VS 2017 Professional edition-
Go to Quick launch type "Class..." select Class designer and install it.
Once installed go to Add New Items search "Class Diagram" and you are ready to go.
In addition to #ericgol's answer:
In the French version of Visual Studio Community 2017, type "Concepteur de classes" in the search bar.
Open Visual Studio Installer from the Windows Start menu, or by
selecting Tools > Get Tools and Features from the menu bar in Visual
Studio.
Visual Studio Installer opens.
Select the Individual components tab, and then scroll down to the
Code tools category.
Select Class Designer and then select Modify.
The Class Designer component starts installing.
For more details, visit this link:
How to: Add class diagrams to projects
I am using VS 2017 Enterprise, you can find an option to install the class diagram extension using he Quick Launch in VS.
A further note on Dmitry's 2017 answer. I opened up
C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\MSBuild\Microsoft\VisualStudio\Managed\
Microsoft.CSharp.DesignTime.targets
and went to the <ProjectCapability> element. I already had this:
<ProjectCapability Include="
CSharp;
Managed;
ClassDesigner**;**" />
with ClassDesigner already there, and yet I was still unable to drag items to my hack-made Diagram.cd using the XML editing method Dmitry mentioned (
Manually create text file, say MyClasses.cd with following content:
<?xml version="1.0" encoding="utf-8"?> <ClassDiagram MajorVersion="1"
> MinorVersion="1">
> <Font Name="Segoe UI" Size="9" /> </ClassDiagram>
). But when I took off the semicolon off 'ClassDesigner' in that element then reopened Visual Studio, voila, I was able to drag classes from my Solution Explorer to my Diagram.cd window.
So in conclusion, this element in Microsoft.CSharp.DesignTime.targets worked:
<ProjectCapability Include="
CSharp;
Managed;
ClassDesigner" />
I am using VS 2019, version 16.1.5.

drag and drop metro control to windows form does not work in visual studio 2013

I just imported the nuget package into visual studio 2013. I found that all the metro control in toolbox cannot be added on the windows form, and they will display on the panel under the windows form. How can i solve this?
I assume you are adding third party user controls into your solution through nuget.
The first thing I will check is to see if the dll files (your third party library) have been added to the project properly.
The second thing is do a rebuild on the whole solution.

Embedding VLC in WPF Application using Visual Studio 2012 (Adding Control to Toolbar not working)

I have seen many questions and solutions to embed VLC in a WPF project but they all seem to be many years old and none of them are using Visual Studio 2012.
I know the code behind I need to set up the player but getting the ActiveX plugin into my toolbox has been an issue.
I installed the latest version of VLC (2.1.5) and it will not allow me to add the COM component to the toolbox or even add a reference to the VLC Plugin to my project.
When I tried installing previous versions of VLC this occurred as well. The only recent version that allowed me to at least reference it in my project was version 2.0.5. but adding it to the toolbox was a problem.
I'm even experiencing this issue in Visual Studio 2010.
If anyone has any current links or solutions to this problem for VS 2010 or preferably VS 2012, it would be greatly appreciated.

Categories

Resources