Greetings,
I have a Listview whose width is 700.
I created four columns with a total width of 700 and a scrollbar appears when data is displayed (no value is longer than the column width).
When I change the combined width to 696, no scrollbar appears. At 697 to 699, the scrollbar still appears.
Is this normal behaviour where you have to 'subtract 4' from the total column width?
Thanks
David
Control width vs column width
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Control width vs column width
There is alwaqys slop with autodisplay scroll bars. Different controls behave differently and differnt screen resolutions also cause differences.
You might want to check in the C# WinForms forum to see if anyone knows if there is documentation that has sorted all of that out. Normally I have just added more the control width to compensate; usually 10.
Go to full postYou might want to check in the C# WinForms forum to see if anyone knows if there is documentation that has sorted all of that out. Normally I have just added more the control width to compensate; usually 10.
Re: Control width vs column width
There is alwaqys slop with autodisplay scroll bars. Different controls behave differently and differnt screen resolutions also cause differences.
You might want to check in the C# WinForms forum to see if anyone knows if there is documentation that has sorted all of that out. Normally I have just added more the control width to compensate; usually 10.
You might want to check in the C# WinForms forum to see if anyone knows if there is documentation that has sorted all of that out. Normally I have just added more the control width to compensate; usually 10.