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