Нужно явно указать Guid для UserControl'a. Код ниже.
[Guid("DEF7E24A-993C-471C-91EC-4C96F8697266")]
[ToolboxBitmap(typeof(TestControl))]
public partial class TestControl : UserControl
{
public this()
{
InitializeComponent();
}
private mutable button1 : System.Windows.Forms.Button;
private mutable button2 : System.Windows.Forms.Button;
private button1_Click (_sender : object, _e : System.EventArgs) : void
{
_ = System.Windows.Forms.MessageBox.Show("Hello");
}
}
Ошибка.
TestControl.n(19,4): error : `System.Guid' is not an attribute class
confused by earlier errors bailing out
Как можно явно прописать Guid для UserControl'a.
Спасибо за помощь.