PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

mouse events not raised on Page Preview
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3277
Page 1 of 1

Author:  msta [ Sun Jan 24, 2016 9:18 pm ]
Post subject:  mouse events not raised on Page Preview

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

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/