Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
how to set the border clour of split container
Posted

If you mean the border around each panel - the one you get when you set BorderStyle to Fixed - then you can't - it's painted directly by Windows, and that means there is no OnPaint call for it. So you can;t change it's colour.

You would have to use a panel inside each inner panel and handle the border style for that yourself using the DrawBorder method in it's Paint event.
 
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