6
Answers

How to take 2 argument from textbox to method

natchaya khamkuna

natchaya khamkuna

13y
1.7k
1
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)
Next Recommended Forum