J
Jim McGivney
I am a C# newbie.
I believe I need a Global variable or shared variable or universal variable,
but do not know how to create it.
As an example. I have a function that places a circle on a picturebox when
a button is pushed. I would like to change the position of the circle with
each button push, but do not know how to create a global variable to store
the last position of the circle.
As a work around I store the value in a textbox.
How do I create a variable that can be shared between functions and whose
scope is not ended when the function has ended?
This must be easy, but I can't figure it out.
Thanks,
Jim
I believe I need a Global variable or shared variable or universal variable,
but do not know how to create it.
As an example. I have a function that places a circle on a picturebox when
a button is pushed. I would like to change the position of the circle with
each button push, but do not know how to create a global variable to store
the last position of the circle.
As a work around I store the value in a textbox.
How do I create a variable that can be shared between functions and whose
scope is not ended when the function has ended?
This must be easy, but I can't figure it out.
Thanks,
Jim