The way around this is to write your own method to close the form
programmatically e.g.
private bool closedProgrammatically;
public void CloseWithFlag()
{
closedProgrammatically = true;
this.Close();
}
Then in your Closing event you can check the value of this boolean flag as
you would with the built in functionality in the desktop framework.
Peter

Signature
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility
> Hi,
>
[quoted text clipped - 8 lines]
> Thanks,
> Michael
Michael Maier - 27 Sep 2007 10:54 GMT
oh yeah.... you're right... could have thought of that by myself... :-(
I guess I have to develop this way of thinking, when it comes to CF...
Thanks a lot,
Michael
Peter Foot [MVP] schrieb:
> The way around this is to write your own method to close the form
> programmatically e.g.
[quoted text clipped - 9 lines]
>
> Peter