Hi guys, I am creating UserControl and I need to set a particular font as a default font for the control. I know that I need to use the “DefaultValue” class but all my tries give me no result. Does any one know how to do this? This is my code but it doesn’t work.
vb Code:
<DefaultValue(GetType(Font), "Engravers MT, 26.25pt, style=Bold"), Category("Appearance")> _ Public Overloads Property Font() As Font Get Return MyBase.Font End Get Set(ByVal value As Font) MyBase.Font = value End Set End Property




Reply With Quote