Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DocActionEvent object is null

0 views
Skip to first unread message

DJ Baro

unread,
Jun 18, 2008, 2:21:55 PM6/18/08
to
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

0 new messages