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

July 2014

S M T W T F S
  12345
6789101112
13141516171819
20212223242526
27282930 31   

Tags

    Recent Entries

    Search My Blog

    0 user(s) viewing

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

    Categories