Home All Groups Group Topic Archive Search About
Author
13 Apr 2006 5:38 PM
Paul
How do you open the Printers folder from code in VB.NET?

Author
13 Apr 2006 6:57 PM
Homer J Simpson
"Paul" <pwh***@gmail.com> wrote in message
news:1144949883.420066.142610@u72g2000cwu.googlegroups.com...

> How do you open the Printers folder from code in VB.NET?

PrintDialog1.ShowDialog()
Author
13 Apr 2006 7:38 PM
Paul
No, sorry for the confusion...I'm not trying to print something.  I
need the Printers folder that is found in the Control Panel.  Go to the
Control Panel and you will see an icon for the Printers Folder.  That
is what I need.
Author
13 Apr 2006 8:22 PM
Jeff Dillon
You mean the data contained in there? Or actually pop up the Control Panel
applet?

Jeff
Show quoteHide quote
"Paul" <pwh***@gmail.com> wrote in message
news:1144957114.165979.280430@g10g2000cwb.googlegroups.com...
> No, sorry for the confusion...I'm not trying to print something.  I
> need the Printers folder that is found in the Control Panel.  Go to the
> Control Panel and you will see an icon for the Printers Folder.  That
> is what I need.
>
Author
13 Apr 2006 10:17 PM
Herfried K. Wagner [MVP]
"Paul" <pwh***@gmail.com> schrieb:
> How do you open the Printers folder from code in VB.NET?

\\\
Imports System.Diagnostics
....
Process.Start("rundll32.exe", "shell32.dll,Control_RunDLL main.cpl @2")
///

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
13 Apr 2006 11:07 PM
tommaso.gastaldi
http://vbnet.mvps.org/index.html?code/system/controlpnl4.htm


Paul ha scritto:

Show quoteHide quote
> How do you open the Printers folder from code in VB.NET?
Author
14 Apr 2006 2:33 PM
Paul
Thanks all!

Herfried, the "shell32.dll,Control_RunDLL main.cpl @2" argument did not
work.  It didn't do anything.  But tommaso's link gave another argument
that did.