重载继承控件时报错,用的是2013
vb.net吧
全部回复
仅看楼主
level 3
yhb362 楼主
项目,---->添加用户控件,——>用户控件
Public Class UserControl1
Inherits Timer
End Class
错误 1 为类“UserControl1”指定的基类“System.Windows.Forms.Timer”不能与它的其他分部类型之一的基类“System.Windows.Forms.UserControl”不同。 E:\学习\WindowsApplication3\WindowsApplication3\UserControl1.vb 2 14 WindowsApplication3
2015年04月18日 15点04分 1
level 9
你要继承timer首先要继承form
2015年04月19日 01点04分 2
level 3
yhb362 楼主
完结此贴
2015年04月19日 11点04分 3
1