Hi All,
I would like to have your input again to make sure I am coding things optionally.
1. When you know the key to an image in an imagelist is there a better way to add the image to a listview besides what I am already doing?
2. Is there a way to add two icons next to each other in a listview in report mode?Code:Set TempListItem = lvwObjects.ListItems.Add(, , ObjectsFound(i).Name) For j = 1 To ImageList.ListImages.Count If ImageList.ListImages(j).Key = ObjectsFound(i).ContentType Then lvwObjects.SmallIcons = ImageList TempListItem.SmallIcon = j ImageFoundFlag = True End If Next jNext j
3. Is there a way to convert a 1 or a 0 to true or false in one line for a check box?
Again thanks all for your input!!Code:If Check1.Value = 0 Then ListObjects1.ShowLockOwner = False Else ListObjects1.ShowLockOwner = True End If




Reply With Quote