|
-
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
End Property
Public Property Let BaudRate(baud As Long)
MSComm.Settings = Str(baud) & LTrim(",N,8,1")
End Property
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
End Sub
This doesn't set the properties of the MSComm control. Any suggestions?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks