Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Win Display and Printer Settings
Message
De
08/03/1999 15:45:42
Ian Matthews
Up & Running Technologies Inc
Chestermere, Alberta, Canada
 
 
À
08/03/1999 14:05:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00195227
Message ID:
00195319
Vues:
19
>>I would like to know code that will allow a user call the Windows Display Settings dialog box from a VFP button. Further, it would be nice if someone knew how to set the focus on the APPEARANCE tab.
>>
>>I would also like to know how to call the PRINTERS window and NETWORK NEIGHBOURHOOD.
>>
>
>You can use several methods, none of them must use API calls. The Display Settings Dialog is a .CPL files, which can be launched by the internal RUN command (there was a thread on this several weeks back; the display applet would be RUN /N CONTROL DESK.CPL); the easiest way to access the Network Neighborhood (not the Network Properties sheet) is via the Shell.Application automation object's BrowseForFolder method (see my FAQ entry on an Enhanced GETDIR using the Shell.Application object). I suspect that the Printer Dialog is available from Shell.Application or Wscript.Shell, but I'm not certain of this; check the Shell Object and WshShell Object entries in the MSDN.
>
Thanx for the info.

I now have the .CPL calls functioning. I have spent about 30 mins looking into SHELL.APP and BROWSEFORFOLDER but I can not figure out how to use it.

If someone knows the syntax that for getting NETWORK NEIGHBOURHOOD and/or PRINTERS windows to appear I would love to read it but these are not critical functions, so I am not going to spend anymore time on it myself.

Thanx for the assistance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform