There is a trick you can try. On the form you want to receive focus, place a 1 x 1 pixel "TextBox" with a blank value, no border and transparent background. When you want to focus the form:
oform.myTextBox.SetFocus
oform.myTextBox.Click
I looked for exactly how I did it, could not locate - so this is my best recollection.
HTH
>Thanks, but the application is MDI and making the form modal would break the functionnality. But thanks anyway
>
>Charles
Imagination is more important than knowledge