Results 1 to 2 of 2

Thread: [RESOLVED] how do I Custom draw a border around my form?

  1. #1

    Thread Starter
    Addicted Member tgf-47's Avatar
    Join Date
    Feb 2010
    Location
    CapeTown, South Africa -34.01244,18.337415
    Posts
    209

    Resolved [RESOLVED] how do I Custom draw a border around my form?

    I set my FormBorderStyle of my form to none.

    This is exactly what i want, except I ran into a problem.
    When the background is gray (background of other applications running in the background), my form tends to fade in with the background (Still active, but i cant see where my form starts or ends).

    I want to rosolve this by drawing a Thin (2px) blue line around my form.

    How do i do this?

  2. #2
    Frenzied Member
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,158

    Re: how do I Custom draw a border around my form?

    you can draw an rectangle in the paint event of the form as

    vb Code:
    1. Dim p As New Pen(Color.Red, 2)
    2. e.Graphics.DrawRectangle(p, 0, 0, Me.Width - 1, Me.Height - 1)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width