To make the functionality occur when the form is minimized, use the form's "Resized" event and check the "WindowState" property to see if it is minimized. If so, show the "NotifyIcon" that Ravichandran mentioed and set the form's "Visible" property to false.
- Noah Coad -
Microsoft MVP
how to set the application at the bottom right hand-side corner when I minimize the applicaiton with C#??
1. Add a NotifyIon control to the for
2. Change NotifyIon control - Icon and Text propert
3. Add following code
private void Form1_Load(object sender, System.EventArgs e
this.Visible = false
private void notifyIcon1_DoubleClick(object sender, System.EventArgs e
this.Visible = true
// Set the WindowState to normal if the form is minimized
if (this.WindowState == FormWindowState.Minimized
this.WindowState = FormWindowState.Normal
// Activate the form
this.Activate()
private void Form1_Deactivate(object sender, System.EventArgs e
Double click on System tray icon will display the form.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.