How to add button to textbox?

前端 未结 5 1740
死守一世寂寞
死守一世寂寞 2021-01-16 16:35

I\'m trying to make a TextBox with a button on the right side. My code:

public partial class TextBoxButton : TextBox
{
    [Category(\"Button\")]
    [Descri         


        
5条回答
  •  广开言路
    2021-01-16 16:58

    Instead of adding Button into the TextBox, use some container (Control or UserControl and add the TextBox and Button in in).

提交回复
热议问题