how do i can write code to change border color in frame1!
Printable View
how do i can write code to change border color in frame1!
you mean form1, and you cant to my knowledge. just draw a rectangle... *whislte*
i dont think you can do that with frames
no i mean frame1 not form.
if i can't do it with frame, is there is any other way that i can desing with color border!
You can use a picturebox, it's also a container control. Then you can simply remove its border (borderstyle = 0), change Autoredraw Property to True and draw it yourself.
Like this..
VB Code:
With Picture1 .BorderStyle = 0 'or set it in properties .AutoRedraw = True 'or set it in properties .DrawWidth = 4 .Line 3, 0, 0, .ScaleWidth, 0, vbRed .Line 3, .ScaleWidth, 0, .ScaleWidth, .ScaleHeight, vbRed .Line 3, .ScaleWidth, .ScaleHeight, 0, .ScaleHeight, vbRed .Line 3, 0, .ScaleHeight, 0, 0, vbRed End With
try to look at this one
What I want is frame come words on the border, if i use picturem1 for color, how can i put words on the color border!
try to download my attachment in post # 7 and see how i did it with picture boxes
or you can use a third party control called becubbed frame control. if you do it with a picture box then place a label for your caption.
i like the idea of using a third party control. lesser hastles