Tag Archives: runtime

Create menu items at run time with images, shortcut keys, and event handlers in C#

This example shows how you can create menu items at run time. The following code adds new menu items to the Tools menu when the program starts. // Create some tool menu items. private void Form1_Load(object sender, EventArgs e) { … Continue reading

Posted in menus | Tagged , , , , , , , , , , , | 1 Comment

Make menus at run time for a WPF application in C#

This example shows how you can make menus at runtime and add them to a WPF application. Normally you build a WPF program’s user interface at design time using a XAML editor, but anything you can do in XAML you … Continue reading

Posted in controls, menus, wpf | Tagged , , , , , , , , , , , | 4 Comments