Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Browser opening behind my application
Message
 
To
14/10/2002 16:49:58
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00711121
Message ID:
00711263
Views:
7
>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
------------------
Jose Marcenaro
Tercer Planeta - Argentina
http://www.tercerplaneta.com
Previous
Reply
Map
View

Click here to load this message in the networking platform