Results 1 to 2 of 2

Thread: Passing ListView item to TextBoxes on another form

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Posts
    10

    Question But......

    Hello,

    What you suggest (as far as I understand with my limited knowledge of VB) works fine if I know which record has been selected to update (i.e. your example listview.listitems(2).subitems(i) tells me I want the second record of the list. Is there a way to substitute the "2" with variable (or some other means to soft code). Also, once I get the data I need. how do I pass and accept this into another form?


    Thanks!

  2. #2
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    yes, you can replace 2 with a variable (must be integer) and to pass to another textbox put it in a string and do something like
    VB Code:
    1. form1.text1.text = strwhatever
    Government is another way to say better…than…you.
    It’s like ice but no pick, a murder charge that won’t stick,
    it’s like a whole other world where you can smell the food,
    but you can’t touch the silverware.
    Huh, what luck. Fascism you can vote for.
    Humph, isn’t that sweet?
    And we’re all gonna die some day, because that’s the American way
    -Stone Sour

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