Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     // Display the user control
     customDropDown.Show();
     customDropDown.BringToFront();     // display in front of other controls
     customDropDown.Select();           // make sure it gets the focus
 }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     this.Controls.Add(login);
     login.BringToFront();
 }