I need to create a Panel
in a Form
Getting more or less like this:
When you click the mouse on Form
create Panel
taking the location of the click and create the Panel
centralized.
I did so:
Panel panel = new Panel();
private void criarLabel()
{
panel.Size = new System.Drawing.Size(200, 100);
panel.Visible = true;
this.grid.Controls.Add(panel);
}
private void grid_CellClick(object sender, DataGridViewCellEventArgs e)
{
criarLabel();
}