Adds a third-party CPropertyPage to
ISWPropertySheet and adds an ActiveX control on top of the page.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddActivePage( _
ByVal Title As System.String, _
ByVal ProgId As System.String, _
ByVal LicenseKey As System.String _
) As System.Integer |
Visual Basic (Usage) | |
---|
Dim instance As ISWPropertySheet
Dim Title As System.String
Dim ProgId As System.String
Dim LicenseKey As System.String
Dim value As System.Integer
value = instance.AddActivePage(Title, ProgId, LicenseKey) |
C++/CLI | |
---|
System.int AddActivePage(
& System.String^ Title,
& System.String^ ProgId,
& System.String^ LicenseKey
) |
Parameters
- Title
- Title of CPropertyPage
- ProgId
Name, ProgID, or CLSID of the ActiveX control (see Remarks)
- LicenseKey
- License key for the ActiveX control
Return Value
Index of CPropertyPage on ISWPropertySheet
Example
'VBA Main module
Dim swApp As SldWorks.SldWorks
Option Explicit
Sub main()
UserForm1.Show (swModeLess)
End Sub
'Insert UserForm module to VBA application
Option Explicit
Public WithEvents swAppEvents As SldWorks.SldWorks
Dim swApp As SldWorks.SldWorks
Private Function swAppEvents_PropertySheetCreateNotify(ByVal Sheet As Object, ByVal sheetType As Long) As Long
Dim msrcSWPropertySheet As SWPropertySheet
Set msrcSWPropertySheet = Sheet
Call msrcSWPropertySheet.AddActivePage("PropertySheetExample2", "", "")
End Function
Private Sub UserForm_Initialize()
Set swApp = Application.SldWorks
Set swAppEvents = swApp
End Sub
Remarks
See Also
Availability
SOLIDWORKS 2004 SP4, Revision Number 12.4