Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Visual Basic (https://www.askmehelpdesk.com/forumdisplay.php?f=469)
-   -   Parellel port handling (https://www.askmehelpdesk.com/showthread.php?t=211818)

  • May 2, 2008, 09:53 AM
    kesavan
    Parellel port handling
    How can I get parallel port signal in visual Basic ?
  • May 12, 2008, 04:19 AM
    melondotnet
    I don't think you can, but you could always have your program switching between each port.

    Start Loop

    Check Port1

    Check Port2

    End Loop

    This is always the risk that you will not be able to be a client or server on separate ports, if the above doesn't work, try having separate forms checking each port, then have them send info to a main port via public properties.

    If none of this works, please post some code, and I will try and provide as much info as I can.

    Note: I use VB.NET 2005
    Note: I have a friend who uses VB 6
  • May 12, 2008, 05:59 AM
    Scleros
    Quote:

    Originally Posted by melondotnet
    I don't think you can, but you could always have your program switching between each port.

    The poster is referring to a parallel printer port and I'm guessing probably wants direct hardware access under Windows 2000 or later. I have no experience with doing this, but a quick Google seemed to indicate it was possible via a custom DLL or control or by writing a driver yourself with info from the Windows DDK. The How to access serial and parallel ports by using Visual Basic .NET article has some info on using Microsoft's control.

    What are you trying to do?
  • May 12, 2008, 08:38 AM
    melondotnet
    Sorry, I was talking about server/client ports.
  • May 12, 2008, 10:16 AM
    Scleros
    Quote:

    Originally Posted by melondotnet
    Sorry, I was talking about server/client ports.

    Yeah, I got that.:)

  • All times are GMT -7. The time now is 01:58 AM.