How to register a global hotkey for your application in C#

How to register a global hotkey for your application in C#

Register a hotkey for your application that can be triggered even if your form is minimized and does not have focus. More »

How to download a file in C# (progressbar and download speed)

How to download a file in C# (progressbar and download speed)

Learn how to download files in C# while displaying the percentage and the download speed. More »

UDP hole punching implementation in C#

UDP hole punching implementation in C#

Learn how to implement UDP hole punching so you can make your clients life a lot easier by not forcing them to open ports on their end. More »

 

Minimize a form without border using the taskbar

By default borderless forms are not designed to be minimized, which means when the form’s FormBorderStyle property is set to None you will notice that clicking the application box in taskbar does not minimize the form.

This can be fixed by overriding CreateParams and adding the WS_MINIMIZEBOX style to the Window and CS_DBLCLKS to the Window class styles.

Simply place the following code inside your Form’s class which you want to enable the minimize functionality using the taskbar.

Share on FacebookTweet about this on TwitterShare on Google+Share on StumbleUponShare on LinkedInShare on RedditPin on PinterestShare on TumblrDigg thisPrint this pageEmail this to someone

8 Responses to Minimize a form without border using the taskbar

  1. addas says:

    Thank You CoolMine Its Really Work For Me. Great Job Keep It Up…

  2. Tom says:

    Dug for this for multiple hours. Thank you very much for sharing; was exactly what I needed!

  3. sravan says:

    Thank you, its working…

  4. Vicente says:

    Thank you, it works very well

  5. jayam says:

    can i know how did u get the value “0x20000” and “0x8”

  6. Kailash Rawat says:

    Thank You CoolMine Its Really Work For Me. Great Job Keep It Up…

Leave a Reply

Your email address will not be published. Required fields are marked *