Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How Can i Use Comm in .NET????

How Can i Use Comm in .NET????

Scheduled Pinned Locked Moved Visual Basic
questioncsharphelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi, Is there any one to help me out using of Comm events in .NET.i just want to know which event .NET is equilant to "OnComm" event in VB6.or else tell me where exactly i would be able to get more info about Comm ,as .NET books are not covering this area.I would be eagerly waiting for some kind of help.. pls

    E 2 Replies Last reply
    0
    • L Lost User

      Hi, Is there any one to help me out using of Comm events in .NET.i just want to know which event .NET is equilant to "OnComm" event in VB6.or else tell me where exactly i would be able to get more info about Comm ,as .NET books are not covering this area.I would be eagerly waiting for some kind of help.. pls

      E Offline
      E Offline
      elRaptor
      wrote on last edited by
      #2

      If you are trying to use the Serial comm, for serial communication, I download a lib. that you can use just, tell me and I will sended to you. ElRaptor

      1 Reply Last reply
      0
      • L Lost User

        Hi, Is there any one to help me out using of Comm events in .NET.i just want to know which event .NET is equilant to "OnComm" event in VB6.or else tell me where exactly i would be able to get more info about Comm ,as .NET books are not covering this area.I would be eagerly waiting for some kind of help.. pls

        E Offline
        E Offline
        elRaptor
        wrote on last edited by
        #3

        Hello Shihab: I thing you are missing a line you need tell the library to read from the port and how many bytes your reding, this is the part of the code I am using to read: Dim Cadena as string ' As long as there is information, read one byte at a time and ' Save it. While (ObjComm.Read(1) <> -1) ' Save data read Cadena = Cadena + Chr(ObjComm.InputStream()) End While First I check If there is information to read and I tell the function to read only one byte, then I read the byte and I add the Character to a string. You are using the InputStreamString, and if you look in the code this function uses the InputStream function to read each byte, I havent use this Property but I thing that you need to define the quantity of bytes to be read. Hope this helps JA PS: Happy New Year!!!!!! :-O

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups