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

Sam HobbsRank #107 · 20.5K reputationPosted Nov 6, 2009, 5:33 PM EST
Dave131 reputationPosted Nov 6, 2009, 9:17 PM EST
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.
Dave131 reputationPosted Nov 6, 2009, 9:34 PM EST
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!
Sam HobbsRank #107 · 20.5K reputationPosted Nov 7, 2009, 9:53 AM EST
Dave131 reputationPosted Nov 7, 2009, 12:53 PM EST
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.
Bjorn Holmgren3 reputationPosted Nov 5, 2018, 5:01 AM EST