I was wondering why Class declared variables are not available to the Form code.
public partial class Test : Form {
private Dictionary<key, value> test;
public Form () {
InitializeComponent();
}
public void LoadForm ( object sender, System.EventArgs e ) {
...... here test is nothing ....
}
public void CallingSection () {
..... here I set test to something ...
AcadApp.ShowModalDialog( new Form() );
.... here test is still what I set it to before the form call ....
}
}
I thought if you defined a class variable, it would be accessible from anywhere in the class? In other subs it is accessible for setting or getting, but if I put the declaration in the form section, then I can't get it anywhere else, and if I assigned it anywhere else in the code, it is not defined within the form section.
Am I just not understanding this concept correctly?
Thanks in advance ( even if it's RTFM; just help me with where to start ).