Click here to Skip to main content
12,396,230 members (65,459 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# Windows Forms
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 6-Aug-12 23:10pm
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.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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

2.
create 3 buttons & code it like below
1. maximize put this line in click event
this.Maximized();
2. minimize put this line in click event
this.Minimized();
3. close put this line in click event
this.close();
Happy Coding!
Smile | :)
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

yes it is possible but you will just have to drag and drop the buttons down annd code them to do your functions.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 30 Aug 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100