473,326 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Open Printers Folder

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

Apr 13 '06 #1
6 3774

"Paul" <pw****@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
How do you open the Printers folder from code in VB.NET?


PrintDialog1.ShowDialog()

Apr 13 '06 #2
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.

Apr 13 '06 #3
You mean the data contained in there? Or actually pop up the Control Panel
applet?

Jeff
"Paul" <pw****@gmail.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.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.

Apr 13 '06 #4
"Paul" <pw****@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/>
Apr 13 '06 #5

http://vbnet.mvps.org/index.html?cod...ontrolpnl4.htm
Paul ha scritto:
How do you open the Printers folder from code in VB.NET?


Apr 13 '06 #6
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.

Apr 14 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Nicklas | last post by:
Hi I need to open a folder window with a path decided by me. Eg. "C:\strangeFolder\myown". I.e. NOT a predefined folder defined by FolderId (e.g. MyDocuments, Printers etc.) I haven't managed...
2
by: Tor Inge Schulstad | last post by:
Hi I'm developing a POS software using an Epson TM-T88iii printer with a cash drawer connected to the printer. The printer is connected via a usb interface to the pc. Can anyone tell me how I...
11
by: pamelafluente | last post by:
I am doing my own PrintDialog, and have placed there a combo with the printer names, as in the PrintDialog provided by VB.NET. Here is the question: how do I open the native windows printer...
2
by: Paul | last post by:
How do you open the Printers folder from code in VB.NET?
10
by: lkr0210 | last post by:
Hello, I am having a huge problem with one of our PC's on the network. When this PC is connected to the network, it is very slow to open or create a new file or folder. It doesn't matter if you...
0
by: diane | last post by:
I have multiple multi-user databases with both the front and back ends residing on my network. Each user has his/her own front end mdb, all of which point to a central backend mdb. ...
0
by: Steve in Albury | last post by:
How can I show the printers control panel applet from code in dotnet? At present I am just using a System::Diagnostics::Process::Start call to launch control.exe with the parameter printers. It...
0
by: Linda Liu[MSFT] | last post by:
Hi Al, Based on my understanding, you have an application which prints something to printers. The problem is that the font of "OCR A Extended" cannot be printed properly on some of printers. If...
3
by: gggram2000 | last post by:
Hi, I need some assistance. I'ved been searching the web for days now and can't find an example that really helps me. I have an EPSON TM-T88IV printer through which I want to open a cash drawer. I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.