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

November 2014

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526 27 2829
30      

Tags

    Recent Entries

    Search My Blog

    0 user(s) viewing

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

    Categories