title: How to create a Custom Image Button, made of three individual buttons and add event handler
body: <p>I want to make a <code>Custom Image Button</code> which should be consist of three buttons with attached <code>click event</code>.
  <br>
  I tried to make a <code>Customize button</code> but I couldn't able attached a separate <code>event handler</code>.
  <br>
   for each button:</p>
  
  <pre><code> class MulitButtons : UserControl
      {
          public Color bckColor1 = Color.Blue;       
  
          protected override void OnPaint(PaintEventArgs e)
          {
              base.OnPaint(e); 
  
              Graphics graphics = e.Graphics; 
              RectangleF recF1 = new RectangleF(0, 0, 100, 40);
              RectangleF recF2 = new RectangleF(100, 0, 100, 40);
              RectangleF recF3 = new RectangleF(200, 0, 100, 40);   
              RectangleF[] arrRecF = { recF1, recF2, recF3 };  
  
              Pen pen = new Pen(Color.Black, 2);
              int fontHeight = 10;
              Font font = new Font("Arial", fontHeight);
              SolidBrush brush = new SolidBrush(bckColor1);    
              SolidBrush textBrush = new SolidBrush(Color.Black);  
  
              graphics.DrawRectangles(pen, arrRecF);
              graphics.DrawString(Text, font, textBrush, 10, 10);     
          }
  
      }
  </code></pre>
  
  <p><br>
  Adding event handler:</p>
  
  <pre><code> MulitButtons objMltBtn = new MulitButtons();
   EventHandler handler= new EventHandler(but1_Click);
   objMltBtn.Click += handler;
  </code></pre>
  
  <p>Please help me out.
  Thanks.</p>