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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top