Jump to content

Temas para cada utilizador


obamaself
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
 Share

×
×
  • 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.