Comm32 Logo
Home Button   

Topic:   multiple instances of ocx on a VB6 form

By: DavePosted on: Mar 15 2011 at 08:02:28 PM
Are there any known issues with having multiple instances of your control on a VB6 form or having a control array of your ocx control? In my situation each instance would reference a different COM port which in turn would control a different serial device.

By: SupportPosted on: Mar 15 2011 at 08:25:38 PM
Multiple instances or an array shouldn't be a problem.

By: GuestPosted on: Mar 16 2011 at 12:15:16 AM
ok great. Two more questions:

Can I host the ocx controls on a form that is compiled into a DLL where the DLL is included/referenced thru the main VB6 application?

Can I declare the control programmatically or do I need to have a form to put the ocx on?

By: Support Posted on: Mar 16 2011 at 11:04:02 AM
You need to place the OCX on a form. The parent/container must be a windows form.

The free trial is fully functional. Take the download and try it to see how it works.