No. Not with the standard list box control. You will want to use the ListView Control which is one of the Common Control component. Not sure which on off the top of my head.
The ListView is OK but if you only use Columns then I recommend using the FlexGrid as it is much faster and flexible for data layout.... it comes also with the VB setup.
There is also a listBox control in FM20.DLL which supports columns, which you can use but not distribute
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'People who live in windowed environments shouldn't cast pointers.'
If you do not need the checkbox style, the a DataGrid may be what you are looking for.
You can create a fabricated recordset to hold your data and bind it to the grid (also with the flex grid)
Then the searching, sorting, filtering, etc of the records will be much easier:
Dim rsADO as ADODB.Recordset
Set rsADO = New ADODB.Recordset
With rsADO
.Fields.Append "Field1", adVarWChar, 20, adFldUpdatable
.Fields.Append "Field2", adVarWChar, 10, adFldUpdatable
.Open
'you can now add the records in an array, or just use the traditional method with AddNew/Update
.AddNew Array("Field1", "Field2", Array("Hi", "Bye" '.AddNew
'.Fields("Field1".Value = "Hi"
'.Fields("Field1".Value = "Bye"
'.Update
End With
Set DataGrid1.DataSource = rsADO 'Set FlexGrid1.DataSource = rsADO
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.