natchaya khamkuna

natchaya khamkuna

  • NA
  • 31
  • 23.1k

How to take 2 argument from textbox to method

Apr 24 2011 11:48 PM
Hi, I have question.
   I make  method in Class to take 2 integer argument from textbox as below.

    public class TestTake 
{
        public void  TakeArgument(int FirstParam , int SecondParam)
    {
               MessageBox.Show(" First " + FirstParam + "Second "+SecondParam);
    }
}

=== Then in  Form1 I  put 1 textbox control there to wait for take 2 integer argement. But  i don't know how to take those 2 argument.

  
      TestTake  t = new TestTake();

       textbox1.text = t.TakeArgument(?????);

  Help to explain me please....

FoonMod....

Answers (6)