ContextMenu

ContextMenu marshal by reference, disposable

System. Windows .Forms (system. windows .forms.dll) class

Derived from Menu , this represents a pop-up menu. Extending the base functionality, you can Show() the menu at a particular System.Drawing.Point , and you can set the owner Control , which you can retrieve through the SourceControl property.

 public class  ContextMenu  : Menu {  // Public Constructors  public  ContextMenu  ();    public  ContextMenu  (MenuItem[ ]  menuItems  );  // Public Instance Properties  public virtual RightToLeft  RightToLeft  {set; get; }    public Control  SourceControl  {get; }  // Public Instance Methods  public void  Show  (Control  control  , System.Drawing.Point  pos  );  // Protected Instance Methods  protected internal virtual void  OnPopup  (EventArgs  e  );  // Events  public event EventHandler  Popup  ; } 

Hierarchy

System.Object System.MarshalByRefObject System.ComponentModel.Component(System.ComponentModel.IComponen, System.IDisposable) Menu ContextMenu

Returned By

Control.ContextMenu , Menu.GetContextMenu() , NotifyIcon.ContextMenu

Passed To

Control.ContextMenu , NotifyIcon.ContextMenu



. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net