question

Wami007-9389 avatar image
0 Votes"
Wami007-9389 asked JeanineZhang-MSFT commented

C++/CLI Error : Failed to load toolbox item.

I just Created .Net Framework Project and add 1 form and 1 user control but when i try to drag and drop user control to my main form it gets error. Relase and debug mode running on x86, clean and rebuild doesn't work

dotnet-csharpc++dotnet-runtime
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Wami007-9389

I just Created .Net Framework Project and add 1 form and 1 user control but when i try to drag and drop user control to my main form it gets error.


Could you please provide some steps and a code sample that help us reproduce the issue?

I suggest you could refer to the steps in the thread: Create C++ Windows Forms application in Visual Studio 2017


0 Votes 0 ·

Already done provided steps and designed main form but user control can't add to main form. After creating User Control i am include it in the main form.cpp for opening Designer without errors....

0 Votes 0 ·

@Wami007-9389

You may not create an instance of user control. Could you please provide the sample to help us reproduce the issue? And what's the detailed error message?

0 Votes 0 ·

1 Answer

Wami007-9389 avatar image
0 Votes"
Wami007-9389 answered Wami007-9389 commented

Need Help, Please Help me to fix it

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


Did you try creating another simplest User Control, which does not contain anything? Then check if it appears in Toolbox and can be dragged.

0 Votes 0 ·

I am already try to add simple User Control, it appears on toolbox but when dragging it says error :(

0 Votes 0 ·

After the experiment with a simple User Control and a simple empty form, did you try to close all of tabs, and then reopen the form?

0 Votes 0 ·

Yes did it , but here is no luck . Some forums says i need create .dll for user control

0 Votes 0 ·