vb.net - RaiseEvent from a UserControl that's placed on a UserControl that's on a Form -
vb.net - RaiseEvent from a UserControl that's placed on a UserControl that's on a Form -
i have windows form contains custom command container usercontrol. sake of question, custom command container called dashboard. container called dashboard contains numerous other controls depending on permissions. need raise events contained on these controls through dashboard command , on windows form.
how can bubble event? i'm using vb.net project, can convert c# vb.net.
also, complicate matters, main windows form vb6 project. so, i'm using interopformstoolkit accomplish this.
i figured out. did had said wanted , created event custom eventargs class , bubbled vb6 app. each command needed implement custom event such as:
public event onmycustomevent(source object, e mycustomeventargs)
and go on raising event vb6. in vb6 event exposed function me handle necessary.
vb.net winforms events winforms-interop raiseevent
Comments
Post a Comment