No, the issue is the pixel gap, 2 instead of 1. The control doesn't fill it's bounds correctly.
Actually, no...
First, set the Forms color to some other value. So you can see what part is painted by whom.
You will see that the PageControl has some pixels on its outside that are colored like the form.
Before continuing....
Note that an aOffest = 1 => means the box has no gap at all.
With Offset = 1 you draw at "Left - 1" => no gap.
That actually works correct for the page control (ignore the top / see below).
It's the button that leaves a gap, where it should not.
It seems the button leaves a transparent pixel in it's WinControls space. I took my screen-grabber ("ShareX") and it detects both (button and PageControl) to be exactly in the drawn black border.
Back to the PageControl. If it has no pages, then there is a gap on the top. It seems windows still reserves 2 pixels, and keeps them transparent (the area for the tabs, is always transparent / put some tabs on, and you will see the form color, on the right to the tabs).
So to me it seems to all work.
But Windows seems to have its own rules how much of the space of a WinControl it actually paints on.