ActiveReports.Viewer3 Request technical support
ContextMenu Property
See Also  Example


Gets or sets a context menu to use when the user right-clicks on the report viewer component.

Syntax

Visual Basic (Declaration) 
Public Property ContextMenu As ContextMenu
Visual Basic (Usage)Copy Code
Dim instance As ReportViewerObject
Dim value As ContextMenu
 
instance.ContextMenu = value
 
value = instance.ContextMenu
C# 
public ContextMenu ContextMenu {get; set;}

Return Value

A ContextMenu value that represents the context menu to be used for the report viewer component.

Example

C#Copy Code
System.Windows.Forms.ContextMenu c = new ContextMenu();
c.MenuItems.Add(
"Copy");
arv.ReportViewer.ContextMenu = c;
Visual BasicCopy Code
Dim c As New System.Windows.Forms.ContextMenu
c.MenuItems.Add("Copy")
arv.ReportViewer.ContextMenu = c

See Also