做了个最简单的控件,一个Label,写以下代码
但程序一运行,在运行前调好的Caption属性却没了,怎么回事?Option ExplicitPrivate Cap As StringProperty Get Caption() As String
    Caption = Cap
End PropertyProperty Let Caption(Effect As String)
    Cap = Effect
    Label1.Caption = Cap
    Refresh
    PropertyChanged "Caption"
End Property