|
Ooble's advice would create another form resulting in 3. I suppose you want to communicate back to the *original* form. This is not VB6, you need a reference to "communicate" with a form. In your setup, A method in the formMain class creates and gets a reference to an instance of formFileNew. formFileNew has no way to access the formMain instance that created it. I would suggest adding a property on the formFileNew class specifying what the user has selected. When the form closes, access the property. ShowDialog returns when the form is closed, so the property should have the data you want.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
|