How do i bring a window (e.g from IE) to the top? I tried it like this
Code:
windowhandle = FindWindow(vbNullString, "Mywebsite - Microsoft Internet Explorer")
If windowhandle <> 0 Then
     BringWindowToTop windowhandle 
     DoEvents
     SetForegroundWindow windowhandle 
End If
but it does not work properly. Sometimes the window comes to top, the other time the window is blinking in the taskbar, but it remains in background.