SplitContainer without the splitter

How do I remove the horrible dotted line that the SplitContainer has when it is selected


Answer this question

SplitContainer without the splitter

  • write2mtg

    If I'm not completely mistaken, the dotted line is the focus rectangle. If you don't give any visual clues as to when the splitter is selected, it makes it very hard to use the keyboard to change its position (the user wouldn't get any feedback that the splitter is the currently selected item)

    The focus rectangle shows up for pretty much every control that can currently has the focus.

    Best regards,
    Johan Stenberg



  • Lucas Pasquali

    Thanks all,

    I've decided to stop using the SplitContainer altogether and use the one provided in the Krypton Toolkit.



  • David Worthington

    Actually, most other applications (rightly or wrongly) do not display the 'highlight'. The split container is very annoying in this regard.

    You can use the 'splitter' control, which won't display the highlight, except when you are dragging it.



  • CoolTami

    robinjam,

    What is the dotted line Could you give me the specific photo or instructions Actually I don't understand your meaning of "the dotted line that the SplitContainer has when it is selected".

    In this situation, I suggest you to pay more attention to the properties the SplitContainer control has. Maybe you made a mistake on one of the property which is about the selected dotted line appear. Here I would like to give you a link that shows the overview of this control:

    http://msdn2.microsoft.com/en-us/library/ms171681.aspx



  • SplitContainer without the splitter