>Seems to me that it's as easy as setting the tab order of the container. If the textbox is before the dropdown, it will get focus when you tab.
>
>>I have a container that contains a textbox and a dropdown. When the mouse is clicked over the texbox, or the container is tabbed into, I want the textbox to have the focus. When the mouse is clicked over the dropdown, I want that to have the focus. I put code originally into the container.gotfocus like this:
>>
>>THIS.EntryTextBox.SetFocus
>>
>>But that causes problems when you click over the dropdown, the textbox gets the focus, then a 2nd click allows the dropdown to get the focus. How can I make this work?
It is, and that's what I thought would happen, but for some reason another control in the container is getting the focus. It's actually a fairly complicated class, but I can't seem to find anything changing the Tab Order. Is there anything else that could affect the order coming into a container of controls?