FaxMan Jr. Controls
AutoDetect Method
See Also  Send comments on this topic.
FaxFinder Object : AutoDetect Method

Glossary Item Box

Description

Causes the FaxMan Jr. control to detect installed faxmodems.

Syntax

Visual Basic
Public Sub AutoDetect() 

Remarks

This method causes the control to iterate through all installed comm ports and determine whether there is a faxmodem attached to that port. Upon completion of this method the DeviceCount property will be set to the number of FaxModems found and the Item property can be queried to determine the attributes of the found ports.

 

In general, your app will want to auto-detect faxmodems rarely; certainly, you will not want to auto-detect on a timer, or even every time your application starts up. FaxManJr keeps a record of which faxmodems currently installed, and doesn't need to have this refreshed unless a device is added or removed. For this reason, you may want to add an option to your application to allow the user to perform an auto-detect at their discretion, since hopefully the user will have some idea when faxmodems are altered.

See Also