⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xpanderlistdesigner.vb

📁 使用Access数据库演示的任务分配管理程序 一个使用ADO.NET基于Microsoft Access数据库演示的任务分配管理的程序
💻 VB
字号:

' An instance of this class is created by the designer for the XPanderList control at
' design time.  That instance controls the behavior of the control at design-time.

    Public Class XPanderListDesigner
        Inherits System.Windows.Forms.Design.ParentControlDesigner

        Private m_borderPen As New Pen(Color.FromKnownColor(KnownColor.ControlDarkDark))
        Private _control As XPanderList

        Public Sub New()
            m_borderPen.DashStyle = Drawing.Drawing2D.DashStyle.Dash
        End Sub

        Public Overrides Sub Initialize(ByVal component As System.ComponentModel.IComponent)
            MyBase.Initialize(component)
            _control = CType(Me.Control, XPanderList)

            ' Disable the autoscroll feature for the control during design time.  The control
            ' itself sets this property to true when it initializes at run time.  Trying to position
            ' controls in this control with the autoscroll property set to True is problematic.
            _control.AutoScroll = False
        End Sub

        Protected Overrides Sub OnPaintAdornments(ByVal pe As PaintEventArgs)
            MyBase.OnPaintAdornments(pe)
            pe.Graphics.DrawRectangle(m_borderPen, 0, 0, _control.Width - 2, _control.Height - 2)
        End Sub
    End Class

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -