I am using winForm. I have two user controls that I want to add dynamically. The first is added when the form is opened. The second is added when the user clicks the button. There is nothing magical here. The problem is that when I launch and add a second control, instead of appearing on top of another, it appears.
There should be a way to add the control so that it is fully visible (on top of the rest). This is how I create the second control (same as the first control). I tried using the show / hide methods, but that will not change the stack order.
private void lbRappel_Click(object sender, EventArgs e)
{
NoteCallBack noteCallBack = new NoteCallBack("test");
this.Controls.Add(noteCallBack);
noteCallBack.Location = new Point(200, 250);
}
Thanks in advance for your help.
Mathieu