View Single Post
Old Sep 10th, 2005, 2:13 PM   #8
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
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
Dameon is offline   Reply With Quote