A
Abdessamad Belangour
Hi all,
I'm working on a Windows application composed of two forms : form1 and
form2.
form1 calls form2 which has two buttons : OK and Cancel.
The form1 needs to know which of form2 buttons were clicked and to get some
form2 processed values .
private void OK_Click(object sender, System.EventArgs e)
{
// do proccessing and return a value
}
Do i have to declare my own EventArgs parameter? If yes do i have also to
change the delegate(to declare my own delegate)? Please give me a small
example if possible.
Thanks in advance.
Abdessamad.
I'm working on a Windows application composed of two forms : form1 and
form2.
form1 calls form2 which has two buttons : OK and Cancel.
The form1 needs to know which of form2 buttons were clicked and to get some
form2 processed values .
private void OK_Click(object sender, System.EventArgs e)
{
// do proccessing and return a value
}
Do i have to declare my own EventArgs parameter? If yes do i have also to
change the delegate(to declare my own delegate)? Please give me a small
example if possible.
Thanks in advance.
Abdessamad.