Does anyone know how to get rid of the faint outline on the right-hand edge of the BindingNavigator control: image view
I have already set the BackgroundColor to transparent. And the GripStyle to ToolStripGripStyle.Hidden.
You can also see a very faint line running along the bottom edge. I would like to get rid of these lines, so the control looks like it is part of the form itself (as it should when undocked).
Loading
Bjorn HolmgrenPosted Nov 5, 2018, 10:01 AM
DavePosted Nov 7, 2009, 5:53 PM
You should then notice the faint lines which I have displayed in my screenshots. I removed a few of the other buttons (add record and delete), but the problem will still be visible.
Sam HobbsPosted Nov 7, 2009, 2:53 PM
DavePosted Nov 7, 2009, 2:34 AM
I added the BindingNavigator to a panel with the same color as the form. I then reduced the size of the panel until it obscured the offending lines. See the results here.
Whilst I am proud of my lateral thinking, I don't like hacks. Because it means your programming against intended usage. I really think this should have been able to be done simply. Winforms does not seem to have evolved one little bit since I started using them with VS 2005. Rant over.
(If anyone knows of a correct way to achieve my stated goal, rant will be retracted.)
Oh, and the red outline in the first image was made by Vista's snipping tool. When I made the 2nd screenshot, I turned off the border in the options. Vista/7's snipping tool rocks!
DavePosted Nov 7, 2009, 2:17 AM
I made the background light green in color. If I left the form with the default color for a winform, you cannot notice the faint lines. I would like to think that they could me made invisible. But it seems not.
Sam HobbsPosted Nov 6, 2009, 10:33 PM