Adding 2 Event Handler in 1 Control
<p>im doing on a context-menu can be found on rightclick like in actual code-editor something like this:
<img src="http://i.stack.imgur.com/U2nDA.png" alt="enter image description here"></p>

<p>and im already done with the cut,copy and paste by using this code:</p>

<pre><code>private void rtb_MouseDown(object sender, MouseEventArgs e)
        {
if (e.Button == MouseButtons.Right)
            {

                MenuItem[] menuItems = new MenuItem[] { 
                                        new MenuItem("Cut", new System.EventHandler(this.CutMenuItemClick)), 
                                        new MenuItem("Copy", new System.EventHandler(this.CopyMenuItemClick)),
                                        new MenuItem("Paste", new System.EventHandler(this.PasteMenuItemClick)), 


                ContextMenu rightcontext = new ContextMenu(menuItems);

                int xOffset = Cursor.Position.X - DtexteditoR.ActiveForm.Location.X;
                int yOffset = Cursor.Position.Y - DtexteditoR.ActiveForm.Location.Y;

                rightcontext.Show(DtexteditoR.ActiveForm, new Point(xOffset, yOffset));

            }
        }
private void CutMenuItemClick(object sender, EventArgs e)
        {
            rtb.Cut();
        }
        private void CopyMenuItemClick(object sender, EventArgs e)
        {
            rtb.Copy();
        }
        private void PasteMenuItemClick(object sender, EventArgs e)
        {
            rtb.Paste();
        }
</code></pre>

<p><strong>im using winforms with a dynamic control</strong> (dont use designer) and my question was on how to make multiple event handler in a control (different handler) something like this:</p>

<pre><code>new MenuItem("Copy", new System.EventHandler(this.CopyMenuItemClick) || new System.Windows.Forms.MeasureItemEventHandler(this.MeasureCopy)),

private void MeasureCopy(object obj,
                           MeasureItemEventArgs miea)
        {
            MenuItem mi = (MenuItem)obj;

            // Get standard menu font so that the text in this
            // menu rectangle doesn't look funny with a
            // different font
            Font menuFont = SystemInformation.MenuFont;

            StringFormat strfmt = new StringFormat();
            SizeF sizef =
                miea.Graphics.MeasureString(mi.Text, menuFont, 1000, strfmt);

            // Get image so size can be computed
            Bitmap bmMenuImage = new Bitmap(typeof(NewForm), "COPY.BMP");

            // Add image height and width  to the text height and width when 
            // drawn with selected font (got that from measurestring method)
            // to compute the total height and width needed for the rectangle
            miea.ItemWidth = (int)Math.Ceiling(sizef.Width) + bmMenuImage.Width;
            miea.ItemHeight = (int)Math.Ceiling(sizef.Height) + bmMenuImage.Height;
        }
</code></pre>

<p>for me to enable to add image beside "Copy" .</p>

<p>how to do this thing:</p>

<pre><code>new MenuItem("Copy", new System.EventHandler(this.CopyMenuItemClick) || new System.Windows.Forms.MeasureItemEventHandler(this.MeasureCopy)),
</code></pre>

<p>the right way .thanks!</p>
