MinimizeBox = false did the trick.
Thank you very much.
"Ginny Caughey [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Yechezkal,
>
> When you close the form, does the form have OK or X in the upper right
corner?
> If it has X and you click on that to close the form, it will only
> "smart-minimize" the form on PocketPC devices and not really close it. If
that's
> your situation and it isn't what you want, set the form's MinimizeBox =
false.
> This should change the X to OK and clicking it should cause the form to
close
> and both Closing and Closed events to fire.
> --
> Ginny Caughey
> Windows Embedded MVP
>
> "Yechezkal Gutfreund" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > I have an application (called stationmaster.exe) that captures the Form
> > event: Closed:
> >
> > this.Closed += new EventHandler(this.CloseUp);
> >
> > The problem is that this event is not occuring on the PDA, but does when
the
> > same exe is run (as a test case) on an XP box with the full .NET
famework.
> >
> >
> >
> > That is:
> >
> > 1. If the stationmaster.exe is run on a XP box, then close window fires
the
> > closed event.
> >
> > 2. If the stationmaster.exe is run on the PDA and I press the close
window
> > then it does not fire the event.
> > However, I have added a menu item to manually call Form.Close() and this
> > works.
> >
> >
> >
> > --
> > ==================================
> > Yechezkal Gutfreund
> > Chief Scientist
> > Kesser Technical Group, Inc.
> > ==================================
> >
> >
>
>
|