100 分求高手回答,DateTimePicker 的背景问题
我创建了个 自定义控件重载了 BackColor 但在使用控件时颜色还是不能改变,下面是我写的 那位高手帮看看呀。
Public Class userdate1
Inherits System.Windows.Forms.DateTimePicker
Protected Overrides Sub OnPaint(ByVal pe As System.Windows.Forms.PaintEventArgs)
MyBase.OnPaint(pe)
'在此处添加自定义绘制代码
End Sub
#Region ""
Public Overrides Property BackColor() As System.Drawing.Color
Get
Return MyBase.BackColor
End Get
Set(ByVal value As System.Drawing.Color)
MyBase.BackColor = value
End Set
End Property
#End Region
End Class