Ok Here is what I want. I have created a Class
public class docname
{
private string doctname;
public string Doctname
{
get { return doctname; }
set { doctname = value; }
}
}
and I have used it in a form
public string name;
docname dc = new docname();
dc.Doctname = name;
and when I check the value in another form I get a null value. Whats the reason behind this?
I am a beginner at C#.