Pass a targeted method as a parameter
<p>first of all, my english is not very good so if you could be kind it would be appreciated. Thanks.</p>

<p>Now my problem, like I said in the title, I would like to pass a "method name" as a parameter in another method. Like a picture is worth thousand words, there is a chunk of my function:</p>

<pre><code>    public void RemoveDecimalPoints(TextBox txtBoxName, Func&lt;string, TextBox&gt; txtBoxMethod)
    {
        //Some Code

        txtBoxName.KeyPress += new KeyPressEventHandler(txtBoxMethod);
    }
</code></pre>

<p>I want the second parameter to point to this other method: </p>

<pre><code>    private void txtIncomeSelfValue1_KeyPress(object sender, KeyPressEventArgs e)
    {
        //Some Code
    }
</code></pre>

<p>Sorry if im not clear for some, I lack some vocabulary...</p>

<p>Thanks for your help.</p>
