Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

problem in minimize form in c#

john_zakariajohn_zakaria Posts: 9Member
hi everyone

i want to minimize my form to system tray in my C# windows application and hide it from taskbar

my main problem is that when i click on minimize it goes to system tray and hide from taskbar

but it goes to the top of start menu

please find the attached what i mean.

1- i want to know where is the minimize button action in my application

my code is as follow

private void Form1_Resize(object sender, EventArgs e)
{
if (WindowState == FormWindowState.Minimized)
{
this.Hide();
this.Visible = false;
this.ShowInTaskbar = false;
this.Opacity = 0;


}
}




so how to disable viewing my form in top of start menu button?

Comments

Sign In or Register to comment.