In this application i m heaving a SAVE button on parent form
As i open a child form and click on save button on parent form
the value should be saved ,Button should have an intellence
that what form is activate and what forms values is to be saved
Please help me it is urgent
Thanx Jaish
I m geeting an idea via your comment although It is not completely clear to me
If would be able to send me a bit code it will be very greatful to me
Hirendra SisodiyaPosted Apr 28, 2010, 8:34 AM
Hello ali
try this:
Write code for save functionality on each child form with same name
for example
on form child1:
Public void Savefuncion()
{
//Put codefor saving information
}
on form child2:
Public void Savefuncion()
{
//Put codefor saving information
}
now use this code on click event of save button
foreach (Form frm in Application.OpenForms)
{
object frm = ActiveMdiChild;
if (frm != null)
{
frm.Savefuncion();
}
}
thanks
Please mark as answer if it helps
Jaish MathewsPosted Apr 28, 2010, 2:02 AM
This all belong to appplication design. But I am trying to write a summary what to do.