Skip to content

materialToolStripMenuItem can't add item to DropDownItems #3

@idea-zone

Description

@idea-zone

materialToolStripMenuItem can't add item to DropDownItems, it's show bad and throw ERROR on Running.

I am is here:
.NET 5.0.403;
VS2019 16.11.7;
MaterialSkin.NET5 1.0.1;

Here is DesignMode:
Design Mode

   Exception:  System.NullReferenceException;
   Error Message: Object reference not set to an instance of an object;
   HResult:   -2147467261;
   StackTrace: 
   at System.Windows.Forms.Layout.CommonProperties.xClearPreferredSizeCache(IArrangedElement element)
   at System.Windows.Forms.ToolStripDropDown.OnOwnerItemFontChanged(EventArgs e)
   at System.Windows.Forms.ToolStripDropDownItem.OnFontChanged(EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnFontChanged(EventArgs e)
   at System.Windows.Forms.ToolStripItem.OnOwnerFontChanged(EventArgs e)
   at System.Windows.Forms.ToolStrip.OnFontChanged(EventArgs e)
   at System.Windows.Forms.Control.set_Font(Font value)
   at System.Windows.Forms.ToolStrip.set_Font(Font value)
   at MaterialSkin.Controls.MaterialMenuStrip.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at MaterialSkin.Controls.MaterialForm.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions