The languages we use to develop to .NET CF are object oriented, so (quite)
everything is an object, even forms. As such, prior to use a form, you have
to declare it on a variable and instantiate it. You interact with the form
thru the variable you have declared, which has some implications:
- if you need you may have more than one instance of the form
- you have to be careful with the scope of the variable where you instantiate
the form, specially if you need to keep a reference to a particular instance.
Sample code?
On frmLogin, you need (vb.net) ...
Dim myFormMain as new frmMain
myFormMain.Show
If you need to refer to that instance of the main form, which will happen
each time you get back from the other forms you'll create, you may need to
declare the myFormMain variable with a 'global' scope.
This is only the beginning of dealing with multiform applications...
Alberto Silva
MS Mobile Devices MVP
http://msmvps.com/AlbertoSilva