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
    salih
    Public Sub CommPortTest_OnComm() Handles CommPortTest.OnComm
    'System.Windows.Forms.Application.DoEvents()
    Dim buffer As String
    'buffer = myarr.BinarySearch(myarr, "A")
    Select Case CommPortTest.CommEvent

    Case MSCommLib.OnCommConstants.comEvReceive
    'System.Windows.Forms.Application.DoEvents()
    buffer = CommPortTest.Input
    TextBox1.Text += buffer
    end select
    end sub

  2. #2
    Dick Grier Guest

    Re: OnComm Event

    Hi,

    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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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