Jump to content

Recommended Posts

Posted

Acho que isso só muda com o tema do windows..

Para mudar terias de esquecer a borda normal e ser tu desenhar uma nova adequada as necessidades.

Pedro Martins

Não respondo a duvidas por PM

Posted

pus isto:

Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)
        MyBase.OnPaint(e)
        ControlPaint.DrawBorder(e.Graphics, e.ClipRectangle, Color.Red, 1, _
        ButtonBorderStyle.Solid, Color.Red, 1, ButtonBorderStyle.Solid, Color.Red, 1, _
        ButtonBorderStyle.Solid, Color.Red, 1, ButtonBorderStyle.Solid)
    End Sub

mas isto só põe uma linha.

Posted

Foi o que fiz.

Assim parece mais real:

    Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)
        MyBase.OnPaint(e)
        ControlPaint.DrawBorder(e.Graphics, e.ClipRectangle, Color.Red, 1, _
        ButtonBorderStyle.Outset, Color.Red, 30, ButtonBorderStyle.Outset, Color.Red, 1, _
        ButtonBorderStyle.Outset, Color.Red, 1, ButtonBorderStyle.Outset)
    End Sub

Já qe não há maneira melhor.

Posted

Podes sempre aumentar o tamanho da linha

    Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)
        MyBase.OnPaint(e)
        ControlPaint.DrawBorder(e.Graphics, e.ClipRectangle, Color.Red, 10, _
        ButtonBorderStyle.Outset, Color.Red, 30, ButtonBorderStyle.Outset, Color.Red, 10, _
        ButtonBorderStyle.Inset, Color.Red, 10, ButtonBorderStyle.Inset)
    End Sub

Pedro Martins

Não respondo a duvidas por PM

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.