简单的自定义控件问题
vb.net 2005测试版中,下面的代码出错
Public Class NumericTextBox
Inherits System.Windows.Forms.TextBox '未定义类型System.Windows.Forms.TextBox
Protected Overrides Sub OnKeyPress(ByVal e As _
System.Windows.Forms.KeyPressEventArgs) '未定义类型System.Windows.Forms.KeyPressEventArgs
If Not Char.IsDigit(e.KeyChar) Then
e.Handled = True
Else
e.Handled = False
End If
End Sub
End Class
还有,我照着例子做的时候,imports system.drawing 这句话都是错的
请高手指点