>That does work in VFP, 8 but I am going to need to use WestWind wwIPSTUFF library with this form and I think that means I will have to be using VFP 6.
I'm not familiar with the West Wind library, but it seems odd that you'd have to use 6.0. If that's the case, however, load the Foxtools library and
lnhwnd = _WhToHwnd(_WFindTitl(oForm.Caption))
and use that variable to pass to SetForegroundWindow().
>I tried setting focus to an object on the form (ie. oform.cmdSelect.setfocus()) but that didn't work either. My approach must be all wrong here. I can't believe this should be so difficult.
I'd guess you're probably running under Win2K or above. I admit, there are some oddities with regard to windows focus that I don't completely understand.
George
Ubi caritas et amor, deus ibi est