Forms question

  • Thread starter Thread starter Zac Maclean
  • Start date Start date
Z

Zac Maclean

I have a .NETCF app that loads a SQLCE database with the main form and
displays some info. Actual user input occurs on one of 4 other forms. I
need to be able to switch between these forms without forcing the user to
return to the main form. And, if I have to close the form I am coming from,
I need to update the database, but thats not the coreof the problem.

I have tried creating a public method that controls the switching w/ a
variable, but it keeps trying to nest the forms.. and open multiple copies
of each as I go.

main
___/______|_____|______\____
form1 form2 form3 form4


At end of day to update to main database, they will need to close all forms
except main to perform update, but again, thats another question if I need
help w/ that...



Zac Maclean
 
Found info I needed.

MS Press: .NET CF Core Reference

Created a toolbar linked to a class that closes each subform when new form
is called (and ignores requests for current form). Requires changing the
"Minimize = True" of each sub form to false so that I am able to close
them. othewise it keeps each one open, and creates new instances as I go.

Will be modifying it slightly to update SQLCE on each form close and putting
an "Update" button on main form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top