PC Review


Reply
Thread Tools Rate Thread

Differentiate user form close and OS close

 
 
Sune Pedersen
Guest
Posts: n/a
 
      23rd Sep 2003
Hi,

Im developing a Pocket PC application with VB.NET using multiple forms
inspired by the FormStack example:
http://msdn.microsoft.com/library/de...iframework.asp

Hovever I reached a point where i cannot find any solution. The applications
main form is a "minimize" type form the other forms like options are "close"
type forms.

When a user closes one of the option type forms the form close is actually
canceled the window hides and the previous form from the stack shows up.

This works perfectly however when the application is shut down from the
Running Programs List it claims the program is not responding when the
active form is a form other than the main form.

So is it possible to see if a close event is rised by the OS or by the user
by clicking the close button?

I found something about WM_QUIT and PostQuitMessage, but im not sure about
how to go on. Is it possible to query if the application is set to shut down
or is it possible to rise an event?

Thanks in advance

Sune Pedersen


 
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
When I close a form with DoCmd.Close I get a parameter popup Robert Microsoft Access 1 14th Jul 2007 05:54 PM
Close button on a form will not close form - error 2585 - action cannot be carried out while processing a form Angus Comber Microsoft Access 2 19th Jul 2006 12:21 PM
Clear Checkbox field on close of form or close of report =?Utf-8?B?QnJvb2s=?= Microsoft Access Form Coding 2 14th Jan 2006 09:31 PM
How to close a userform in a forusers, close protected form? De Wilde Eddy Microsoft Excel New Users 1 7th Jun 2004 06:58 PM
Can't Design View or close form, or close Access Bradley C. Hammerstrom Microsoft Access Forms 1 23rd Sep 2003 07:23 PM


Features
 

Advertising
 

Newsgroups
 


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