且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么在设计时未显示用户控件中覆盖的文本属性

更新时间:2023-10-02 20:42:10

添加如下属性,问题解决.

Added following attributes and the problem is solved.

    <EditorBrowsable(EditorBrowsableState.Always)> _
    <Browsable(True)> _
    <DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)> _
    <Bindable(True)> _
    Public Overrides Property Text() As String
        Get
            Return lblText.Text
        End Get
        Set(ByVal value As String)
            lblText.Text = value
        End Set
    End Property