Hi all,
I have this problem,
I want to return certain value's from a method.
And that method has a parameter.
And i want to use that return value in a
other method, but it i dont have the
correct parameters for the method.
Example.
BTW, i am a Noob , ;)
Thank you..
WIvked
I have this problem,
I want to return certain value's from a method.
And that method has a parameter.
And i want to use that return value in a
other method, but it i dont have the
correct parameters for the method.
Example.
Code:
private void button1_Click(object sender, EventArgs e) { click(e); } public Point click(MouseEventArgs e) { Point p = new Point(e.X, e.Y); return p; } public void get() { point l = click(); //this wont work because i need a parameter, but i dont have one. Because i only want to have the value of e.X and e.Y }
BTW, i am a Noob , ;)
Thank you..
WIvked
Comment