Click here to Skip to main content
13,287,856 members (37,982 online)
Rate this:
Please Sign up or sign in to vote.
See more:

How to change Form Border Color.It is possible or not.
Posted 21-Dec-11 22:56pm
Updated 21-Dec-11 23:09pm
Rate this: bad
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
Rate this: bad
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:[^] - but I have no idea how much work you are going to have to do to get it working in your code.

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 |
Web03 | 2.8.171207.1 | Last Updated 21 Mar 2013
Copyright © CodeProject, 1999-2017
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