prav_roy
Well-known member
Hi,
I have used NumericUpdown Control in my project, control appears in all most all forms, you may be aware of the fact that minimu and maximum value of numericupdown is 0 and 100 resp by default.
Now let me come to the problem i want to override this propert of Numericupdown to set min and max value, my code looks like
Public Class NumericControl
Inherits NumericUpDown
Public Overloads Property Minimum() As String
Get
Return MyBase.Minimum = 0
End Get
Set(ByVal value As String)
MyBase.Minimum = value
End Set
End Property
Public Overloads Property Maximum()
Get
Return MyBase.Maximum = 10000
End Get
Set(ByVal value)
MyBase.Maximum = value
End Set
End Property
End Class
But it doesnt work
any suggestion from your side
Regards
Praveen
I have used NumericUpdown Control in my project, control appears in all most all forms, you may be aware of the fact that minimu and maximum value of numericupdown is 0 and 100 resp by default.
Now let me come to the problem i want to override this propert of Numericupdown to set min and max value, my code looks like
Public Class NumericControl
Inherits NumericUpDown
Public Overloads Property Minimum() As String
Get
Return MyBase.Minimum = 0
End Get
Set(ByVal value As String)
MyBase.Minimum = value
End Set
End Property
Public Overloads Property Maximum()
Get
Return MyBase.Maximum = 10000
End Get
Set(ByVal value)
MyBase.Maximum = value
End Set
End Property
End Class
But it doesnt work
any suggestion from your side
Regards
Praveen