Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Listview Object problem

Discussion in 'Information Technology' started by zulander@gmail.com, Jul 28, 2006.

  1. zulander@gmail.com

    zulander@gmail.com
    Expand Collapse
    Guest

    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
     
  2. Loading...


  3. datAdrenaline

    datAdrenaline
    Expand Collapse
    Guest

    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!)

    --
    Regards,
    Brent Spaulding
    datAdrenaline


    "zulander@gmail.com" wrote:

    > 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
    >
    >
     

Share This Page