Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Popup box

Popup box

Scheduled Pinned Locked Moved Visual Basic
data-structureshelpquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    carrigart
    wrote on last edited by
    #1

    Hi, Looking for a bit of help. I have a program that draws a graph and plots some values. What I want to do is when I hover my mouse over one of the values, up pops a box which shows a bit more information. Is this possible or is there a control to do this? Thanks for your help

    R 1 Reply Last reply
    0
    • C carrigart

      Hi, Looking for a bit of help. I have a program that draws a graph and plots some values. What I want to do is when I hover my mouse over one of the values, up pops a box which shows a bit more information. Is this possible or is there a control to do this? Thanks for your help

      R Offline
      R Offline
      Rupesh Kumar Swami
      wrote on last edited by
      #2

      how you draw a graph? whether it is on form or on panel on some other controls? i post a article which describe how can you draw a chart using OWC11 .It facilitate you that whenever your mouse is over one of the values then it display related value. See Column Chart[^] may above link help you

      Rupesh Kumar Swami Software Developer, Integrated Solution, Bikaner (India) My Company Award: Best VB.NET article of June 2008: Create Column Charts Using OWC11

      C 1 Reply Last reply
      0
      • R Rupesh Kumar Swami

        how you draw a graph? whether it is on form or on panel on some other controls? i post a article which describe how can you draw a chart using OWC11 .It facilitate you that whenever your mouse is over one of the values then it display related value. See Column Chart[^] may above link help you

        Rupesh Kumar Swami Software Developer, Integrated Solution, Bikaner (India) My Company Award: Best VB.NET article of June 2008: Create Column Charts Using OWC11

        C Offline
        C Offline
        carrigart
        wrote on last edited by
        #3

        I draw the graph myself straight on a form. I need something like the way a tooltip box pops up

        D 1 Reply Last reply
        0
        • C carrigart

          I draw the graph myself straight on a form. I need something like the way a tooltip box pops up

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          You'll have to track the mouse (MouseMove) over the control you're using to draw on. Take the coordinates of the mouse and map them to the points on your graph. Say the mouse is sitting at a point on your graph, or anywhere for that matter, like (20,60). What point did you draw at column 20?? Take that information and put it into a ToolTip window or your own small window. When the mouse moves again, recalculate and move the window.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          C 1 Reply Last reply
          0
          • D Dave Kreskowiak

            You'll have to track the mouse (MouseMove) over the control you're using to draw on. Take the coordinates of the mouse and map them to the points on your graph. Say the mouse is sitting at a point on your graph, or anywhere for that matter, like (20,60). What point did you draw at column 20?? Take that information and put it into a ToolTip window or your own small window. When the mouse moves again, recalculate and move the window.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008

            C Offline
            C Offline
            carrigart
            wrote on last edited by
            #5

            Cheers mate, Sounds like what I'll have to do. One question. Can I have a my own window without the menu bar stuff at the top, without the minimize/max and exit buttons and so on. Is there a way to hide all the stuff. Thanks for your help

            D 1 Reply Last reply
            0
            • C carrigart

              Cheers mate, Sounds like what I'll have to do. One question. Can I have a my own window without the menu bar stuff at the top, without the minimize/max and exit buttons and so on. Is there a way to hide all the stuff. Thanks for your help

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              Sure. Checkout the FormBorderStyle property. You can even have a window with no border and title bar. If you want the title bar, look into the ControlBox property.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007, 2008

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups