Plot Location/Size issue

Nov 23, 2013 at 3:29 PM
Hello,
I seem to have an issue fixing the location and size of the Plot. is this normal or al i missing something?

My code is like this:
GPlot.Model = new PlotModel();
GPlot.Dock = DockStyle.Fill;
GPlot.Enabled = true;
GPlot.Parent = Top_Tabs.TabPages[2]; // Putting it on a Tab

// At this point the Location And Size of GPlot, are those of the containing parent

GPlot.Location = new System.Drawing.Point(279, 224);
GPlot.Size = new System.Drawing.Size(10, 10);

// Last Two lines had no effect.

this.Matlab.Controls.Add(GPlot);
thank you
Nov 23, 2013 at 3:39 PM
Ok, i found out i forgot the Docking to Fill.