Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox and listbox relation
Message
 
 
To
07/01/2004 16:17:38
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00864848
Message ID:
00864857
Views:
10
Justin,

Why aren't you using a Combobox with style DropList?

> I am working on a form that has a few textboxes and a listbox. When I SetFocus on the textbox1 a listbox will appear under it and has a list of names sorted alphabetically. When I begin typing letters it finds the closest name to whatever I am typing. When I use the arrow keys it will scroll up and down through the listbox without really having focus on the listbox. The problem I have been running into is when I use the mouse to click on a different textbox on the screen the listbox doesn't disappear. I want to have the ability to click on the listbox with the mouse to select a name. I only want the listbox to appear when I SetFocus to textbox1. I want to be able to click on the listbox and chose a name and be able to click back on the textbox without the listbox disappearing. However, when I use the mouse to click anywhere but textbox1 or the listbox, the listbox should disappear. Is this possible?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform