First, go get a beginning C# book and start going through the section on
classes. You need to understand how OOP works before you go much further,
and they will have simple examples on how to reference properties, methods
and variables beteen classes.
In this case, you need to call a method (Close) of one class (the first
From) from another class (the second Form). Calling will depend on how and
where they're scoped and declared.
--
Chris Tacke
Co-founder
OpenNETCF.org
Has OpenNETCF helped you? Consider donating to support us!
http://www.opennetcf.org/donate
"John Medany" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> OK - I've solved the variable thing by making it a public static - thanks
> guys ...
>
> Now - how do I close a form after its launched the next one - at the
> moment
> my Pocket PC is how all the forms as you move through the application - I
> need to click a button to move to the next screen and the other form to
> close ...
>
> A code example in C# would help.
>
> you guys are great
>
> John
>
>