| |

VerySource

 Forgot password?
 Register
Search

Does VB.net have LINE control?

[Copy link]

0

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-12-21 01:45:01
| Show all posts
Use Label control instead
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-12-21 09:00:01
| Show all posts
That's right! Use the LABEL control instead...

Also... if you want to use a circle and other controls similar to 6.0, you can generate a circle control yourself. The method is to write the method of drawing a circle in the custom control.

Private Bg As Color
    Public Property BgColor() As Color
        Get
            Return Bg
        End Get
        Set(ByVal Value As Color)
            Bg = Value
        End Set
    End Property
    Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)
        Dim Brush As SolidBrush = New SolidBrush(Color.Silver)
        e.Graphics.FillEllipse(Brush, 0, 0, Width, Height)
        e.Graphics.DrawEllipse(New Pen(Color.Black, 1), 0, 0, Width, Height)
    End Sub

This is just a way to draw a circle. As long as you change the function in the ONPAINT event, you can customize the controls that are only available in 6.0, such as straight lines and arcs.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list