Profile Picture

the NPanAndZoomControl does not respond the mouse click event

Posted By Suyan Dong 10 Years Ago

the NPanAndZoomControl does not respond the mouse click event

Author
Message
Suyan Dong
Posted 10 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 7 Years Ago
Posts: 17, Visits: 128

Why after I set the Click event of the NPanAndZoomControl's Click event, but when I run the program ,After I click on the region of the control, the event does not respond.

How should I deal with this , I would be really glad for your reply.

 

the main code is:

  private Nevron.Diagram.WinForm.NPanAndZoomControl PanAndZoom; 

 this.PanAndZoom.Click += new System.EventHandler(this.PanAndZoom_Click);

   private void PanAndZoom_Click(object sender, EventArgs e)
        {
            NPointF p = PanAndZoom.ViewportPreview.Band.Center;
            p.X += 10;
            p.Y += 10;
            PanAndZoom.ViewportPreview.Band.Center = p;
            PanAndZoom.UpdateMasterView();
        }

 






Similar Topics


Reading This Topic