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. showpopup help.

showpopup help.

Scheduled Pinned Locked Moved Visual Basic
csharphelptutorial
8 Posts 2 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.
  • P Offline
    P Offline
    popalzai
    wrote on last edited by
    #1

    hi! im new to vb.net. and lookin for help frm u all genius working in .net i have seen the showpopup method, this is very nice thing in .net now good to c such thing for quick help. i have tried the example from msdn, i thot from example that the showpopup will show help on the bottom of the textbox but unfortunately it is not working that way. it is showin somewhere else on the form.if i do maximize the form the location also changes. so plz let me knw is there anyprob for this popup help showing location or is there anything im doing wrong. i have seen one topic in this website too on this. in this topic they have used mousepointer position to showpopup help. that is working fine. wherever the cursor is system show that popup on that place but i wana to show that quick help popup on the textbox or anycontrol bottom side as example in msdn is saying. thankx in advance and help will b v v appreciate. atif saeed khan software developer realtime technology dubai

    D 2 Replies Last reply
    0
    • P popalzai

      hi! im new to vb.net. and lookin for help frm u all genius working in .net i have seen the showpopup method, this is very nice thing in .net now good to c such thing for quick help. i have tried the example from msdn, i thot from example that the showpopup will show help on the bottom of the textbox but unfortunately it is not working that way. it is showin somewhere else on the form.if i do maximize the form the location also changes. so plz let me knw is there anyprob for this popup help showing location or is there anything im doing wrong. i have seen one topic in this website too on this. in this topic they have used mousepointer position to showpopup help. that is working fine. wherever the cursor is system show that popup on that place but i wana to show that quick help popup on the textbox or anycontrol bottom side as example in msdn is saying. thankx in advance and help will b v v appreciate. atif saeed khan software developer realtime technology dubai

      D Offline
      D Offline
      Dave Sexton
      wrote on last edited by
      #2

      Is this a desktop app?

      P 1 Reply Last reply
      0
      • D Dave Sexton

        Is this a desktop app?

        P Offline
        P Offline
        popalzai
        wrote on last edited by
        #3

        hi! yup its a desktop application. actually im working on a product in which i have to give enduser the help option too.

        1 Reply Last reply
        0
        • P popalzai

          hi! im new to vb.net. and lookin for help frm u all genius working in .net i have seen the showpopup method, this is very nice thing in .net now good to c such thing for quick help. i have tried the example from msdn, i thot from example that the showpopup will show help on the bottom of the textbox but unfortunately it is not working that way. it is showin somewhere else on the form.if i do maximize the form the location also changes. so plz let me knw is there anyprob for this popup help showing location or is there anything im doing wrong. i have seen one topic in this website too on this. in this topic they have used mousepointer position to showpopup help. that is working fine. wherever the cursor is system show that popup on that place but i wana to show that quick help popup on the textbox or anycontrol bottom side as example in msdn is saying. thankx in advance and help will b v v appreciate. atif saeed khan software developer realtime technology dubai

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

          Let me see a sample of your code. Maybe I can fix it if I can figure out what it is you want from it. :confused:

          P 1 Reply Last reply
          0
          • D Dave Sexton

            Let me see a sample of your code. Maybe I can fix it if I can figure out what it is you want from it. :confused:

            P Offline
            P Offline
            popalzai
            wrote on last edited by
            #5

            ok! actually if u can c the help of showhelp popup in msdn the same example i tried to run. wat i gt idea from this example is that the popup help will popup on the edge of the textbox. but it is not working so. try the example in msdn. Private Sub textBox1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles textBox1.KeyUp ' Determine whether the key entered is the F1 key. Display help if it is. If e.KeyCode = Keys.F1 Then ' Display a pop-up help topic to assist the user. Help.ShowPopup(textBox1, "Enter your first name", New Point(textBox1.Right, Me.textBox1.Bottom)) End If End Sub 'textBox1_KeyUp

            D 1 Reply Last reply
            0
            • P popalzai

              ok! actually if u can c the help of showhelp popup in msdn the same example i tried to run. wat i gt idea from this example is that the popup help will popup on the edge of the textbox. but it is not working so. try the example in msdn. Private Sub textBox1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles textBox1.KeyUp ' Determine whether the key entered is the F1 key. Display help if it is. If e.KeyCode = Keys.F1 Then ' Display a pop-up help topic to assist the user. Help.ShowPopup(textBox1, "Enter your first name", New Point(textBox1.Right, Me.textBox1.Bottom)) End If End Sub 'textBox1_KeyUp

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

              popalzai wrote:

              New Point(textBox1.Right, Me.textBox1.Bottom))

              There's you're problem right there - the point you're creating will plot the location relative to the screen, not the textbox control or it's containing form. You have to take into account the location of the textbox on the form AND the location of the form itself. Try this, it'll show the popup over the top right of the textbox no matter where the form is or what window state it's in (normal/maximized).

              Private Sub TextBox1_KeyUp(....) Handles TextBox1.KeyUp
              If e.KeyCode = Keys.F1 Then
              Help.ShowPopup(Me.TextBox1, "Help is at hand", New Point((Me.Left + TextBox1.Right), (Me.Top + TextBox1.Bottom)))
              End If
              End Sub

              P 1 Reply Last reply
              0
              • D Dave Sexton

                popalzai wrote:

                New Point(textBox1.Right, Me.textBox1.Bottom))

                There's you're problem right there - the point you're creating will plot the location relative to the screen, not the textbox control or it's containing form. You have to take into account the location of the textbox on the form AND the location of the form itself. Try this, it'll show the popup over the top right of the textbox no matter where the form is or what window state it's in (normal/maximized).

                Private Sub TextBox1_KeyUp(....) Handles TextBox1.KeyUp
                If e.KeyCode = Keys.F1 Then
                Help.ShowPopup(Me.TextBox1, "Help is at hand", New Point((Me.Left + TextBox1.Right), (Me.Top + TextBox1.Bottom)))
                End If
                End Sub

                P Offline
                P Offline
                popalzai
                wrote on last edited by
                #7

                thankx for reply. but dear its not working in the mdi application. lets suppose if u take this form as a child form then wat ?

                D 1 Reply Last reply
                0
                • P popalzai

                  thankx for reply. but dear its not working in the mdi application. lets suppose if u take this form as a child form then wat ?

                  D Offline
                  D Offline
                  Dave Sexton
                  wrote on last edited by
                  #8

                  Then you mess around until you get it right.

                  Private Sub txt_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txt.KeyUp
                  If e.KeyCode = Keys.F1 Then
                  Dim x, y As Integer
                  Dim r As Rectangle = txt.RectangleToScreen(txt.Bounds)
                  x = (r.Left - txt.Left) + txt.Width
                  y = (r.Bottom - txt.Top) - txt.Height
                  Help.ShowPopup(Me.txt, "Help is at hand", New Point(x, y))
                  End If
                  End Sub

                  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