fire function in another form

hi

Please help me to sort out the below problem

I have 2 windows forms

1) view form with a Show button. Double clicking will call a procedure to load a dataset and bind it to datagrid.

2) Edit form - This is loaded on double cliking the view form, user may change values and update the table.

My requirement - On closing Edit form, the function to load dataset has to be fired and the datagrid in View form should be updated. But i cannot access any functions of View form from Edit form... so how to refresh the view form once user changed the data in edit form

Thanks in advance

Raju Sreenivasan

[648 byte] By [RajuSreenivasan] at [2007-12-22]
# 1

Call editform with EditForm.ShowDialog. method.
the control will return back to next line only after the EditForm is closed.
You can then call your local Fill DataGrid method.

Regards
Jignesh Desai

JigneshDesai at 2007-8-30 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2

hi,

that was cool....thanks for the solution

Regards

Raju Sreenivasan

RajuSreenivasan at 2007-8-30 > top of Msdn Tech,Windows Forms,Windows Forms General...