473,659 Members | 2,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Open Printers Folder

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

Apr 13 '06 #1
6 3790

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


PrintDialog1.Sh owDialog()

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.c om> wrote in message
news:11******** **************@ g10g2000cwb.goo glegroups.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.c om> schrieb:
How do you open the Printers folder from code in VB.NET?


\\\
Imports System.Diagnost ics
....
Process.Start(" rundll32.exe", "shell32.dll,Co ntrol_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,Co ntrol_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
1124
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 to find a way to do this using the "FolderBrowser class" I' we also tried to go by the shell methods but haven't found anything yet. Might be that I haven't investigated the methods properly but I do need the help..
2
27135
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 can open the cash drawer from my VB.NET application? The printer driver requires me to use a soft font named "control" in the printer, and print the letter "A", but if I'm right, the .NET framework does not support using soft fonts...
11
9874
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 dialog for the current printer, so that my current PrintDocument.PrinterSettings will be set according to the User choices ? Thanks -Pamela
2
1614
by: Paul | last post by:
How do you open the Printers folder from code in VB.NET?
10
14543
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 are going through the toolbar and clicking File, Open (or new) or whether you right click on the desktop and click "new" - the PC will hang the second the mouse touches the option before it is even clicked. It will hang for 25-30 seconds or longer,...
0
2880
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. Occasionally, some random user will be unable to open any reports. On that particular machine, no reports in any Access application will open in any mode, even design mode. A couple of years ago we banged our heads against this until we found an odd...
0
1234
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 works, but won't handle a non standard system configuration. Is there a better way? Can I get the system roor folder and build the path, or is there a simpler solution? Thanks Steve
0
1387
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 I'm off base, please feel free to let me know. I performed a test printing the font of "OCR A Extended" to a printer in my office but didn't reproduce the problem on my side. The font was printed properly in my test. The model of the printer I...
3
28492
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 have this class in my project: using System; using System.IO; using System.Runtime.InteropServices; namespace PrintDataGrid /* For a standard cash drawer, there's a physical cable that runs from the cash drawer and plugs into the receipt...
0
8746
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8523
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6178
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2749
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.