problem with commands

Topics: CAB & Smart Client Software Factory
Jan 10, 2006 at 10:26 AM
originally posted by: pmelichar1809

I try to use commands in my app.
I succesfully register command in ModuleInit class:
loginWorkItem.Commands"ExitApp".AddInvoker(exitApp, "Click");

then i try use command handler in workitem:
private void ExitApp(object sender, EventArgs e)

but this is not functioning, what I am doing badly?

thanks for answer.
Jan 10, 2006 at 11:19 AM
originally posted by: BradWilsonMSFT

CAB does not support private reflecation. Change the method from private to public.
Feb 25, 2006 at 12:29 PM
originally posted by: nermind

Thanks Brad,
I had exactly the same problem. This solved it. I guess next time I should pay more attention to the documentation :)