Windows Form Talking To Another Windows Form Help Needed

  • Thread starter Thread starter Pumpkin Carver
  • Start date Start date
P

Pumpkin Carver

I have a form that has a listview on it and a serious of strings in
the listiew. When i doubel click on the listview item it opens a new
form and displays the text that i pass to the constructor. What i am
trying to do now is have a previous/next button on the form i just
opened and have it go through the list of items depending on whats
previous or next to that item. I pretty much have the logic for that,
the only issue i cant seem to figure out is "form b" talking to "form
a" and then "form a" returning data back to "form b". Any ideas or web
examples or anything?
Thanks!
 
Pumpkin,

Well, you don't have a problem of Form A talking to Form B. Since Form
A is going to create and show Form B, you have a reference to it and can get
information from it (via properties, methods and events on Form B).

You are passing the string to Form B, right? Why not pass a reference
from Form A to Form B in the constructor as well? Or at least, the
ListView. This way, you can get information about what is displayed on Form
A.

Hope this helps.
 

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