How to account for border thickness of controls, etc?

  • Thread starter Thread starter Bert Hyman
  • Start date Start date
B

Bert Hyman

I want to plop a ComboBox in a ListView entry. I can find the border
rectangle of any particular ListViewItem with no problem, but that gives
me the outside dimensions of the item, not the inside.

Is the width of the border lines available somewhere, or do I just fudge
in a constant?
 
-----Original Message-----
I want to plop a ComboBox in a ListView entry. I can find the border
rectangle of any particular ListViewItem with no problem, but that gives
me the outside dimensions of the item, not the inside.

Is the width of the border lines available somewhere, or do I just fudge
in a constant?

Check out the SystemInformation class, specifically the
BorderSize and perhaps the Border3DSize properties.

-- TB
 
In "Thomas W. Brown" <tbrown92030
@kaxy.NOSPAM.com said:
Check out the SystemInformation class, specifically the
BorderSize and perhaps the Border3DSize properties.

Indeed it does! Thanks.
 
Back
Top