I've been wondering to change the Toolbar GUI (or in general every control GUI). Dunno if what I say is correct but I want to change the appearance of the Toolbar :). I've came very far in this all but I've still not found what I actually want. If you watch controls correctly you see a small black line beside it. Especially when you got a MDI Form on it with a flat Toolbar (docked left). So I have been wondering if it isn't possible to just remake the whole Toolbar GUI, so also the 3d border you see. I've made the following with all I've seen on the internet.
Public Class CustomToolbar
Public Sub New()
Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)
ControlPaint.DrawBorder3D(e.Graphics, e.ClipRectangle, Border3DStyle.Flat)
If you run this code you will see a nice flat border inside the Toolbar. What I want is to only see this Border and not the black lines from the normal Toolbar. I've already tried to set the left -1, top-1 but that's not working. Then the border is gone :/ (At least the left and top border.)
I've already made a way around it tho but I rather see it in the control then the solution I have now:
I made a picturebox over the black line in a specific color with width 2. So then the black line is gone and it looks quiet good but I don't think it's a nice way to do it right?
So I wonder if you can completely rewrite the Paint() / OnPaint() sub or something like that. Like forms. They have 3d borders that I can't change. I'd like to see those flat too ;). Can someone give me a clue? The appearance->flat doesn't do what I want ;p. Same as FormBorderStyle.
Thanks in advance,