Results 1 to 3 of 3

Thread: Zed Graph Double Click

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2006
    Location
    Florida, USA
    Posts
    565

    Zed Graph Double Click

    How can I find out what they double clicked. I have a pie chart and I would like to know which piece of the pie they clicked on. I am using a Zed Graph chart.

    vb Code:
    1. Private Sub ZedGraphControl1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles ZedGraphControl1.DoubleClick
    2.         MsgBox(e.ToString)
    3. End Sub
    I use VB .NET 2022. Currently developing StudyX educational software, PlazSales POS system and Yargis a space ship shooter game.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Zed Graph Double Click

    The Click and DoubleClick events just tell you that the click or double-click occurred. The MouseClick and MouseDoubleClick events will give you more information, including mouse coordinates.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2006
    Location
    Florida, USA
    Posts
    565

    Re: Zed Graph Double Click

    Hmmm. That helps a little. But it seems like this must be an undocumented feature:
    http://zedgraph.org/wiki/index.php?s...bleClick&go=Go

    Quote Originally Posted by jmcilhinney View Post
    The MouseClick and MouseDoubleClick events...
    I also browsed though all of the Google results:
    http://www.google.com/search?q=zedgr...4607d52d82d8c1

    Here is my code, but all I can get is mouse coords. I do not know what item those correlate to. What is the best way to reach my goal? I would LOVE to pull up the tag with a function. Like, whatDidUserClick().

    vb Code:
    1. Private Sub ZedGraphControl1_MouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ZedGraphControl1.MouseDoubleClick
    2.         MsgBox(e.ToString)
    3.         MsgBox(e.Location.ToString)
    4. End Sub
    I use VB .NET 2022. Currently developing StudyX educational software, PlazSales POS system and Yargis a space ship shooter game.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width