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....
Loading
natchaya khamkunaPosted Apr 25, 2011, 1:49 AM
I can do now.
Ankit NandekarPosted Apr 25, 2011, 1:31 AM
http://www.c-sharpcorner.com/Blogs/4752/split-function-in-C-Sharp.aspx
Mayur GujrathiPosted Apr 25, 2011, 1:17 AM
Sam HobbsPosted Apr 25, 2011, 12:50 AM
See Split String in C#.
natchaya khamkunaPosted Apr 25, 2011, 12:40 AM
I prefer to use 2 textboxes too. I just wonder ,if we would like to take 2 parameter from only 1 textbox. each integer separate by comma (,) . Would it be possible ?..
Sam HobbsPosted Apr 25, 2011, 12:29 AM