i need the label control to be bordered in any of one colour... what to do for that..
addition to that i need the textbox to be shape arc bended on corners

Recommended Answers

All 2 Replies

Try Back color property and borderstyle property of label.
And for textbox i dont think we can do that...

See if this helps about drawing a border around a Label.

Dim myCoolPenstyle As New Pen(Color.Red, 2) '// (color, pen width.)
        With Label1 '// draw just outside the Bounds of the Label.
            Me.CreateGraphics.DrawRectangle(myCoolPenstyle, .Location.X - 1, .Location.Y - 1, .Width + 2, .Height + 2)
        End With
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.