VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



CommConfigDialog

by Wolfgang Lindke (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

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!
Code 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

Download CommConfigDialog

Download CommConfigDialog (7 KB)

CommConfigDialog Comments

No comments have been posted about CommConfigDialog. Why not be the first to post a comment about CommConfigDialog.

Post your comment

Subject:
Message:
0/1000 characters