DreadAngel
DreadAngel

Reputation: 772

Custom SplitContainer

I'm using standart SplitContainer - very useful thing, but sincerely it looks a little ugly. I took a look through other kind of SplitContainer implementation for ex. FireFox.

Could You tell me - how to custom draw the Split bar in order to look a little nicer or at least how's in FF?

Upvotes: 1

Views: 1882

Answers (2)

DreadAngel
DreadAngel

Reputation: 772

I took my time and made some. Here is the code of my custom SplitContainer.

But there is a little bug - when SplitContainer is focused and a key is pressed - drawing disappear - I know that this should be fixed by calling Invalidate method - but I'm call it in KeyPressed, KeyDown, KeyUp - no result. Could You tell me which event I should check to fix that bug?

Upvotes: 2

varg
varg

Reputation: 3636

The Easy Solution:

Change the System.Windows.Forms.SplitContainer.BorderStyle to Fixed3D. The Splitter will look like the same you mentioned.

Upvotes: 2

Related Questions