难道就没有人会这个吗???????????
我创建了个自定义控件重载了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
补充:.NET技术 , VB.NET