Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving Fonts

Status
Not open for further replies.

Toyman

Programmer
Jun 19, 2001
68
GB
Hi
I'am having problems saving a Font of my Usercontrol
It doesn't seem to write the Font object to the PropBag

This is the Code for the properties
Property Set Font(NewValue As StdFont)
Set lblCaption.Font = NewValue
PropertyChanged "Font"
SizeCaption
End Property
Property Get Font() As StdFont
Set Font = lblCaption.Font
End Property

And this is the Code to Read/Write the properties.
lblCaption.Font = Propbag.ReadProperties("Font",lblCaption.Font)

Propbag.Writeproperties "Font",lblCaption.Font,lblCaption.Font

Thanks
Toyman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top