Nehru Kandasamy

Nehru Kandasamy

  • NA
  • 21
  • 11.6k

button inside textbox custom control

Mar 6 2013 3:14 AM
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!";