>>>>>Is combo visible?
>>>>>If so, what happens if you make it invisible?
>>>>>
>>>>>BTW if the textbox is over the combo, and textbox is transparent, then Combo will have focus :-)
>>>>>
>>>>>Try this, just start typing :-)
>>>>
>>>>Textbox is on top of the combo (combo is a bit down below). I made combo invisible and yes, the textbox does have focus now. I'll try adding setting combo.visible to true after focus.
>>>
>>>Did this behavior change if you made combo visible and Textbox opaque?
>>
>>Textbox is already opaque. Anyway, I was updating my reply:
>>
>>UPDATE. Don't know why, but having combo invisible in design-time and setting it visible in Page.Activate right after textbox.SetFocus solved the problem. Thanks a lot, I was going in circles with this little problem.
>>
>>I leave it this way - it's working!
>>
>>I'm also thinking that could it be that they were too close to each other?
>
>
>Just curious...
>
>Is your PageFrame derived from any PageFrame class?
>If yes, maybe in parent class there is a ActivatePage_Assign method defined.
>In fact, I can reproduce your problem in my own form with following codes:
>
>
>*!* PageFrame.ActivatePage_Assign
>LPARAMETERS vNewVal
>this.ActivatePage = m.vNewVal
>FOR i = 1 TO this.Pages(m.vNewVal).ControlCount
> loControl = this.Pages(m.vNewVal).Controls(i)
> IF loControl.TabIndex = 1 AND loControl.Visible
> loControl.SetFocus()
> EXIT
> ENDIF
>ENDFOR
>
>
>This is just curious... :)
It is a subclass, but it has only 2 properties set - ActivePage = 1 and PageCount = 2. I see, though, that both these pages have this.Refresh in their Activate method.
If it's not broken, fix it until it is.
My Blog