ActiveX Control Property Pages
I've created an ActiveX control that uses the MSComm control to retrieve data
from a controller and now I want to add property pages to let the user change
the Com Port and Baud Rate.
The ActiveX control has the following properties:
Public Property Let CommPort(portnum As Integer)
MSComm.CommPort = portnum
Public Property Let BaudRate(baud As Long)
MSComm.Settings = Str(baud) & LTrim(",N,8,1")
When I add a property page, the following event code is added:
Private Sub PropertyPage_ApplyChanges()
SelectedControls(0).CommPort = txtCommPort.Text
SelectedControls(0).BaudRate = txtBaudRate.Text
This doesn't set the properties of the MSComm control. Any suggestions?
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL