VB.net obj Call

  • Thread starter Thread starter Peakbagger1
  • Start date Start date
P

Peakbagger1

Guest
VB.net obj Call HELP!!!

I am writing a simulation that has two forms. I the second form has a listview control where i'm printing out data.
I need to be able to go from form1 to form2 and take data(byval) load my columns and rows, then go back to form1 and loop.

I havent' been able to find a way to get the focus to form2 and take variables also.

thanks
 
Take items out of ListView

Colby, to take an item out of a ListView, try this:

Visual Basic:
 strTemp = ListView1.SelectedItems.Item(iCol).Text

The list Item will be the one that's manually selected at run time(with mouse). I don't know yet how to programmatically select an Item.
The SubItem is programmatically selected by index variable iCol (integer column number, zero-relative).

Hope this helps.
 
Back
Top