J
jonpb
When the ContextMenuStrip property of a TextBox is set to null the
system default context menu is used. To stop this from happening you
must set the ContextMenuStrip property to, at least, a dummy one with no
items.
Due to the proliferation of TextBoxes in a normal application, i.e. they
are used DataGridCells, NumericUpDownBoxes, etc, etc. I was wondering if
there is an Assembly level attribute or config property to not use the
system TextBox context menu when the ContextMenuStrip property is null?
Or better yet, replace the system one with a custom one which will be
used when ever the ContextMenuStrip property is null.
Thanks
system default context menu is used. To stop this from happening you
must set the ContextMenuStrip property to, at least, a dummy one with no
items.
Due to the proliferation of TextBoxes in a normal application, i.e. they
are used DataGridCells, NumericUpDownBoxes, etc, etc. I was wondering if
there is an Assembly level attribute or config property to not use the
system TextBox context menu when the ContextMenuStrip property is null?
Or better yet, replace the system one with a custom one which will be
used when ever the ContextMenuStrip property is null.
Thanks