>When coming from another control, if you click a in the graphical portion of a combobox (style 0 - Dropdown) it shows its content in a popup and the cursor changes to the pointing arrow, if you click in the text portion, that portion get focus and the cursor changes to I beam. That is the normal behavior of it.
>
>BUT if you add code to its GotFocus method, it always behave as if you have clicked in the text portion, no matter where you clicked, even if you have dodefault() on it. It works the same in VFP5 as in VFP6 SP5.
>I need code in the getfocus and also I want the default functionality.
>
>How to solve this little problem?
>
>Thanks in advance,
I've seen this behavior before...
Are you basing your comboBox directly on the VFP comboBox base class? If so, try creating your own version of the base class (even if you don't make any changes to it). Drop your new comboBox class onto the form, and modify the gotFocus(). You don't need to put dodefault() in the gotFocus() method (if you do, the default code gets executed twice, unless you put NODEFAULT in the method also).
Steve Gibson