Size control to tabpage width
Posted on 2011-09-13
I've a tabcontrol and add a tab to:
TabPage rk = new TabPage("NewTab");
The tabcontrol itself has an anchor left, right, top and bottom and I like to add a control to the tabpage and resize it to the whole inner width and height of the tabpage:
mycontrol.width = rk.width;
When I now have a look to rk.width I figure out that I ever get 200 as result but the width is 608 ..
So how can I size a contol inside the tabepage to be "fullsize"?