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. How can I show an image on Tooltip

How can I show an image on Tooltip

Scheduled Pinned Locked Moved Visual Basic
questionjavascript
5 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.
  • Q Offline
    Q Offline
    quyphidao gmail com
    wrote on last edited by
    #1

    I am using MS visual dot NET. How can I show an image on Tooltip (Window application) and some thing like that? Because I want to show image of each Employee when cursor move on each row in datagrid. On web application we can use javascript. But this ia Window application. Please give me somes solutions. Thank you so much :(( asdasda

    S 1 Reply Last reply
    0
    • Q quyphidao gmail com

      I am using MS visual dot NET. How can I show an image on Tooltip (Window application) and some thing like that? Because I want to show image of each Employee when cursor move on each row in datagrid. On web application we can use javascript. But this ia Window application. Please give me somes solutions. Thank you so much :(( asdasda

      S Offline
      S Offline
      Shyam Bharath
      wrote on last edited by
      #2

      Why are you crying? Simple. You can capture the MouseEnter event, and show a form in that event. In that event, make sure the Left, Top of form coincides appropriately with that of the Control. The form can consist of the PictureBox (which can be used to show the image according to the control. This can be done by setting a Public Shared variable of the parent form and changing the value to the appropriate image url) and other controls for working with the image. And on MouseLeave you just close the form. Make sure you make the form looks like a splash screen by changing her properties. BTW you can as well use a PictureBox control directly if you don't want the tooltip to be visible outside your form. I just thought of a more general case when user can probably perform some operations on the image.

      ------------------------------------------- It's code that drives you - Shyam

      modified on Monday, October 27, 2008 8:09 AM

      Q 1 Reply Last reply
      0
      • S Shyam Bharath

        Why are you crying? Simple. You can capture the MouseEnter event, and show a form in that event. In that event, make sure the Left, Top of form coincides appropriately with that of the Control. The form can consist of the PictureBox (which can be used to show the image according to the control. This can be done by setting a Public Shared variable of the parent form and changing the value to the appropriate image url) and other controls for working with the image. And on MouseLeave you just close the form. Make sure you make the form looks like a splash screen by changing her properties. BTW you can as well use a PictureBox control directly if you don't want the tooltip to be visible outside your form. I just thought of a more general case when user can probably perform some operations on the image.

        ------------------------------------------- It's code that drives you - Shyam

        modified on Monday, October 27, 2008 8:09 AM

        Q Offline
        Q Offline
        quyphidao gmail com
        wrote on last edited by
        #3

        Thank you Shyam ... :) you help me to solve this problem. My firend. I'm from VietNam. where are you? :laugh:

        asdasda

        M 1 Reply Last reply
        0
        • Q quyphidao gmail com

          Thank you Shyam ... :) you help me to solve this problem. My firend. I'm from VietNam. where are you? :laugh:

          asdasda

          M Offline
          M Offline
          Meer Osman Ali
          wrote on last edited by
          #4

          Moi from india... :-D

          Q 1 Reply Last reply
          0
          • M Meer Osman Ali

            Moi from india... :-D

            Q Offline
            Q Offline
            quyphidao gmail com
            wrote on last edited by
            #5

            oh. :-D India have very big software industry. I know, India is number software industry in the world. Nice to meet you. My Email is : quyphidao@yahoo.com. Could I have your email? I hope we will be good friends and help each other to improve knowledge....

            asdasda

            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