junwebhead
Programmer
Hi all!
Does anyone know how to call the event method of a form from another form? Actually, these forms are MDI childs. I wanted to fire up the refresh button of the first form when I closed the second form (in which I made some changes to some data that the first form displays).
I've try this:
// I made the method FillListView in the first form public
private FirstForm form1 = new FirstForm();
// then in the closed event of the second form...
form1.FillListView();
... But I have no luck. Can anyone help me please. I'm new in C# (coming from VB). I'm also curious that my code is really object oriented because I tend to use my techniques in VB.
Thanks in advance!!!
Jun
Does anyone know how to call the event method of a form from another form? Actually, these forms are MDI childs. I wanted to fire up the refresh button of the first form when I closed the second form (in which I made some changes to some data that the first form displays).
I've try this:
// I made the method FillListView in the first form public
private FirstForm form1 = new FirstForm();
// then in the closed event of the second form...
form1.FillListView();
... But I have no luck. Can anyone help me please. I'm new in C# (coming from VB). I'm also curious that my code is really object oriented because I tend to use my techniques in VB.
Thanks in advance!!!
Jun