problem with commands

Topics: CAB & Smart Client Software Factory
Jan 10, 2006 at 9: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:
CommandHandler("ExitApp")
private void ExitApp(object sender, EventArgs e)
{
System.Windows.Forms.MessageBox.Show("Test");
}


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

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

CAB does not support private reflecation. Change the method from private to public.
Feb 25, 2006 at 11:29 AM
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 :)
.