0

When I double click on a slide, how do I pass the filename of a selected image in a form, to another form?

public void DblClickSld(object sender, System.EventArgs e)
        {
            frmZoom fZ = new frmZoom();

            MessageBox.Show((string)((AxSlide.AxSlide)sender).FileName.ToString());

            fZ.Show();
        }public void DblClickSld(object sender, System.EventArgs e)
        {
            frmZoom fZ = new frmZoom();

            MessageBox.Show((string)((AxSlide.AxSlide)sender).FileName.ToString());

            fZ.Show();
        }
3
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by shers
0

That's the same when you ask how to pass value to another class. fz.SomeMethodTakeStringAsParameter(fileName) haa??

0

Or, in a more OO term you would either set the property of the second form - which has an associated event to triger the change in form 2.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.