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:
  1. <DefaultValue(GetType(Font), "Engravers MT, 26.25pt, style=Bold"), Category("Appearance")> _
  2.     Public Overloads Property Font() As Font
  3.         Get
  4.             Return MyBase.Font
  5.         End Get
  6.         Set(ByVal value As Font)
  7.             MyBase.Font = value
  8.         End Set
  9.     End Property