Passing information from one form to another

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a VB.NET question about ListViews and Forms.

I have a listview with records. I want a user to be able to double-click on
a record, and have a subform come up with detailed information about that
particular record. This user can then make edits.

The problem is - I do not know how to pass information from a form to
another form. I don't want to use Public variables if possible.

Basically, How do I pass the value of the selected record in the first form
to the second form. I can then use this value in the second form to open the
appropriate record.

thanks!
P
 
Form constructor New(SelectedItem as MyListItem) maybe?

Make your list items be from a class that inherits the class used to
populate listview items(don't recall the name).

HTH,

Shane

ps.. If not you would need Friend Property Set/Get procedures or variables,
or a SUB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top