How to have ListView items enter into another Listview on a diffrent form in vb?
-
I have a ListView on one of my forms in vb and i need the info that gets typed into it from a text box which i already have set up to go to a different form and enter into another ...show more
-
Answer:
Sample code of passing LISTVIEW1 items to LISTVIEW2: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim li As ListViewItem For Each li In Me.ListView1.Items Me.ListView2.Items.Add(li.Text) Next End Sub '---CODE VERIFIED AND TESTED USING VISUAL BASIC 2005
QUFWFHYKJHLSGV362KTR7DY3OU at Yahoo! Answers Visit the source
Other answers
I dont know VB, but just save the entries in a global variable(s), then populate the list view when you switch to the other form. Thats how I do it in C++.
justme
Related Q & A:
- How to create another listview adapter?Best solution by Stack Overflow
- How to refresh a listview within a Fragment?Best solution by Stack Overflow
- How can I change my avatar into another picture other then a Yahoo avatar?Best solution by Yahoo! Answers
- How to change HD phillips televsion picture format to a diffrent format when many are non selectable. please?Best solution by Yahoo! Answers
- How to fill a sales form?Best solution by yourbusiness.azcentral.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.