J
jamesgao8
Guest
I've been working on panel switching or transitions for C++ with a click of a button. So in the project I added a CLR User Control and named it MyUserControl. 2 files were created MyUserControl.cpp and MyUserControl.h I've then rebuilded the project and from the toolbar I dragged MyUserControl on to my MainForm but an error comes up saying "Failed to load toolbox item 'MyUserControl'. It will be removed from the toolbox".
Any ideas on this problem? On the MyUserControl.cpp I left it blank except for #include "MyUserControl.h" Main form code:
#include "MyForm.h"
#include <Windows.h>
using namespace UiDesign;
int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmd, int show)
{
MyForm Form1;
Form1.ShowDialog();
}
Cheers, James
Code link: jamesgao8/Ui_Designs
Continue reading...