Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
i want to hide the form i have used this code for hiding,
C#
private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            this.Show();
            this.WindowState = FormWindowState.Normal;
        }


if (FormWindowState.Minimized == this.WindowState)
           {
               notifyIcon1.Visible = true;
               notifyIcon1.ShowBalloonTip(1);
               this.Hide();
           }
           else if (FormWindowState.Normal == this.WindowState)
           {
               notifyIcon1.Visible = false;
           }


but i want to add a button in the title bar like internet download manager which hides the form and fix it in the system tray, and if minimize is clicked it will just be minimize, here my minimize button force the app to go to system tray
how can i achive that IDM like feature
Posted
Updated 15-Dec-12 20:02pm
v2

Take a reference from it :
Easy Customize Title Bar[^]
 
Share this answer
 
Comments
Shahin Khorshidnia 16-Dec-12 2:21am    
Good Link +5
[no name] 16-Dec-12 2:24am    
Thanks Shahin.. :)
shaikh-adil 16-Dec-12 2:33am    
sir, it replaces all the close and minize and maximize button i just want to add a new button have you taken look at the software named Internet download manager?
i just want to add such button to the title bar.
[no name] 16-Dec-12 2:36am    
like MS Word's file menu ???
shaikh-adil 16-Dec-12 8:27am    
what? sorry i didint get what you told, i havnt seen file meny of msword
 
Share this answer
 
v2
Comments
Jibesh 16-Dec-12 9:01am    
you better post this as new question here.. so that we wont be confused to answer for which questions :) Please edit this comment and post as a new query. I am sure we loved to help you guys.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900