1,451
社区成员
发帖
与我相关
我的任务
分享
Public Property Get picture() As Variant
picture=Image1.Picture
End Property
Public Property Let picture(ByVal vNewValue As Variant)
Image1.Picture = vNewValue
PropertyChanged "picture"
End Property
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
Image1.Picture = PropBag.ReadProperty("picture", "")
End Sub
Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
Call PropBag.WriteProperty("picture", Image1.Picture, "")
End Sub
Public Property Get Picture() As IPictureDisp
Set Picture = Image1.Picture
End Property
Public Property Set Picture(ByVal RHS As IPictureDisp)
Set Image1.Picture = RHS
PropertyChanged "Picture"
End Property
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
Set Image1.Picture = PropBag.ReadProperty("Picture", Nothing)
End Sub
Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
Call PropBag.WriteProperty("Picture", Image1.Picture, Nothing)
End Sub