OnComm Event

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: OnComm Event

  1. #1
    salih Guest

    OnComm Event

    Dear All
    I am setting up the com parameter but i am not opening the Com port
    i am waiting for ComEvReceive
    but when i send the data to the com
    below the event does not fires
    Please can you tell me why?
    Many Thanks
    Public Sub CommPortTest_OnComm() Handles CommPortTest.OnComm
    Dim buffer As String
    'buffer = myarr.BinarySearch(myarr, "A")
    Select Case CommPortTest.CommEvent

    Case MSCommLib.OnCommConstants.comEvReceive
    buffer = CommPortTest.Input
    TextBox1.Text += buffer
    end select
    end sub

  2. #2
    Dick Grier Guest

    Re: OnComm Event


    Is the MSComm .RThreshold property set = 1?

    Richard Grier (Microsoft Visual Basic MVP)

    See www.hardandsoftware.net for contact information.

    Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
    Edition ISBN 1-890422-27-4 (391 pages) published February 2002.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center