By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,692 Members | 1,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,692 IT Pros & Developers. It's quick & easy.

Prevent a form from being disposed

P: n/a
How do I prevent a for from being disposed of when you click the 'X' button.

I'd like to override the dispose method somehow so it just does a me.hide

any ideas? thanks -J
Nov 20 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Cor
Hi Shadowboxer,
I think the best methode is to set the control box from the form to false.
And to add a button.
I'v never seen users who like strange behaviour from a form.
Just a thoughts,
Cor
Nov 20 '05 #2

P: n/a
Clicking the X and having a form disappear doesn't seem strange to me....

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Chaos, Panic, Disorder, my work here is done"
"Cor" <no*@non.com> wrote in message
news:3f***********************@reader22.wxs.nl...
: Hi Shadowboxer,
: I think the best methode is to set the control box from the form to false.
: And to add a button.
: I'v never seen users who like strange behaviour from a form.
: Just a thoughts,
: Cor
:
:
Nov 20 '05 #3

P: n/a
Shadowboxer,
You could handle the Closing event to do something different. Such as
me.hide & setting e.Cancel to true.

The problem then becomes how to determine if the X was clicked or the
Form.Close method was called. I don't believe you can without extra code.

By the time you get to the dispose method it is too late to stop it.

Hope this helps
Jay

"Shadowboxer" <sh*********@mac.com> wrote in message
news:9W********************@giganews.com...
How do I prevent a for from being disposed of when you click the 'X' button.
I'd like to override the dispose method somehow so it just does a me.hide

any ideas? thanks -J

Nov 20 '05 #4

P: n/a
Cor
Tom,
But that in than stays in memory and will be strange, you close it and it
stays in the taskmanager.
What does it become a service?
Oh hell a virus!!!!!!!!!!!!

I see it before me,
:-))
Cor
Nov 20 '05 #5

P: n/a
Yes, a service, perhaps it has a NotifyIcon control on it.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Chaos, Panic, Disorder, my work here is done"
"Cor" <no*@non.com> wrote in message
news:3f***********************@reader22.wxs.nl...
: Tom,
: But that in than stays in memory and will be strange, you close it and it
: stays in the taskmanager.
: What does it become a service?
: Oh hell a virus!!!!!!!!!!!!
:
: I see it before me,
: :-))
: Cor
:
:
Nov 20 '05 #6

P: n/a
Hello,

"Cor" <no*@non.com> schrieb:
I think the best methode is to set the control box from the form to false.
And to add a button.
I'v never seen users who like strange behaviour from a form.


I _hate_ forms without control box.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #7

P: n/a
Cor
Herfried,

I _hate_ forms without control box.

I hate forms that I cannot close with a control box

Cor

Nov 20 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.