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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Tooltip with a close button.

Tooltip with a close button.

Scheduled Pinned Locked Moved Visual Basic
csharp
7 Posts 4 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.
  • U Offline
    U Offline
    udaykatakam
    wrote on last edited by
    #1

    Hello, I am new to .Net and I am looking to add a custom tooltip to a link button with a close button.Please let me know how I can do that . Thanks, Uday.

    Uday

    K A 2 Replies Last reply
    0
    • U udaykatakam

      Hello, I am new to .Net and I am looking to add a custom tooltip to a link button with a close button.Please let me know how I can do that . Thanks, Uday.

      Uday

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      Are you taking about a web application? If you are the LinkButton has a property called ToolTip. Just set that property to the correct ToolTip. If you want the browser to close you have to do it in javascript. Here's some vb code for .net 1.1

      Private Sub closeWindow()
      Dim myScript As New StringBuilder
      With myScript
      .Append("")
      .Append(Environment.NewLine)
      'Close the window
      .Append("self.close()")
      .Append(Environment.NewLine)
      .Append("")
      Page.RegisterStartupScript("close window", .ToString())
      End With
      End Sub

      If you are using .net 2.0 the registerstartupscript is a little different. HOpe that helps. Ben

      U 1 Reply Last reply
      0
      • U udaykatakam

        Hello, I am new to .Net and I am looking to add a custom tooltip to a link button with a close button.Please let me know how I can do that . Thanks, Uday.

        Uday

        A Offline
        A Offline
        Arun Immanuel
        wrote on last edited by
        #3

        Do U want the close button to present in the tool tip window?

        Regards, Arun Kumar.A

        U 1 Reply Last reply
        0
        • A Arun Immanuel

          Do U want the close button to present in the tool tip window?

          Regards, Arun Kumar.A

          U Offline
          U Offline
          udaykatakam
          wrote on last edited by
          #4

          Arun I am Using .Net 2.0 and I want close button to be present on tooltip, I am in a urgent need please help me. Uday.

          Uday

          A 1 Reply Last reply
          0
          • K kubben

            Are you taking about a web application? If you are the LinkButton has a property called ToolTip. Just set that property to the correct ToolTip. If you want the browser to close you have to do it in javascript. Here's some vb code for .net 1.1

            Private Sub closeWindow()
            Dim myScript As New StringBuilder
            With myScript
            .Append("")
            .Append(Environment.NewLine)
            'Close the window
            .Append("self.close()")
            .Append(Environment.NewLine)
            .Append("")
            Page.RegisterStartupScript("close window", .ToString())
            End With
            End Sub

            If you are using .net 2.0 the registerstartupscript is a little different. HOpe that helps. Ben

            U Offline
            U Offline
            udaykatakam
            wrote on last edited by
            #5

            Ben I am Using .Net 2.0 and I want close button to be present on tooltip, I am in a urgent need please help me. Thanks Uday.

            Uday

            C 1 Reply Last reply
            0
            • U udaykatakam

              Arun I am Using .Net 2.0 and I want close button to be present on tooltip, I am in a urgent need please help me. Uday.

              Uday

              A Offline
              A Offline
              Arun Immanuel
              wrote on last edited by
              #6

              See if this helps U. click Here But, it will show the popup on the click event.(not on the mouse over event. Try to explore the control, and see if U can achieve what U really want.

              Regards, Arun Kumar.A

              1 Reply Last reply
              0
              • U udaykatakam

                Ben I am Using .Net 2.0 and I want close button to be present on tooltip, I am in a urgent need please help me. Thanks Uday.

                Uday

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                You didn't answer him, is it a web app ? If not, one obvious way is to create your own class instead of using the built in tooltips.

                Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

                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