|
-
Jul 24th, 2005, 05:08 PM
#1
-
Jul 24th, 2005, 05:39 PM
#2
Re: Closing a windowed app with the "X"
Form.Closing
you will need to override WndProc to figure out why it's being closed
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jul 25th, 2005, 02:07 AM
#3
-
Jul 25th, 2005, 04:07 AM
#4
Re: Closing a windowed app with the "X"
Just set a flag in your app that the other thread can see and periodically poll it to see when to finish. Then it can tie up any loose ends before quitting.
Is this what you mean?
Forgive me if my humble reply does not meet your exacting CERN specifications, but I am but a mere peasant in comparison to a man of your standing.
-
Jul 25th, 2005, 04:16 AM
#5
Re: Closing a windowed app with the "X"
-
Jul 25th, 2005, 06:44 AM
#6
Re: Closing a windowed app with the "X"
Why not just handle the exception when the device is lost? You won't have to do any checking at all then.
I don't live here any more.
-
Jul 25th, 2005, 06:51 AM
#7
-
Jul 25th, 2005, 06:57 AM
#8
Re: Closing a windowed app with the "X"
Why is it slow? It doesn't come into effect until an error has occured anyway.
Databases are for møøses.
I don't live here any more.
-
Jul 25th, 2005, 07:20 AM
#9
Re: Closing a windowed app with the "X"
 Originally Posted by wossname
Why is it slow? It doesn't come into effect until an error has occured anyway.
Databases are for møøses.
But it is still branching right.....so it will mess up the pipeline one more time then nessesary. And you don't want that in a game loop...You can do that in a database.
-
Jul 25th, 2005, 07:52 AM
#10
Re: Closing a windowed app with the "X"
Shut up about databases. We agree that they suck.
What pipeline?
I don't live here any more.
-
Jul 25th, 2005, 07:55 AM
#11
-
Jul 25th, 2005, 08:34 AM
#12
Re: Closing a windowed app with the "X"
Why not just remove the "X" button Controlbox = false, or set the border to borderless.
I don't live here any more.
-
Jul 25th, 2005, 09:30 AM
#13
Re: Closing a windowed app with the "X"
Hehe...I was sooo about to say some ugly words right now.. ...I bet your next post will be "why not use full screen exclusive"... ...no no no. But I have a feeling that the close event will work. Will give an update on it tomorrow...
- ØØ -
-
Jul 25th, 2005, 09:42 AM
#14
Re: Closing a windowed app with the "X"
What's wrong with fullscr...*SLAM*
I don't live here any more.
-
Jul 25th, 2005, 01:18 PM
#15
Re: Closing a windowed app with the "X"
 Originally Posted by MrPolite
Form.Closing 
you will need to override WndProc to figure out why it's being closed
That actualy worked....nice one chap..... ...
this.Closing += new System.ComponentModel.CancelEventHandler(...)
was it, if I remember right..
- ØØ -
-
Jul 25th, 2005, 03:31 PM
#16
Re: Closing a windowed app with the "X"
 Originally Posted by NoteMe
That actualy worked....nice one chap.....  ...
this.Closing += new System.ComponentModel.CancelEventHandler(...)
was it, if I remember right..
- ØØ -
do you still need to know if the user pressed the "x" button, or if your app is being close for other reasons? I used to know how to figure it out
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jul 25th, 2005, 03:57 PM
#17
Re: [RESOLVED] Closing a windowed app with the "X"
Not actualy. As long as "device".present() is not throwing an exception because of a lost device I am fine..
Thanks for your help.
- ØØ -
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|