Tag Archives: contextmenu

Display context menus for TreeView items in C#

This example displays different context menus when you right-click on different kinds of nodes in a TreeView control. In this example, different nodes represent factories, groups, or individuals. Different node types display different context menus. When it starts, the program … Continue reading

Posted in controls, user interface | Tagged , , , , , , , , , , | Leave a comment

Use a notify icon to capture a screen image in C#

The example Save an image of the computer’s screen in a file in C# lets you save an image of the computer’s screen in a file. This example provides a few convenience features. One problem with a basic screen capture … Continue reading

Posted in graphics, system | Tagged , , , , , , , , , , , , , , , | Leave a comment

Make a modal context menu in C#

This example shows how you can make a modal context menu. Normally when a context menu appears, the user can press Esc or can click off of the menu to make it disappear. Some while ago, someone asked me whether … Continue reading

Posted in forms, menus | Tagged , , , , , , , , , , , | Leave a comment