• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 462
  • Last Modified:

Remove Minimized Form Completey When ShowInTaskbar = false

Experts, I am creating a windows form and wish to ShowInTaskbar = false. However, when I minimize the form I still have the 'minimized' form in the lower left of my screen above my taskbar. Is there a way to get ride of it completely when it is minimized? I am controling the "re-apparing" of the form through a notifyIcon/contextMenu.

~ C
0
clickclickbang
Asked:
clickclickbang
2 Solutions
 
lorelogicCommented:
In addition to setting the ShowInTaskbar property to false, try setting the Forms FormBorderStyle to SizableToolWindow (allowing it to be resizable) or to FixedToolWindow (making it not resizable).
0
 
aponcealbuerneCommented:
Hi,
I had the same problem a few months ago, and I remember that I managed the SizeChanged event , and check if the state is minimized, then jus call the Hide() method and that's it.

Hope helps
0
 
clickclickbangAuthor Commented:
Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now