what unit of measurement is used to set the width in the listview?

icemonster

Registered User.
Local time
Yesterday, 22:07
Joined
Jan 30, 2010
Messages
502
what unit of measurement is it? cause i need to convert it to inches.
 
hmm not sure if it's cm because tried converting it and it was a lot, cause when i use set my listview it's something like this:

Code:
    With Me.lvemployees.ColumnHeaders
        .Add , , "Emp ID", 1000, lvwColumnLeft '// the 1000 here is definitely not cm.
        .Add , , "Employee", 3500, lvwColumnLeft
        .Add , , "Status", 2000, lvwColumnLeft
        .Add , , "Phone Number", 2000, lvwColumnLeft
        .Add , , "Zip Code", 1500, lvwColumnRight
    End With
 
The widths are actually stored in Twips (TWentieth of an Imperial Point). There are 72 Points in an Inch so 1440 Twips in an Inch.

Twips are the values used in VBA.

In the designer the Twips are converted to the regionally specified units (cm or inches). The centimetre value is rarely ever an exact integer because the conversion factor is 567.
 

Users who are viewing this thread

Back
Top Bottom