Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListView column width adjust control

Status
Not open for further replies.

mkefeli

Programmer
Sep 6, 2003
4
0
0
TR
Hi,
How can check if user changed any column width of ListView control? I want to write it an .ini file and arrange for next time.
Thanks
 
mkefeli,

To accomplish this you can either store the loaded column widths or keep them in the ini you were thinking about then use a For Each loop to check the widths on exiting the form.

For Example...


Dim oItem As ListItem
For Each oItem In ListView1.ListItems
if oItem.Width <> (item's loaded width ini read or stored modular) Then
'Write to your INI the new value
End If
Next


That will loop through each list item in your list view and you can then check for changes after you find what item you are looking at. You can do that by checking what Key you assign that item.

Blweb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top