c# TextBox只显示下画线

TextBox只显示下画线

1、自定义控件中加一个TextBox,一个Label。

     public UserTextBox()
        {
            InitializeComponent();
        }

        [Browsable(true)]
        public new string Text
        {
            get
            {
                return tbx1.Text;
            }
            set
            {
                tbx1.Text = value;
            }
        }

 

posted @ 2016-08-17 06:25  一枚水  阅读(689)  评论(0)    收藏  举报