companyHM
02-12-2008, 06:23 AM
In an effort to transition from a VBA macro to a VB6 Add-In, I'm switching from a ListBox to a ListView. In the macro, I'm using a ListBox with certain properties set such as ColumnCount=3, ListStyle=1-frmListStyleOption, and ColumnWidths, to populate a ListBox and allow the user to select certain rows for an action.
I found in VB6 that things are a little different. After running across the ListView control, I figured this was the way to go. However, I haven't figured out the whole check box thing (besides highlighting) with MultiSelect=True and View=3-lvwReport. Does anyone know what I'm talking about and have any insight into this? Thanks!
I've also have some useful links:
Xtreme VB Talk: Want Listview acting like Listbox (http://www.xtremevbtalk.com/showthread.php?t=278616)
Xtreme VB Talk: From ListBox 2 ListView (http://www.xtremevbtalk.com/showthread.php?t=278818)
ListView Control - Introduction (http://www.developerfusion.co.uk/show/74/1/)
MSDN: Listview Control (http://msdn2.microsoft.com/en-us/library/3bz1s4ky.aspx)
I found in VB6 that things are a little different. After running across the ListView control, I figured this was the way to go. However, I haven't figured out the whole check box thing (besides highlighting) with MultiSelect=True and View=3-lvwReport. Does anyone know what I'm talking about and have any insight into this? Thanks!
I've also have some useful links:
Xtreme VB Talk: Want Listview acting like Listbox (http://www.xtremevbtalk.com/showthread.php?t=278616)
Xtreme VB Talk: From ListBox 2 ListView (http://www.xtremevbtalk.com/showthread.php?t=278818)
ListView Control - Introduction (http://www.developerfusion.co.uk/show/74/1/)
MSDN: Listview Control (http://msdn2.microsoft.com/en-us/library/3bz1s4ky.aspx)