I always used to override the onResize method, but I found this other thing on MSDN. It works for controls or forms:
VB Code:
Protected Overrides Sub SetBoundsCore(ByVal x As Integer, ByVal y As Integer, ByVal [width] As Integer, ByVal height As Integer, ByVal specified As System.Windows.Forms.BoundsSpecified) MyBase.SetBoundsCore(x, y, 150, 75, specified) End Sub
that would make your control to have a fixed size of 150, 75 and the users cant resize it![]()


Reply With Quote
hehe seems nice
