Cannot Place User Control on Form

前端 未结 8 1250
南笙
南笙 2020-12-06 03:48

I\'ve created a C# WinForms application using VS2010. I\'m new to creating user controls so I created a new user control (as part of the same project).

When I rebuil

8条回答
  •  甜味超标
    2020-12-06 04:48

    I finally figured this one out.

    The project I'm working with uses two class-library assemblies. Although these have nothing to do with the control I'm discussing, I looked and saw both libraries have Platform Target in the Properties|Build tab set to "Any CPU".

    On the other hand, my application had this setting set to "x64". By changing my application's setting to "Any CPU", I can now place my user controls onto my forms.

    Go figure...

提交回复
热议问题