Listview Object problem

  • Thread starter Thread starter zulander
  • Start date Start date
Z

zulander

Hi i am having problem with the MS windows Common Control 6.0
the problem is i have added my object in the form that i am using and
it is working however when it's time to do some coding i am not seeing
any classes listed
for example if i type listview0 and the dot i should get the list of
all classes right however i am not getting the list of all classes i am
geting the properties (i.e: About, application backcolor etc..)

so does anyone know if it's fixable thank you
 
When you say you do not see any classes, what do you mean? You will not see
a "Class" module for a ListView object ... Do you mean that you do not get
the "autofill" drop downs when writing your code? To get the auto dropdowns,
you need to first create a list view object reference in your code, then set
it to the listview object on your form. Try out something like the sample
code below, to see if this helps you out:

Private Sub GetLVFillIns()

Dim lv As ListView

Set lv = Me.ListViewControlObjectNameOnForm.Object

'Now that the list view object is 'Known' to the code through the
reference
'You can now use the contansts an method of a ListView control ..
lv.Appearance = cc3D
lv.Checkboxes = True
lv.ColumnHeaders.Add , "MyHeaderKey", "MyColumnText"
... Etc ...
End Sub

(Note: COMPLETE AIR CODE! ... basically just hints to get you started!)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top