title: ContextMenuStrip does not appear when clicking on object within a UserControl
body: <p>I created a UserControl with a chart inside that are the same size.
  In my main form I create these UserControls dynamically and I can delete or edit them using a ContextMenuStrip by right clicking.</p>
  <p>The problem happens when I create dynamically and click on the UserControl above the chart (inside UserControl) the ContextMenuStrip does not appear, it appears only when I click on the <code>userform</code>.</p>
  <p>I tested several alternatives to no avail. Someone would have an idea.</p>
  <p>EDIT:</p>
  <p><a href="https://i.stack.imgur.com/JrLA2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JrLA2.png" alt="Picture1" /></a></p>
  <p>I have a UserControl (dynamically generated that is in blue), which is contained in my main form in green. The UserControl consists of just a chart and internal codes, it has the same size as the UserControl (I moved it to exemplify).</p>
  <p>Right-clicking on the UserControl, I open a ContextMenuStrip (which belongs to the main form) that allows you to delete, edit and copy.</p>
  <p>However the ContextMenuStrip only appears if I click on the UserControl (gray part), if I click on the chart (yellow part) it does not appear.</p>
  <p>EDIT2:</p>
  <p>I use this code in the main form</p>
  <pre><code>Public Sub add_Control_Click(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs)
  
      Try
          If e.Button = MouseButtons.Right Then
              Dim cms = New ContextMenuStrip
  
              Dim item1 = cms.Items.Add(&quot;Edit&quot;)
              item1.Tag = 1
              AddHandler item1.Click, AddressOf menuEdit
  
              Dim item2 = cms.Items.Add(&quot;Delete&quot;)
              item2.Tag = 2
              AddHandler item2.Click, AddressOf menuEdit
  
              Dim item3 = cms.Items.Add(&quot;Copy&quot;)
              item2.Tag = 3
              AddHandler item3.Click, AddressOf menuEdit
  
              cms.Show(sender, e.Location)
  
              tempControl = sender
          End If
      Catch ex As Exception
          MsgBox(ex.Message)
      End Try
  
  End Sub
  
  Private Sub menuEdit(ByVal sender As Object, ByVal e As EventArgs)
  
      Try
          Dim item = CType(sender, ToolStripMenuItem)
          Dim selection = CInt(item.Tag)
  
          changedControls = True                                              'Set changed controls
          SalvarToolStripMenuItem.Enabled = True                              'Set definition enable
  
          Select Case selection
              Case 0
                  tempCopied = True
                  copiedControl = tempControl
              Case 1
                  callEditControl(tempControl)
              Case 3
                  If MsgBox(&quot;Do you want to remove the item.&quot;, vbOKCancel + vbQuestion, &quot;Delete&quot;) = vbOK Then
                      Me.Controls.Remove(tempControl)
                  End If
  
          End Select
  
      Catch ex As Exception
          MsgBox(ex.Message)
      End Try
  
  End Sub`
  </code></pre>