Category / Section
How to suppress the context menu on right-click of the WinForms DateTimePicker (DateTimePickerAdv)?
1 min read
Context menu
We can suppress the context menu through the following code snippet:
C#
this.dateTimePickerAdv1.ContextMenu = new ContextMenu(new MenuItem[] {});
VB
Me.dateTimePickerAdv1.ContextMenu = New ContextMenu(New MenuItem() {})