Plot Location/Size issue

Oystein Bjorke 6 years ago 0
This discussion was imported from CodePlex

imaloop wrote at 2013-11-23 16:29:

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.

thank you

imaloop wrote at 2013-11-23 16:39:

Ok, i found out i forgot the Docking to Fill.