shan1
Jan 11th, 2000, 05:29 AM
How to create properties page using the menu item Add - property page.
One more Question!
I have problem in adding the font property to my user control. The font does not change when i change the font property (created by me) in the user control
I hev a textbox text1 in my user control
Public Property Get txtfont() As font
Set txtfont = UserControl.font
End Property
Public Property Set txtfont(ByVal vNewValue As font)
Set UserControl.font = vNewValue
Text1.font = UserControl.font
PropertyChanged "txtfont"
End Property
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
On Error Resume Next
Set txtfont = PropBag.ReadProperty("txtfont")
End Sub
Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
PropBag.WriteProperty "txtfont", txtfont
End Sub
In the form where i placed my usercontrol
the code i placed is
usercontrol11.txtlabel.name= "wingdings"
it does not work..
One more Question!
I have problem in adding the font property to my user control. The font does not change when i change the font property (created by me) in the user control
I hev a textbox text1 in my user control
Public Property Get txtfont() As font
Set txtfont = UserControl.font
End Property
Public Property Set txtfont(ByVal vNewValue As font)
Set UserControl.font = vNewValue
Text1.font = UserControl.font
PropertyChanged "txtfont"
End Property
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
On Error Resume Next
Set txtfont = PropBag.ReadProperty("txtfont")
End Sub
Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
PropBag.WriteProperty "txtfont", txtfont
End Sub
In the form where i placed my usercontrol
the code i placed is
usercontrol11.txtlabel.name= "wingdings"
it does not work..