Create a custom context menu

I have a simple dialog box that I would like to display as a context menu.

I can right click and show it as a borderless modal dialog if possible. I would like it to look right like the Windows context menu (panel on lhs, blue border) - is there a way to do this automatically to collect custom desktop settings (needs to work like for XP, Vista)?

0


source to share


1 answer


Your Visual Studio tool has a context menu control. Use this.



If you need to display a right-click dialog box without a border, that is also possible. As you said, catch right click and ShowModal. Alternatively, you can get rid of the border by setting the BorderStyle property of the dialog box to None.

+1


source







All Articles