DocActionEvent object is null

D

DJ Baro

Hi there,

I've added an event to a button of my created toolbar, as below


[InfoPathEventHandler(MatchPath="btnCancel",EventType=InfoPathEventType.OnClick)]
public void btnCancel_Click(DocActionEvent e)
{
e.ReturnStatus = false;
}

I got error at this point saying that "Object reference not set"
NOTE: This event is fired when I click on the button of that toolbar.
The problem is that "e" object is not instantiated or set.

Any suggestions???

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top