How to position a control on a form at run time
Posted on 2007-11-22
I have a form that can be resized.
I need to position the grid control so that it remains at X,Y relative to the top left of the form.
Point NewPos = new Point(20,50);
dataGridView1.Location = NewPos;
When I set a breakpoint dataGridView1.Location show 0,0 and not 20,50
Just what do I need to do to position a control where I want it.