UserControl1.vb
上传用户:websnack
上传日期:2022-08-01
资源大小:53k
文件大小:2k
- Public Class UserControl1
- Inherits System.Windows.Forms.UserControl
- #Region " Windows Form Designer generated code "
- Public Sub New()
- MyBase.New()
- 'This call is required by the Windows Form Designer.
- InitializeComponent()
- 'Add any initialization after the InitializeComponent() call
- End Sub
- 'UserControl overrides dispose to clean up the component list.
- Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
- If disposing Then
- If Not (components Is Nothing) Then
- components.Dispose()
- End If
- End If
- MyBase.Dispose(disposing)
- End Sub
- 'Required by the Windows Form Designer
- Private components As System.ComponentModel.IContainer
- 'NOTE: The following procedure is required by the Windows Form Designer
- 'It can be modified using the Windows Form Designer.
- 'Do not modify it using the code editor.
- <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
- '
- 'UserControl1
- '
- Me.Name = "UserControl1"
- Me.Size = New System.Drawing.Size(150, 24)
- End Sub
- #End Region
- Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
- Dim g As Graphics = e.Graphics
- Dim p As Pen = New Pen(Color.Black)
- p.Width = 2
- p.DashCap = Drawing.Drawing2D.DashCap.Round
- g.DrawRectangle(p, 1, 1, Me.Width - 5, Me.Height - 5)
- End Sub
- End Class