user input and acceptance inside a function
<p>My function accepts user input and then do somework when user clicks ok.</p>

<p>private void cannyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            canny();
        }</p>

<pre><code>private void canny()
        {

// get user input
// if user clicks ok 
          if (ok button is clicked)
              {
                  messagebox.show(" you clicked ok")
                // 
               //do dome work
               //
               }


         }
</code></pre>

<p>But I can't see any messagebox. What I am missing.</p>

<pre><code> private void ok_Click(object sender, EventArgs e)
        {
// should I add here some thing
        }
</code></pre>

<p>what i am missing.
regards,</p>
