Results 1 to 5 of 5

Thread: How to get a ListView

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    455
    Dear VB users,

    Can somebody tell me how to get a ListView object.?

    Wich control file (.OCX) do I have to use?

    Nice regards,

    Michelle.

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Common Controls 5 and 6 should contain it

    The file Comctl32.ocx should be in registered in your system directory
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446

    Kedman

    Dear Kedman think you can tell me how to wrap this into a list view:
    If (loadedcheck) Then Exit Sub

    Index = 0

    Do
    If (Index > 0) Then
    Load CheckGDW(Index)
    CheckGDW(Index).Top = CheckGDW(Index).Height * Index + CheckGDW(Index).Top
    End If

    CheckGDW(Index).Visible = True
    CheckGDW(Index).Caption = rs!CustomerID

    Index = Index + 1
    Call rs.MoveNext

    Loop Until rs.EOF()
    loadedcheck = True

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221

    rs.EOF()

    Well i hope you don't mind that i actually don't know what you're trying to do, what do you mean by wrapping it into a listview?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446

    wrap

    Well, the above code gives a column of check boxes to the amount in the database so i would like these check boxes inside a list view so i can scroll up and down through the selections incase the database is updated with new customers.

    Many thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width