How do you pass varibles between screens? I created properties in form 2 for
the variables that I wanted to pass from Form 1. So when I create a new
instance of Form2 from Form 1, intellisense does not show me those properties
in form2 that I want to access. So how do you pass variable values?
frmComboEdit form2 = new Form1();
form2.Show();
Thanks in advance for your assistance!!!
Alvin Bruney [MVP] - 06 Jul 2007 19:39 GMT
Try a static class, static object, database, text file yada yada

Signature
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
> How do you pass varibles between screens? I created properties in form 2
> for
[quoted text clipped - 7 lines]
>
> Thanks in advance for your assistance!!!
Alberto Poblacion - 06 Jul 2007 19:39 GMT
> How do you pass varibles between screens? I created properties in form 2
> for
[quoted text clipped - 5 lines]
> frmComboEdit form2 = new Form2();
> form2.Show();
If you created properties in Form2 and marked them as public, they
should appear in intellisense hanging from form2. Note the lowercase
"form2", NOT the uppercase "Form2" according to the preceding example. That
is, you want to use the instance of the form and not the class of the form
(unless you created static properties).