Tag Archives: active control

Use ActiveControl to enabled and disable menu items in C#

This program uses the ActiveControl property to determine what menu items should be enabled and disabled at any given moment. When the user opens a menu, only the appropriate items should be enabled. This example has Copy, Cut, and Paste … Continue reading

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

Use the ActiveControl property in C#

The ActiveControl property gives a reference to a container’s currently active control. For a form, ActiveControl doesn’t count menus, so a menu item can use ActiveControl to see which control was active when the menu was opened. In this example, … Continue reading

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