PC Review


Reply
Thread Tools Rate Thread

Close window button does not fire closed event

 
 
Yechezkal Gutfreund
Guest
Posts: n/a
 
      10th Sep 2003
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.
==================================


 
Reply With Quote
 
 
 
 
Yechezkal Gutfreund
Guest
Posts: n/a
 
      11th Sep 2003
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.
> > ==================================
> >
> >

>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check last form to be closed and fire event =?Utf-8?B?UGV0ZXJX?= Microsoft Access Form Coding 5 4th Mar 2007 01:29 PM
Save and Close does not fire Inspector.Close event Roderic Microsoft Outlook Program Addins 3 8th Oct 2004 04:11 PM
close window click event for command button =?Utf-8?B?UGF1bA==?= Microsoft ASP .NET 2 11th May 2004 11:01 PM
Smart Client - Want to close the stub window when child window is closed Stone Microsoft Dot NET Framework Forms 0 28th Apr 2004 09:12 PM
VBA - on a button event, open another closed file, post changes, close file Fio Microsoft Excel Programming 0 1st Mar 2004 01:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:36 PM.