1
I am placing a Usercontrol inside a Tabpage. When not Maximized, the Usercontrol fills all Tabcontrol
However, if I maximize the screen, there is a space on the right.
I used usercontrol winforms "Anchor" or "Dock" property. So I tried the following
control.Dock = DockStyle.Fill
control.Dock = AutoScaleMode.None
I’ve tried too, but he only centralizes Usercontrol.
control.Anchor = AnchorStyles.None
control.Left = (tab.Width - control.Width) / 2
control.Top = (tab.Height - control.Height) / 2