You migh try making the form name public so it can be referenced from anywhere in your project.
Sometimes adding a "hidden", but not disabled, textboxes to forms (you can hide them behind some other control). When the project needs to activate a form that does not have focus, a click event is forwarded to the control - which usually activates it's parent form.
Setting focus to the hidden textbox (or a hidden button) and issuing a KEYBOARD command is anther method to fire the parents activate event.
>Hi,
>I use Winsock control. when my application got message from remote computer - the main window must appears in Windows as foreground window (like ALT-TAB switch)
>
>SwitchToThisWindow(_screen.HWnd,1)
>SetForegroundWindow(_screen.HWnd)
>SetFocusAPI(_screen.HWnd)
>
>Not help for me ;(
>
>Any idea
>Thanks
>Denis
Imagination is more important than knowledge