>In my Help menu i would like to place an item that would launch my companies website in the users browser.
>
>I tried this by creating a menu item/procedure of:
>
>declare INTEGER ShellExecute in shell32 INTEGER handle, STRING @ oper, STRING @ ifile, STRING @ iparam, STRING @ ipath, INTEGER showcmd
>shellexecute(0,"open",'http://www.mycompany.com',"","",1)
>this works great except that it always, without fail, opens the web browser behind my application. THe user has to be very observant to notice that anything happened at all. And is forced to click on the toolbar to make it the current window, or minimize my application.
>
>any ideas??
Try placing "_Screen.WindowState = 1" after your shellexecute
Regards
Jose