Pirahnaplant
Well-known member
- Joined
- Mar 29, 2009
- Messages
- 75
- Programming Experience
- 3-5
How can I make a custom control that inherits from System.Windows.Forms.UserControl not be resizable (It doesn't have the size property, or it is readonly)
Public Overrides Property Size() As Size
Get
Size = Me.Size
End Get
Set(Byval value As Size)
'do nothing...let's forget that something happened
End Set
End Property
Public Sub New()
Me.Size = New Size(whateversizeyoudlike)
End Sub