Results 1 to 2 of 2

Thread: Sync. Two Listview

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Santo Domingo,D.N., Dom. Rep.
    Posts
    707

    Talking Sync. Two Listview

    I have 2 listview.
    As soon as i insert data in the first one, i want to insert the other.

    Is there an easy way to do?
    No duplicating the add.

  2. #2
    Hyperactive Member TupacShakur's Avatar
    Join Date
    Mar 2002
    Location
    Da Land Of Da Heartless...
    Posts
    493

    Lightbulb Well,

    Let me see if i got this straight:
    You want to add the same data in the 2 Listviews using only one add statement??
    well, i think the only way to do it is a for loop, with an array of controls (this case, an array of listviews).
    e.g:
    VB Code:
    1. Private Sub AddItem(NewItem as String)
    2.     For i = 0 to 1
    3.     List1(i).AddItem(New Item)
    4.     Next i
    5. End Sub
    Any other suggestions??
    HTH
    "And Now I'm Lika Major Threat, Cause I Remind U Of The Things U Were Made To Forget!" - (2PAC)

    "Now They Label Me a Lunatic, Couldn't Care Less, Death or Success is What I Quest, Cause I'm Fearless!" - (2PAC)

    " There's a light at the end of every tunnel, just pray it's not a train!! "



    I am 100% addicted to Tupac. What about you?
    I am 24% addicted to Counterstrike. What about you?
    The #1 Tupac Fans Web Site | The Official Tupac Web Site

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