Subscribe to ricardosms' Blog        RSS Feed
-----

Show Boxes On a WinForm Without Using Graphics Or Paint Events

Icon Leave Comment
Hello! It is possible to show rectangular boxes around your controls on a windows form without using graphics or paint events. I use labels with a certain lenght and 2 pixel width, either vertical or horizontal. It is needed to set the text property to nothing, the autosize to false, the borderstyle to nothing and the background to the color you want. Here is an example: Attached Image That is it! I hope someone will find this useful. regards, ricardosms.

0 Comments On This Entry

 

Trackbacks for this entry [ Trackback URL ]

There are no Trackbacks for this entry

December 2014

S M T W T F S
 123456
78910111213
14151617181920
21222324 25 2627
28293031   

Tags

    Recent Entries

    Search My Blog

    0 user(s) viewing

    0 Guests
    0 member(s)
    0 anonymous member(s)

    Categories