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 to show tooltip for a disabled control in vb.net

How to show tooltip for a disabled control in vb.net

Scheduled Pinned Locked Moved Visual Basic
questioncsharphelptutorial
8 Posts 2 Posters 1 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.
  • A Offline
    A Offline
    Andraw Tang
    wrote on last edited by
    #1

    Hi, dear all, I have a form with some controls, some of controls may by disabled based on some options, I wish to show tooltips for disabled controls, so user knows why this control is disabled, after enabled, the tooltip gone. How can I achieve this? I search a lot from online, but cannot get answer. Find on to handle this case with class, but when unzip the source code, get error. Thanks!

    A 1 Reply Last reply
    0
    • A Andraw Tang

      Hi, dear all, I have a form with some controls, some of controls may by disabled based on some options, I wish to show tooltips for disabled controls, so user knows why this control is disabled, after enabled, the tooltip gone. How can I achieve this? I search a lot from online, but cannot get answer. Find on to handle this case with class, but when unzip the source code, get error. Thanks!

      A Offline
      A Offline
      Andraw Tang
      wrote on last edited by
      #2

      I find a link to handle this issue: Displaying a ToolTip when the Mouse Hovers Over a Disabled Control[^] But I got error while unzip the source code. If any of you have these source code, can you share with me? Thanks!

      L 1 Reply Last reply
      0
      • A Andraw Tang

        I find a link to handle this issue: Displaying a ToolTip when the Mouse Hovers Over a Disabled Control[^] But I got error while unzip the source code. If any of you have these source code, can you share with me? Thanks!

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        I see no problem: 1. the source download unzips all right with the built-in ZIP handling of Windows 7 2. the individual files are browsable on the "Browse Code" tab of the CP article. 3. the article itself holds the essential code snippets. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

        Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

        A 2 Replies Last reply
        0
        • L Luc Pattyn

          I see no problem: 1. the source download unzips all right with the built-in ZIP handling of Windows 7 2. the individual files are browsable on the "Browse Code" tab of the CP article. 3. the article itself holds the essential code snippets. :)

          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

          Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

          A Offline
          A Offline
          Andraw Tang
          wrote on last edited by
          #4

          I can unzip other files, but cannot for this one. also the source code online are not editable. I am using window XP, maybe I need to try other computer. Thanks!

          1 Reply Last reply
          0
          • L Luc Pattyn

            I see no problem: 1. the source download unzips all right with the built-in ZIP handling of Windows 7 2. the individual files are browsable on the "Browse Code" tab of the CP article. 3. the article itself holds the essential code snippets. :)

            Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

            Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

            A Offline
            A Offline
            Andraw Tang
            wrote on last edited by
            #5

            I ask my friend unzip the file, but when I open it using Visual Studio 2005 and get error message like "the file was created by newer version of this application and cannot be opened" In this case, what should I do?

            L 1 Reply Last reply
            0
            • A Andraw Tang

              I ask my friend unzip the file, but when I open it using Visual Studio 2005 and get error message like "the file was created by newer version of this application and cannot be opened" In this case, what should I do?

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #6

              either download and install Visual Studio 2008 Express (or 2010 Express), it would accept VS2008 project files; or delete the project file, create a new project, and add all necessary source files and references yourself. In the latter case, there is a possibility the source code relies on features present in .NET 3.5 and not in .NET 2.0; if so VS2005 will not be able to handle them at all. :)

              Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

              Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

              A 2 Replies Last reply
              0
              • L Luc Pattyn

                either download and install Visual Studio 2008 Express (or 2010 Express), it would accept VS2008 project files; or delete the project file, create a new project, and add all necessary source files and references yourself. In the latter case, there is a possibility the source code relies on features present in .NET 3.5 and not in .NET 2.0; if so VS2005 will not be able to handle them at all. :)

                Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

                Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

                A Offline
                A Offline
                Andraw Tang
                wrote on last edited by
                #7

                Thanks!

                1 Reply Last reply
                0
                • L Luc Pattyn

                  either download and install Visual Studio 2008 Express (or 2010 Express), it would accept VS2008 project files; or delete the project file, create a new project, and add all necessary source files and references yourself. In the latter case, there is a possibility the source code relies on features present in .NET 3.5 and not in .NET 2.0; if so VS2005 will not be able to handle them at all. :)

                  Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

                  Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

                  A Offline
                  A Offline
                  Andraw Tang
                  wrote on last edited by
                  #8

                  Hi, I try to use something else to display message that looks like tooltip. I create a label with some message to indicate why its attached control (not real attach) is disabled, set visible = false, I capture the mouse move event, when mouse move to the attached control and also it's disabled, the label with message will be visible, when the mouse move out of the control, the message will be hidden. When I create the control (like textBox) directly in form, and capture Form_MouseMove() event, it works fine. But if I create a TabControl in the form and then a groupbox on the tabpage, then put the textBox control in the groupbox, now I cannot get the control when mouse move by : ctrl = Me.GetChildAtPoint(e.Location) Then ctrl is always Form, or tabControl. Why??

                  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