I need help to implement a ListView box.
I am using the sub Object_ItemClick to perform an action when an item in
a ListView box is clicked.
According to msdn library, this sub is called when a ListItem object in a
ListView control is clicked. Unfortunately nothing happens when an item
is clicked. Could this be because I have not filled the ListView box in
the correct way? I have filled the ListView box as follows:
I used a fileList box, extracted text from it and assigned the text to the
ListView box with - ListView1.ListItems.Add.Text = ...
What do I need to do to make this work?
If this method cannot work, is there a way to extract filenames from a directory
directly into a ListView box like you do with a list box, e.g. with -
Call SendMessage(List1.hwnd, LB_RESETCONTENT, 0, ByVal 0)
numfound = SendMessage(List1.hwnd, LB_DIR, DDL_FLAGS, ByVal searchPath)
I have considered this method, but changing th LB prefix to LVM causes compilation
errors; I don't know if there are equivalant constants for ListView boxes.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL