I have a ListBox control that I want to fill with a maximum of 37767 records, I also want to enable Multiple select with the ability to select all the records.
My question is what are the limitations of the ListBox in VB6 (ie how many records can it take and how many records can be selected at one time with multiple select).
Yes it is maxed out at 32,735 or something like that. if you want to go higher then that then you need my Listbox.OCX. The only listbox(3rd Party or otherwise) i know of that can handle 2Million+ items.
I have just looked into the ListView and are currently using it to get past my problem I just have a couple of questions:
1) I could not find fullrowselect property in the Listview properties how do I get to this property?
2) I notice with a lot of items in the ListView it takes a while for the form to unload. Is there a way I can use my status display to tell the user the progress of unloading the form?
3) How can I put a combo box in a coloumn to allow the user to select an option for a particular record?
Surely someone knows how to do these things, I really need an answer to the 4th question (How do I put a combo box in one of the coloumns in the ListView?)
'
'You can Find an sample how edit text with ListView.
'Change Text with ComboBox: lvsubitemedit.zip
'
'
'Show in form status the unloading and use
'LVWDeleteAllItems(ListView1.hWnd) to delete quickly using API
'
Private Const LVS_EX_FULLROWSELECT As Long = &H20
Private Const LVM_FIRST As Long = &H1000
Private Const LVM_SETEXTENDEDLISTVIEWSTYLE As Long = LVM_FIRST + 54
Private Const LVM_GETEXTENDEDLISTVIEWSTYLE As Long = LVM_FIRST + 55
Private Const LVM_DELETEALLITEMS As Long = (LVM_FIRST + 9)
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
'
'FullRowSelect you can find in MSComCtl.ocx or via API
'It'll be available with View = lvwReport
'
Originally posted by needaname16 1) I could not find fullrowselect property in the Listview properties how do I get to this property?
2) I notice with a lot of items in the ListView it takes a while for the form to unload. Is there a way I can use my status display to tell the user the progress of unloading the form?
3) How can I put a combo box in a coloumn to allow the user to select an option for a particular record?
1) Right click on the control and open the properties. It should be in a check box on the right side of the dialog. If not, check your version of MS Windows Common Controls.