Closed valimaties closed 3 years ago
I forgot to write this happening in design mode.
Solving my problem: I've added a property to hide context menu and seems to work fine for me!
private bool _ShowContextualMenu;
[Browsable(true)]
[DisplayName("ShowContextualMenu")]
public bool ShowContextualMenu
{
get => _ShowContextualMenu;
set
{
_ShowContextualMenu = value;
if (!value)
{
ContextMenuStrip = null;
}
Invalidate();
}
}
Added in PR #233.
Use property ShortcutsEnabled to enable or disable contextmenu and keyboard shortcuts.
Hi. Searching for an option to hide
ContextMenu
from MaterialTextBox (I don't want to see ContextMenu when control is ReadOnly), I discovered that Visual Studio will crush when I want to see Items of ContextMenu.