Screens/Forms show order problem

E

ED

VS2008, WM6 standard, smartphone.

In simplified form.
The app launched the main form. A method/function in the main form issues
ShowDialog() of form1, and when form1 closes, it issues a ShowDialog() of
form2. (Form1 does not call form2. Both ShowDialog()s are issued from the
main form.)

Now you press the "Home" button when form1 is showing and then press the
"Back" button to return to form1. So far so good. But now, when you close
form1, you see the home screen for a few seconds until form2 displays. (This
is problem 1). When you close form2, you are sent to the home screen and you
stay there until you press the "Back" button to return to the main form.
(This is problem 2).

So the question is how to control which screen/form you are returned to?

Thanks,
ED.
 
E

ED

Anyone?


VS2008, WM6 standard, smartphone.

In simplified form.
The app launched the main form. A method/function in the main form issues
ShowDialog() of form1, and when form1 closes, it issues a ShowDialog() of
form2. (Form1 does not call form2. Both ShowDialog()s are issued from the
main form.)

Now you press the "Home" button when form1 is showing and then press the
"Back" button to return to form1. So far so good. But now, when you close
form1, you see the home screen for a few seconds until form2 displays. (This
is problem 1). When you close form2, you are sent to the home screen and you
stay there until you press the "Back" button to return to the main form.
(This is problem 2).

So the question is how to control which screen/form you are returned to?

Thanks,
ED.
 

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

Top