Click here to Skip to main content
12,634,651 members (24,967 online)
Rate this:
 
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 22:56pm
Updated 21-Dec-11 23: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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.161208.2 | Last Updated 21 Mar 2013
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