Click to See Complete Forum and Search --> : Writing Event Handler, how?


cgchris99
September 27th, 2002, 10:40 AM
I need a handler....

I have two forms.
Lets call them FormA and FormB.

On formA I want a handler called NewRecipeLoaded..

When a certain button on FormB is pushed I want to raise an event on FormA
for NewRecipeLoaded.

I know on formB I want RaiseEvent NewRecipeLoaded.

But how do I declare this on FormA and how do I code the procedure?

Thanks for any help

Leominora
September 30th, 2002, 02:03 AM
you must call form2 from form1, then


in Form1:

in the sub you call form2:

AddHandler oForm2.button.Click, AddressOf NewRecipeLoaded


in Form2:

Public Event NewRecipeLoaded()