Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
Hi
 

How to change Form Border Color.It is possible or not.
Posted 21-Dec-11 21:56pm
Edited 21-Dec-11 22:09pm
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Another option for that problem is
1 - firstly change Form property formBorderStyle to none.
2 - Use panel and set as content of form content and change form backgroundcolor red or other color which you want to use for your border.
3 - Add a button on top-left side of for closing the for
4 - make form draggable
 
I had using that trick properly
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

It isn't simple, certainly, and is probably more trouble than it's worth - the border is outside the app's control (to maintain a consistent look and feel it is part of the OS rather than the app) and the only direct control you have is to remove the border and draw it yourself - that would remove the ability to resize the form however.
 
There is one sample I have seen: http://customerborderform.codeplex.com/[^] - but I have no idea how much work you are going to have to do to get it working in your code.
  Permalink  

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

  Print Answers RSS
0 Schatak 394
1 OriginalGriff 330
2 _Amy 115
3 Andreas Gieriet 100
4 Rob Philpott 90
0 OriginalGriff 7,107
1 Sergey Alexandrovich Kryukov 5,623
2 Maciej Los 3,504
3 Peter Leow 3,373
4 DamithSL 2,505


Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 21 Mar 2013
Copyright © CodeProject, 1999-2014
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