spacevil icon indicating copy to clipboard operation
spacevil copied to clipboard

ButtonToggle_0 MouseRelease System.NullReferenceException: Object reference not set to an instance of an object.

Open tridentic opened this issue 3 years ago • 0 comments

I have no idea why MouseRelease throws a null reference exception. Here is the code:

			ButtonToggle menuItem = new ButtonToggle("Enable Combobox");
            menuItem.SetStyle(Style.GetMenuItemStyle());
            menuItem.SetTextMargin(new Indents(25, 0, 0, 0));

            menuItem.EventMouseClick += delegate
            {
                var e = new MessageBox();
                e.SetMessageText("Hey");
                e.Show();
            };

            AddItem(menuItem);

tridentic avatar Apr 20 '22 07:04 tridentic