Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I currently have a borderless form whose showInTaskbar attribute is set to true. Now if i right click on the taskbar and (like normal windows) i want to have that Restore/Minimise/Maxmise/Close menu appear. Is there any way for this to appear when the FormBorderStyle is set to None?
Posted
Comments
flint.cs 8-Aug-12 8:47am    
I am not sure but I dont think this is possible. I can think of a self created taskbar using the original icons.

there are two ways,
1.
runtime change form borderstyle
C#
this.controlbox=true;
this.FormBorderstyle=fixedSingle;


2.
create 3 buttons & code it like below
1. maximize put this line in click event
C#
this.Maximized();

2. minimize put this line in click event
C#
this.Minimized();

3. close put this line in click event
C#
this.close();

Happy Coding!
:)
 
Share this answer
 
yes it is possible but you will just have to drag and drop the buttons down annd code them to do your functions.
 
Share this answer
 

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