>I call a form called collect from the lost focus of a text box on my startup form.
>
>It appears BEHIND the startup form. It has only just started to do this.
>
>What is the problem.
>
>Colin
Make sure the startup form is alwaysontop = .F.
Then in collect.show()
LPARAMETERS nStyle
DECLARE INTEGER SetForegroundWindow IN WIN32API LONG luHwnd
SetForegroundWindow(This.HWND)
Then you can call collect.show() from anywhere and it will bring it to the front.
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California