2
Answers

Refresh Data on Parent Form1

JJ Ross

JJ Ross

16y
2.7k
1
 

Hi All,

I have a win app with two forms involved. Form1 opens up Form2. When I go to close Form2 I want to refresh some grids on Form1 first. I tried setting up a custom eventhandler but its kind of hokey. I need some way to call a method in Form1 from Form2. Does anyone have the best way to do this? I passed a Form1 reference to Form2 and tried to see a public method that I declared in Form1 but doesn't show up. So I went with trying to create a custom event in Form1 and call it from Form2 but not sure the best way to do this, any ideas?

 

Thanks,

JJ

Answers (2)