C# compact framework exit doesn't really terminate

  • Thread starter Daniel Passwater via DotNetMonster.com
  • Start date
D

Daniel Passwater via DotNetMonster.com

I'm working on my first app on a PDA in C#. My problem is that when exited using the X in the upper right corner of the window, it returns to the same state when the app is restarted. In other words, it bypasses the login. If my Close button is used there is no problem. Is there a way to controll what happens when the X is used to exit?


Thanks in advance for any help.

Daniel
 
J

Jon Skeet [C# MVP]

Daniel Passwater via DotNetMonster.com said:
I'm working on my first app on a PDA in C#. My problem is that when
exited using the X in the upper right corner of the window, it
returns to the same state when the app is restarted. In other words,
it bypasses the login. If my Close button is used there is no
problem. Is there a way to controll what happens when the X is used
to exit?

If you set the MinimizeButton property (or something similar - I can't
remember exactly what it's called) of the form to False, it'll turn
into "OK" which will close the app.
 

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