R
Ryan
I have a custom control and would like to give it a property like the
WebControl class's FONT property. I created the following importing
from System.Drawing
Public Property HeaderFont() As Font
Get
Return fntHeaderFont
End Get
Set(ByVal value As Font)
fntHeaderFont = value
End Set
End Property
Where I declare my font to be:
Private fntHeaderFont = New Font("", 12, FontStyle.Regular,
GraphicsUnit.Point)
This works, but does not give me the same font property that the web
control does. Most notably absent is the names (plural) property.
Should I be importing the font object from somewhere else? I see the
webcontrol has a fontinfo object, but this is readonly so I have no
idea how to make use of it to set font attrivutes at design time.
Any help would be appreciated.
Thanks,
Ryan
WebControl class's FONT property. I created the following importing
from System.Drawing
Public Property HeaderFont() As Font
Get
Return fntHeaderFont
End Get
Set(ByVal value As Font)
fntHeaderFont = value
End Set
End Property
Where I declare my font to be:
Private fntHeaderFont = New Font("", 12, FontStyle.Regular,
GraphicsUnit.Point)
This works, but does not give me the same font property that the web
control does. Most notably absent is the names (plural) property.
Should I be importing the font object from somewhere else? I see the
webcontrol has a fontinfo object, but this is readonly so I have no
idea how to make use of it to set font attrivutes at design time.
Any help would be appreciated.
Thanks,
Ryan