Now, in the Properties panel, under Behavior > ContextMenuStrip we need to assign the respective context menu.įinally, we have populated the ContextMenuStripEx control successfully. Right-click on the RichTextBox control in the designer and select Properties. To associate the ContextMenuStripEx control, you can choose any type of control like RichTextBox, Button, Label, TextBox, MaskedTextBox etc… In this illustration, we have used “RichTextBox”. To associate the context menu to a control we need to drag and drop any control of your choice to the application. Similarly, we can set the text for menu item in the Properties panel, under Appearance > Text section. Now, in the Properties panel, under Appearance > Image we need to browse the respective image. Once item is added, we can set the image by right-clicking on the particular item in the designer and select Properties. Items can also be added by choosing Edit Items under Property option and then select the ToolStripItems from the Items Collection Editor. ![]() On clicking, it will display different type of ToolStripItems, using this user can add the items as per their need. Now the ContextMenuStripEx control will be successfully added into the application along with the required dependent assemblies.Ĭlick Type Here for adding the items. The Windows Forms ContextMenuStrip (ContextMenuStripEx) control can be added through designer by following the below steps.ĭrag and drop the ContextMenuStripEx control from the toolbox (under the section “Syncfusion Windows Visual Studio Version Toolbox Essential Studio Version”) into the designer page. The following assemblies needs to be added as reference to use the control in any application. ![]() This section provides a quick overview for working with the ContextMenuStripEx control in a WinForms application. Refer to this link to learn about registering Syncfusion license key in your Windows Forms application to use our components. Starting with v16.2.0.x, if you refer to Syncfusion assemblies from trial setup or from the NuGet feed, include a license key in your projects. Getting Started in Windows Forms ContextMenuStrip (ContextMenuStripEx)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |