Unwanted white lines

Posted by: relson on 8 September 2017, 1:14 pm EST

  • Posted 8 September 2017, 1:14 pm EST

    In attached file UnitSettingsFill.png there are 2 unwanted white lines.  To the right of the spreadhsheet control is a thick vertical line that runs the full height of the spreadshee.  Hanging off the lower left corner of the spreadsheet is a short, vertical white line.  The relevant bit of the code for creating this image is<br><br><span>grid = new PropertyGridControl();</span><br><span>panel.Controls.Add(</span><span>grid</span><span>);</span><br><span>grid</span><span>.Dock = DockStyle.Fill;<br><br></span>File UnitSettings.png was created without a <span>grid</span><span>.Dock </span>specification.   Since it also has the unwanted white lines, I assume the lines are controlled by the style/painting/... of the spreadsheet.  What need I change in my code to make the lines go away?<br><br>Thanks.<br><br>David<br>               <br>
  • Replied 8 September 2017, 1:14 pm EST

    <P>It looks like you have the spreadsheet control's BorderStyle property set to Fixed3D (which is the default setting).  The FpSpread class inherits the BorderStyle property from the Control class.  When BorderStyle = Fixed3D, the Control class draws a 3D border around the outside of the control.  You can set BorderStyle = None to remove the 3D border.</P>
    <P>    fpSpread1.BorderStyle = BorderStyle.None;</P>
  • Replied 8 September 2017, 1:14 pm EST

    Bobby,<br><br>BorderStyle doesn't seem to be what's wrong.  The default (inherited?) value in my app is BorderStyle.None.  I've tried all 3 border styles (None, FixedSingle, and Fixed3D) and, sad to say, the appearance remains the same.<br><br>Any additional thoughts?<br><br>David<br>
  • Replied 8 September 2017, 1:14 pm EST

    I don't know if this helps, but it looks to me like it might have something to do with reserved space for vertical and horizontal scroll bars. Is there a setting something along the lines of VerticalScrollBar.Never and HorizontalScrollBar.Never that may apply here?
  • Replied 8 September 2017, 1:14 pm EST

    <P>To me this looks like the border of the Panel control and not the Spread. If this is not the issue, could you post a small zipped project reproducing the issue for us to debug?</P>
  • Replied 8 September 2017, 1:14 pm EST

    Since the right-side white line is the same distance from the grid, it would seem to be associated with the grid, rather than the panel.  I'll see if I can create a small project that demonstrates the problem, though I won't be able to do that until Monday.<br><br>Regards,<br><br>David<br>
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels