I have TrackBar control on TabPage of TabControl (Windows Forms). Background color of TrackBar differs from TabPage background color. TabPage BackColor value is Transparent, and TrackBar BackColor is Control.
Transparent value is not allowed for a control. I tried to set it programmatically:
private void FormOptions_Load(object sender, EventArgs e)
trackBar1.BackColor = tabPage1.BackColor;
but this doesn't work. How can I set TrackBar BackColor to have the same background, without hardcoding which can fail on different display settings?