Results 1 to 3 of 3

Thread: com port question

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    10

    com port question

    I have set the com port as new rs232, this is the code i wrote "Private m_CommPort As New Rs232" but when i compile it say rs 232 is not defined, wat is the code shld i write to define it?

  2. #2
    Fanatic Member namrekka's Avatar
    Join Date
    Feb 2005
    Location
    Netherlands
    Posts
    639

    Re: com port question

    Where does "rs232" come from?

  3. #3
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: com port question

    Put an MSCOMM control on your form. Look in the help file for sample code - they have pretty good samples for sending and receiving data. You could just copy those routines and change what you need (COM port, speed, etc.)
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width