VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

CommConfigDialog

Wolfgang Lindke  (1 Submission)   Custom Controls/Forms/Menus   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

Wrapper for CommConfigDialog API call, makes it very easy to show the system configuration dialog for serial ports. Just set the CommPort property, call the ShowCommConfig method and the dialog is displayed. After the user clicks OK, simply read the Settings property and paste this into the MSComm.Settings property. No hassle with long API declarations or tedious settings of system variables...

Inputs
Set CommPort property to the same value as your MSComm control and execute the ShowCommConfig method.

Assumes
Compile the control, copy it to your system directory, register it into Windows with "regsvr32 edldlg32.ocx", then you can use it in the VB IDE (Components tab, click "Add" and then check "CommConfigDialog"). Paste it onto your form together with an MSComm control and you're set!

Returns
Read Settings property as follows: MSComm1.Settings=CommComfigDialog1.Settings Also has single properties for baud rate, databits, handshake, parity, stop bits.

Side Effects
None that I'm aware of...

API Declarations
Type DCB, Type COMMCONFIG, API call CommConfigDialog

Rate CommConfigDialog (5(5 Vote))

Download CommConfigDialog

CommConfigDialog Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters