Hi Rasmus!
"Rasmus" <st*************@hotmail.com> schrieb im Newsbeitrag
news:45**************************@posting.google.c om...
I need to handle an event from one form in another form.
I need to grab the event listBox1.SelectedIndexChanged, which lies in
a child form called reports and use it in my parent form.
In mainFrm, you are creating chldFrm, right?
Then you can set the Eventhandler in mainFrm:
chldFrm.listBox1.SelectedIndexChanged += new
System.EventHandler(this.childFormListBox_Selected IndexChanged);
Then the Function childFormListBox_SelectedIndexChanged is called,
whenever the selected Index changes in the child form!
With kind regards,
Konrad