I'm trying to put a cool little image like this

For my container drag and drop button.
I am doing the following in an OnPaint event
private void splitContainer1_Paint(object sender, PaintEventArgs e)
{
var control = sender as SplitContainer;
e.Graphics.DrawImage("...".Properties.Resources.divider, control.SplitterRectangle, 0, 0, 1040, 50, GraphicsUnit.Pixel);
}
It paints the image as I would like, the problem is that the height is ALWAYS 4 pixels. In the designer, I set SplitterWidth to 15, but at runtime it always remains at 4. Thus, only 4 pixels actually appear.
source
share