Hi Sasha,
Thanks for the reply. This seems to work in the sample app, thanks. The eventId for e_annots_inserted is 3251 correct? These Ids arent somehow dynamic are they? When I trap for the same Id in our app, that Id never seems to come up when I am adding annotations.
edit: upon further review it appears that the OnEvent event is not being triggered by the control in our application. In the following code all debug statements will be logged during the appropriate action (resizing, focusing, leaving focus etc) *except* the OnEvent debug statement.
Code: Select all
private void pdfXChangeEditor_Resize(object sender, EventArgs e)
{
Debug.WriteLine("pdfXChangeEditor_Resize");
}
private void pdfXChangeEditor_VisibleChanged(object sender, EventArgs e)
{
Debug.WriteLine("pdfXChangeEditor_VisibleChanged");
}
private void pdfXChangeEditor_Enter(object sender, EventArgs e)
{
Debug.WriteLine("pdfXChangeEditor_Enter");
}
private void pdfXChangeEditor_Leave(object sender, EventArgs e)
{
Debug.WriteLine("pdfXChangeEditor_Leave");
}
private void pdfXChangeEditor_OnEvent(object sender, AxPDFXEdit._IPXV_ControlEvents_OnEventEvent e)
{
Debug.WriteLine("pdfXChangeEditor_OnEvent");
}
Almost as if the event is not registered, but it is in the designer file...
Code: Select all
//
// pdfXChangeEditor
//
resources.ApplyResources(this.pdfXChangeEditor, "pdfXChangeEditor");
this.pdfXChangeEditor.Name = "pdfXChangeEditor";
this.pdfXChangeEditor.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("pdfXChangeEditor.OcxState")));
this.pdfXChangeEditor.OnEvent += new AxPDFXEdit._IPXV_ControlEvents_OnEventEventHandler(this.pdfXChangeEditor_OnEvent);
this.pdfXChangeEditor.VisibleChanged += new System.EventHandler(this.pdfXChangeEditor_VisibleChanged);
this.pdfXChangeEditor.Enter += new System.EventHandler(this.pdfXChangeEditor_Enter);
this.pdfXChangeEditor.Leave += new System.EventHandler(this.pdfXChangeEditor_Leave);
this.pdfXChangeEditor.Resize += new System.EventHandler(this.pdfXChangeEditor_Resize);
Is there anything special about this specific event that perhaps requires more setup or configuration?