title: ToolStripMenuItem and ToolStrip Button in VB.NET
body: <p>How to code ToolStripMenuItem to execute the corresponding function.</p>
  
  <pre><code> Public Overridable Function CalcEndingBalance() As Double
   Dim B As Double
   B = p - A * n
      Return B                                  
  End Function  
  </code></pre>
  
  <p>This is function that is to be executed. </p>
  
  <pre><code>Private Sub CalculateToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs)    Handles CalculateToolStripMenuItem.Click
  </code></pre>
  
  <p>...............*</p>
  
  <p>End Sub</p>
  
  <p>I am having trouble figuring out the code to invoke the function.</p>