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. Help making a listbox appear when I write something

Help making a listbox appear when I write something

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

    Help I've tried many things to make a list box appear when I write something down Example I write an "A" and a list box appears can anyone help me out?

    M 1 Reply Last reply
    0
    • R Rylogy

      Help I've tried many things to make a list box appear when I write something down Example I write an "A" and a list box appears can anyone help me out?

      M Offline
      M Offline
      MohammadAmiry
      wrote on last edited by
      #2

      Will you explain more about what you want? Where are you going to press a key? (i.e. on a form, a textbox, etc.) should the list box be created dynamically at runtime or it can be created in design time and just become visible when you press the key? Do you mean some kind of shortcut for appearing a listbox?

      R 1 Reply Last reply
      0
      • M MohammadAmiry

        Will you explain more about what you want? Where are you going to press a key? (i.e. on a form, a textbox, etc.) should the list box be created dynamically at runtime or it can be created in design time and just become visible when you press the key? Do you mean some kind of shortcut for appearing a listbox?

        R Offline
        R Offline
        Rylogy
        wrote on last edited by
        #3

        hmm what I mean is that when I write a whole word then the list box appears or when I write a letter then the program should read the letter then the list box should appear By bad for not being much specific first time

        D 1 Reply Last reply
        0
        • R Rylogy

          hmm what I mean is that when I write a whole word then the list box appears or when I write a letter then the program should read the letter then the list box should appear By bad for not being much specific first time

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

          You still have to describe this better. Are you talking about showing a listbox while type typing in a RichTextBox? Something like IntelliSense in Visual Studio? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          R 1 Reply Last reply
          0
          • D Dave Kreskowiak

            You still have to describe this better. Are you talking about showing a listbox while type typing in a RichTextBox? Something like IntelliSense in Visual Studio? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            R Offline
            R Offline
            Rylogy
            wrote on last edited by
            #5

            yes exacly

            F 1 Reply Last reply
            0
            • R Rylogy

              yes exacly

              F Offline
              F Offline
              Fade Amit BS
              wrote on last edited by
              #6

              First of all, there are two different questions here 1. How to cause the Listbox to become visible when i want to? very self explenatory, there are two options: a. create the list box in design-time, with the 'Visible' property set to 'False' then, when you want it to become visible change the property b. create the list box dynamically in run-time which i will not explaine here there are a lot of articles describing this 2. How to "sense" that the somthing specific is being written ? Well.... basically there is an event fired when a text in a textbox is changed (there are also a lot of examples on handling events) handle this event and check what has changed, you can keep a copy of the content in the textbox, and when it changes compare both copies, you can scan for the last changed character backwards to see what is written, there are many possibilities, pick one. Hope this helps, you are being very vague next time try explaining what you are trying to do, like "i'm trying the sense when someone is typing a url so i can highlight it". ok ? ;) Fade (Amit BS)

              R 1 Reply Last reply
              0
              • F Fade Amit BS

                First of all, there are two different questions here 1. How to cause the Listbox to become visible when i want to? very self explenatory, there are two options: a. create the list box in design-time, with the 'Visible' property set to 'False' then, when you want it to become visible change the property b. create the list box dynamically in run-time which i will not explaine here there are a lot of articles describing this 2. How to "sense" that the somthing specific is being written ? Well.... basically there is an event fired when a text in a textbox is changed (there are also a lot of examples on handling events) handle this event and check what has changed, you can keep a copy of the content in the textbox, and when it changes compare both copies, you can scan for the last changed character backwards to see what is written, there are many possibilities, pick one. Hope this helps, you are being very vague next time try explaining what you are trying to do, like "i'm trying the sense when someone is typing a url so i can highlight it". ok ? ;) Fade (Amit BS)

                R Offline
                R Offline
                Rylogy
                wrote on last edited by
                #7

                yes thank you i'm not being vague, I just didn't know how to explain it my bad

                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