calling a subform passing data
Posted on 2004-08-17
I have a question that should be simple, but has me stumped. I can probably find an ugly way to do this, but it seems to be something that should be able to be handled in a straightforward way.
I have a form with a listview control. When the user doubleclicks a row, I want to call a separate form where the user can edit the various fields that make up the record the user clicked on the first form.
I have no problem with the handling of the listview and so on. My question is simply: How do I open another form, populating fields with data from the first form?
As a side question (but still related), I have an imagelist on the first form. I would like to refer to the same images on my second form. Is it better to recreate the imagelist (I'd think not), refer back to the original form, or pass the image list to the second form? How would I go about doing this?