first of all, my english is not very good so if you could be kind it would be appreciated. Thanks.
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:
public void RemoveDecimalPoints(TextBox txtBoxName, Func<string, TextBox> txtBoxMethod) { //Some Code txtBoxName.KeyPress += new KeyPressEventHandler(txtBoxMethod); } I want the second parameter to point to this other method:
private void txtIncomeSelfValue1_KeyPress(object sender, KeyPressEventArgs e) { //Some Code } Sorry if im not clear for some, I lack some vocabulary...
Thanks for your help.