المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : calling method/event of one form from another



C# Programming
04-02-2009, 10:55 PM
Hi All


I have three forms in my application Form1 (main form), Form2 and Form3.


Is there any easy way to call method or event which is on Form1 from Form3.In my application there is a method in form1 which is showing records on ListView of Form1 from a file.

In Form3 I am adding two records in the file and after that form3 and form2(which is intermediatery form) both are closed and Form1 becomes the active form.Now I want to call a method or event so that two records are added to the ListView without calling Page load.

I can not declare that method/event as public due to security reason.
protected internal is okay.



Searching on the net confused me and i did not understood anything.

Please guide.


Thanks

Regards

The SK