LVM_GETITEMSPACING is not exposed. You will need to SendMessage to the ListView hwnd to get this data.
The biggest issue I think you are going to hit is that we do not expose a way to set the position of a ListView item - LVM_SETITEMPOSITION. LVM_CREATEDRAGIMAGE is not exposed either. AutoArrange calls ArrangeIcons(ListViewAlignment). This corresponds to LVM_ARRANGE mark -----Original Message----- From: John Lam [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 09, 2002 9:24 PM To: [EMAIL PROTECTED] Subject: [DOTNET] ListView control is driving me batty ... I'm trying to use a ListView control to let users change the sequence of a bunch of items that are displayed in the Large Icon mode. After staring at this control for the better part of this afternoon, I've run into a few problems: 1) Is there out-of-the-box functionality that would let a user drag items around the ListView? There are sparsely documented properties like AutoArrange that seem to indicate this but I can't seem to get them to work. 2) I spent some time this afternoon trying to roll my own drag and drop implementation that would let me do this. However, I cannot for the life of me figure out how to get the icon spacing out of the ListView control. In Win32 code, I would call ListView_GetIconSpacing() to retrieve this value or send a LVM_GETICONSPACING message to do the same. How do I do this in WinForms? Thanks, -John http://www.iunknown.com <http://www.iunknown.com/> You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.