Situation: I'm trying to attach to one of the mouse events down,up or clicked for the pagepreview Control to get info when the mouse has been clicked to provide further info to the user. Neither is raised when I click onto the area of the pagepreview.
registering is done via:
this.pagePreview.MouseClick += new System.Windows.Forms.MouseEventHandler(this.pagePreview_MouseClick); this.pagePreview.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pagePreview_MouseDown); this.pagePreview.MouseUp += new System.Windows.Forms.MouseEventHandler(this.pagePreview_MouseUp);
event handling via:
private void pagePreview_MouseDown(object sender, MouseEventArgs e) { ....}
Components used:
VS2015 Pdfsharp-gdi Ver. 1.50.4000.0-beta3b via nuget Windows forms application
please advise.
rgds
Michael
|