How can I hide a winform, so that it t will not show in the Windows taskbar , user do not see it , or when the user presses Alt + Tab ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In code do the following:
this.ShowInTaskbar = false;Or in Design mode:
EDIT:
You must also set the FormBorderStyle
Code:
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;Design:
This definitely does work – these are some screen prints using Windows Vista.
App running:
Not appearing in ALT + TAB