 |
|
|
Topic: FAQ - Add the Comm32 control to the VB.Net toolbox ?
|
By: Support | Posted on: Feb 10 2010 at 10:32:11 PM | Install the Comm32 component on your computer.
Open your VB.Net project and click with the RIGHT mouse button on the toolbox area of the IDE and select the option to Add new components. A small window appears showing available components. Select the COM tab (Comm32 is a COM component) and the select the Comm32 component and it will be added to your toolbox where you can drag an instance of Comm32 onto your form.
Syntax.
.Net can add the prefix "Ax" to ActiveX control so you'll see names such as AxComm32 etc.
Property names will change in the .Net environment. each property will be prefixed by the text get_ or set_
Comm32 Properties also behave like 'Functions' in the .Net environment.
So, when SETTING the OutBufferSize property you would use the .Net syntax
object.set_OutBufferSize(4096)
instead of
object.OutBufferSize = 4096
and when GETTING the OutBufferSize you'd use the syntax
n = object.get_OutBufferSize
instead of
n = object.OutBufferSize
I'm sure you'll agree that this syntax change is very simple to work with
| |
|