i set my forms FormBorderStyle to None in vb.net
i want to assign a border line in different colour which is not inside the form.
how can i do it
Windows form border style
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Bechir BejaouiRank #144 · 15.9K reputationPosted Feb 28, 2009, 12:38 PM EST
AddHandler Form1.ActiveForm.Paint, AddressOf Form1_Paint
End Sub
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As PaintEventArgs)
Dim graphic As Graphics = e.Graphics
Dim Layout As New Rectangle(New Point(0, 0), Form1.ActiveForm.Size)
graphic.DrawRectangle(New Pen(Color.Red, 2F), Layout)
End Sub
srikanth sambari15 reputationPosted Mar 1, 2009, 7:19 PM EST
AddHandler Form1.ActiveForm.Paint, AddressOf Form1_Paint
the exception is
Object reference not set to an instance of an object.
plz help me
srikanth sambari15 reputationPosted Mar 1, 2009, 7:35 PM EST
Bechir BejaouiRank #144 · 15.9K reputationPosted Mar 2, 2009, 11:10 AM EST