Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Win Display and Printer Settings
Message
From
08/03/1999 15:45:42
Ian Matthews
Up & Running Technologies Inc
Chestermere, Alberta, Canada
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00195227
Message ID:
00195319
Views:
18
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform