0
Answer

button inside textbox custom control

Nehru Kandasamy

Nehru Kandasamy

11y
2.6k
1
create a textbox control in windows form
and add this code in FormLoad Event.

               Button btn = new Button();
            btn.Parent = textBox1;


            textBox1.Controls.Add(btn);


            btn.BackColor = Color.AliceBlue;
            Cursor.Current = Cursors.WaitCursor;
            btn.Dock = DockStyle.Right;
            btn.Text = "Search!";