.NET Windows Forms custom control how to create a quick menu

Some controls have a useful context menu for accessing some commonly used properties, for example, a standard text field:

TextBox showing a little arrow

By clicking on the arrow:

Clicking on the arrow a context menu appears

How to do this with a custom control? Thanks.

+4
source share
1 answer

you must create your own control constructor that can provide verbs as custom menu items or user interface enhancements for the VS form designer.

Designer:

A class that takes care of the appearance and behavior of the control when placed in Visual Studio.NET. You can use this class to add new context menu verbs and, for ASP.NET controls, explicitly specify the HTML code that will be displayed in the designer.

check here for the full article:

Custom Development Time Management Features in Visual Studio .NET

+4
source

All Articles