Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to control the Parallel port with C# 2005

Status
Not open for further replies.

carlossan

Programmer
Dec 10, 2005
18
CA
Hi,

Looking on the Internet, I've found many references pointing that Visual Studio 2005 provides a class to control the PC's parallel port. I can't find that class.

Any ideas please

Thanks

Carlos
 
What kind of "control" to you wish to exercise over the port? The only thing I can think of doing with a parallel port is sending data to it: printing.

Look at the System.Drawing.Printing namespace and see if it contains what you need.

Thomas D. Greer
 
Thomas,

Thanks for your answer. I looked at the methods of System.Drawing.Printing but it seems it doesn't provide what I'm looking for.

What I'm trying to do is to control the status of the data pins of the PC's parallel port, so I can connect there some LEDs. I've found several postings on Internet about this subject, but none of them done in VS 2005 and in those same postings I have found the comment that VS 2005 "will have" a special class to control the parallel port. Well, VS2005 is here, so I was wondering how to solve this.

Thanks,

Carlos
 
Read Parallel Port Complete: Programming, Interfacing & Using the PC'S Parallel Printer Port By Jan Axelson.


The COM objects used are still, and will always continue to be, compatible with .NET

COM is not going any where any time soon. So if you can't find what you want in .NET just register the right COM object and call it from C#

Walid Magd (MCP)

The primary challenge of every software development team is to engineer the illusion of simplicity in the face of essential complexity.
-Grady Booch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top