Label autosize question

aspfun

Active member
Joined
Feb 16, 2010
Messages
34
Programming Experience
5-10
When I drag a label control from toolbox to form, default autosize is true.
I need to change to false every time. (I do not like true)
How to make default value as false as default value?
 
Create a Class that inherits Label and create a default constructor:
VB.NET:
Public Sub New()
    MyBase.AutoSize = False
End Sub
Then build and in the toolbox at the top you'll see your label control.
 
Back
Top