Results 1 to 2 of 2

Thread: serial control

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Location
    USA
    Posts
    13

    serial control

    Hi

    The attached activex control worked as an exe. I'm getting my own error that the comport is already open. Can anyone help me?

    Thanks,
    Julie
    Attached Files Attached Files

  2. #2
    New Member
    Join Date
    Jul 2001
    Posts
    8

    You are trying to open port 0...

    I'm not sure if you are using these codes in a usercontrol object, but i think you do.
    In UserControl object use UserControl_Initialize instead of Form_Load. In your code, Form_Load is not initialized so
    ComPort remains 0 as it is declared as an integer. If you replace Form_Load as UserControl_Initialize the error disappears. I tried and it worked.
    I hope, i didn't misunderstood.

    Alper

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