Click here to Skip to main content
15,890,579 members
Articles / Programming Languages / C#

How to Use PInvoke to Disable the Close Button on Another Applications Windows

Rate me:
Please Sign up or sign in to vote.
4.91/5 (9 votes)
25 Jun 2013CPOL6 min read 24.2K   626   17  
With PInvoke, it's possible to manipulate forms belonging to another application
In this post, you will see a small application in C# that uses PInvoke to disable the close button on the OS/2 window.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Sweden Sweden
Born in Copenhagen, Denmark
Have been living in Paris, France and L.A., The United States
Now live in Stockholm, Sweden

Started programming when I got my first VIC 20, and a few months later on Commodore 64. Those were the days!

Studied programming at the Copenhagen Engineering Academy

Professional console, winforms and webforms programming in Comal, x86 Assembler, Fortran, Pascal, Delphi, Visual Basic 3 through 6, Classic ASP, C# and VB.NET

I now work as Senior Microsoft Dynamics AX and .Net programmer, and have a number of projects in various states of progress to work on in the spare time...

Comments and Discussions