Dear sir,
This is vincent, as a software programmer in Jasmin Infotech, India.
we are developing a software for home theater environment using VB dot net.
But we are looking C# and i am a beginner of C# .net, i want to pass the value
from one Form to another Form without closing.
Then, How we declare the global (public) variable? If any comman
module available in C#? But we can declare a publid variable in 'Module' of VB.
But i don't know where in C#?
Kindly help me sir.
Thanks and Regards,
L. Vincent
SimonPosted Jan 26, 2006, 10:09 PM
For example, in each form you have : private string _value;
public string MyValue { get { return _value; } set { _value = value; } }
and from, say form1, you call form2.MyValue = "blah"; and you can access it from your two forms without using global variables.
Hope this helps. Simon