L
L
Hi,
I have a windows form say "Form1" which has a menuitem "SetUp".
When I click this item, a new form "SetUpForm" opens up. When I change
the fields in the "SetUpForm" and click the "OK" button, SetUpForm
should validate the fields and if all the field values are right, it
should close and raise an event in the "Form1". I tried defining an
event using a delegate in "Form1" and then raise the event from
"SetUpForm", but the compiler is throwing an error. How do I write code
to achieve this requirement?
Thanks,
Lalasa.
I have a windows form say "Form1" which has a menuitem "SetUp".
When I click this item, a new form "SetUpForm" opens up. When I change
the fields in the "SetUpForm" and click the "OK" button, SetUpForm
should validate the fields and if all the field values are right, it
should close and raise an event in the "Form1". I tried defining an
event using a delegate in "Form1" and then raise the event from
"SetUpForm", but the compiler is throwing an error. How do I write code
to achieve this requirement?
Thanks,
Lalasa.