Answered by:
Cannot add .dll to toolbox. Adding Theme Problem

-
text/html 7/26/2013 9:09:23 AM D3crypt3r 0
Hello,
I'm having a weird problem. Well, I'm trying to add a GUI theme for my Windows Forms Application. It is one of the SkinCrafter theme. I have Visual Studio 2012 64-bit, so I'm trying to add the x64 .dll
I have successfully added the reference, the skincrafter_.net4.5_vs2012_x64.dll.
I cannot add it to my toolbox though(Choose items and then the .dll), which then I would be able to theme my Form. I get an error.
I have tried adding the skincrafter_.net4.5_vs2012_x64.dll from folders "SkinCrafterDLL" & "SkinCrafterDotNet", both won't work.
Also, the Developer mentions the C++ skin integration, if I need to add this code before adding it to toolbox, how would I got about it? Can anyone guide me? I really need this. Thanks you for your time.
Sorry, this code is for MFC.
Question
Answers
-
text/html 8/5/2013 1:15:30 AM Jane Wang - MSFT 0
The Windows Forms Toolbox Control template that is included in the Visual Studio 2012 SDK lets you create a control that is automatically added to the Toolbox when the extension is installed.
Please make sure that the Visual Studio 2012 SDK has been installed in your computer.
Download Microsoft Visual Studio 2012 SDK
The Windows Forms Toolbox Control template is available in the New Project dialog box, under Installed Templates, in these locations:
-
Visual Basic, Extensibility. The language of the project is Visual Basic.
-
Visual C#, Extensibility. The language of the project is C#.
Jane Wang
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
All replies
-
text/html 7/26/2013 1:10:35 PM D3crypt3r 0
-
text/html 7/29/2013 5:11:56 AM Jane Wang - MSFT 0
Hi D3crypt3r,
Everyone would like to offer his assist if he knows the solution to your problem.They will come here to give you help if they have solved something urgent in hand,and I am just lucky enough to be the first one.
First, the error indicates that ‘skincrafter_.net4.5_vs2012_x64.dll’ is not valid. So please verify if this DLL is a valid .NET assembly. You can try to use some third party tools such as .NET Reflector to open it for verification.
Second, your sample code for C++ skin integration is COM-based. If you would like use it in your managed C++ project, please wrap up it into a COM and then call it via COM Interop mechanism.
Here are some references for your further check.
Interoperating with Unmanaged Code
Best Regards.
Jane.
Jane Wang
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
text/html 7/31/2013 9:00:15 AM D3crypt3r 0
Hey,
Thank you for your time helping me with the problem. I strongly believe it is, as the SkinCrafter developer mentioned that it is working fine with the Visual Studio 2012, but for some unknown reasons the .dll is invalid.
I would like to use it in Windows Forms Application C++ cli, .NET framework not .com
-
text/html 8/2/2013 10:01:36 AM Jane Wang - MSFT 0
Hi,
The SkinCrafter developer says that it is working fine with the Visual Studio 2012,while perhaps they have not mentioned that VS 2012 would accept it thoroughly yet.
If you want to add a GUI theme which is one of the SkinCrafter theme to your Windows Forms Application,then you can try to use the Windows Forms Toolbox Control template to create Windows Forms controls that are automatically added to the Toolbox when the extension is installed.
For more information,please refer to
How to: Create a Toolbox Control That Uses Windows Forms
How to: Create and Distribute Toolbox Controls
Advanced Toolbox Control Development
Best Regards.
Jane Wang
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
text/html 8/4/2013 3:14:50 AM Jane Wang - MSFT 0
Hi D3crypt3r,
You haven't been here for several days,I wish everything goes well with you.
Have you tried the solution proposed here and solved your problem?
I will monitor this thread for another two days,however,for better managing the forum,I have to mark one reply as the answer two days later and if you think the answer marked doesn't help,please feel free to unmark it.
If you sitll have questions unresolved,please consider posting another thread on the related forum.
Best Regards.
Jane.
Jane Wang
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
text/html 8/4/2013 5:29:15 AM D3crypt3r 0
-
text/html 8/5/2013 1:15:30 AM Jane Wang - MSFT 0
The Windows Forms Toolbox Control template that is included in the Visual Studio 2012 SDK lets you create a control that is automatically added to the Toolbox when the extension is installed.
Please make sure that the Visual Studio 2012 SDK has been installed in your computer.
Download Microsoft Visual Studio 2012 SDK
The Windows Forms Toolbox Control template is available in the New Project dialog box, under Installed Templates, in these locations:
-
Visual Basic, Extensibility. The language of the project is Visual Basic.
-
Visual C#, Extensibility. The language of the project is C#.
Jane Wang
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
-
text/html 8/5/2013 8:16:32 AM D3crypt3r 0
Hello,
Thank you for the info. I didn't have the SDK installed. If I would like to use the skin in C++/CLI it will still work?
So that means it is not included in the C++/CLI Windows Forms Application? Or after adding it to toolbox using C# it will appear as well when I will be working with C++/CLI? WFA.
-
text/html 8/6/2013 2:21:37 AM Jane Wang - MSFT 0
Hello,
As for the product you mentioned here,because I have never used it before,I think you can test what you have asked in your computer to see if it works.
If you think the suggestions proposed above are helpful,please mark it as an answer,and we can close this case successfully.
If you have other questions,please post them on the related forums to seek further solution.
Best Regards.
Jane Wang
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.