34,333
edits
Changes
→Adding Context Menus to a Visual Basic Form
== Adding Context Menus to a Visual Basic Form ==
Context menus are added to a form in Visual Basic using the ''Context Menu Strip'' object and associating it with a particular control. Begin by creating a new Windows Application project in Visual Studio. Next, add a ''RichTextBox'' component to the form so that the form appears as follows:
[[Image:Exampl.jpg]]