Start Page Forml.vb [Design]' Form1.vbK | < > X


Figure 11-10: Adding a ContextMenu component to a form

3. Associate the context menu with the form or a control on the form by choosing the ContextMenu object from the drop-down list in that form, or control's ContextMenu property in the Properties window. More than one control can use a ContextMenu. You can use the SourceControl property to determine which control last displayed the shortcut menu in order to perform tasks specific to the control or to modify the shortcut menu displayed for the control.


Was this article helpful?

0 0

Post a comment