Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Browser opening behind my application
Message
 
À
14/10/2002 16:49:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00711121
Message ID:
00711263
Vues:
8
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform