WinForm designer is broken in case using customer UserControl, and the platform target is x64

  • Thread starter Thread starter Jimmy Qin
  • Start date Start date
J

Jimmy Qin

Guest
Here is very basic example.

When create a WinForm project and set the target platform to x64.

The designer will always give you error, when open the UserControlTest.

Any idea if it's by design or a VS bug?

the base class UserControlBase.cs

using System.Windows.Forms;

namespace WindowsFormsTest
{
public class UserControlBase : UserControl
{
}
}


the Test class UserControlTest.cs

namespace WindowsFormsTest
{
public partial class UserControlTest : UserControlBase
{
public UserControlTest()
{
InitializeComponent();
}
}
}

Continue reading...
 
Back
Top