PC Review


Reply
Thread Tools Rate Thread

Closing another form's "X" (close) button

 
 
mfleet1973@yahoo.ca
Guest
Posts: n/a
 
      15th Feb 2007
Hi.

Visual Studio 2003.

Is there a way to disable another application's form's close button
that is on the taskbar?

Cheers.

Mike.

 
Reply With Quote
 
 
 
 
Oliver Sturm
Guest
Posts: n/a
 
      15th Feb 2007
Hello mfleet1973,

>Is there a way to disable another application's form's close button
>that is on the taskbar?


I hope there isn't, otherwise I wouldn't want the spam/virus people to
find out about this.


Oliver Sturm
--
http://www.sturmnet.org/blog
 
Reply With Quote
 
Miha Markic [MVP C#]
Guest
Posts: n/a
 
      16th Feb 2007
It might be possible. Try this:
- find form's handle
- run this code (Herfried K. Wagner's second reply)
http://groups.google.com/group/micro...749adf91171d16

No idea whether this will actually work though.
--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi.
>
> Visual Studio 2003.
>
> Is there a way to disable another application's form's close button
> that is on the taskbar?
>
> Cheers.
>
> Mike.
>


 
Reply With Quote
 
Oliver Sturm
Guest
Posts: n/a
 
      18th Feb 2007
Hello Miha,

Ugh. I really hope this throws a
DontDoThisCrossProcessOrIllKillYouException. :-)


Oliver Sturm
--
http://www.sturmnet.org/blog
 
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
How can I make prevent the Validate event from going off when the user hits the Close button (the X button) or selects "Close" from the system menu? 0to60 Microsoft Dot NET Framework Forms 5 10th Sep 2008 10:46 AM
How to assign/call a function when a "Close" button of a Form is cliecked? Carla Simeoni Microsoft C# .NET 2 24th May 2007 06:35 PM
Handle the form closing when the user clicks on the "X" button (form caption bar) polocar Microsoft C# .NET 2 10th Nov 2006 04:03 PM
Have to click "Close" button three times to close dialog form Michael Fuchs Microsoft Access Form Coding 0 6th Aug 2006 11:37 AM
Closing form "on click" of command button Bill Microsoft Access 4 9th Mar 2004 04:58 PM


Features
 

Advertising
 

Newsgroups
 


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