ISDBUI::NewActiveX: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Linkified the object) |
||
Line 1: | Line 1: | ||
{{MethodDeclaration|SDBUI|ISDBUI|Property Get NewActiveX(Owner As Object, ProgID As String) As | {{MethodDeclaration|SDBUI|ISDBUI|Property Get NewActiveX(Owner As Object, ProgID As String) As [[SDBUIActiveX]]}} | ||
===Parameters=== | ===Parameters=== |
Latest revision as of 22:08, 5 March 2008
CoClass SDBUI, Interface ISDBUI
Property Get NewActiveX(Owner As Object, ProgID As String) As SDBUIActiveX
Parameters
Name | Type | Description |
---|---|---|
Owner | Object | Parent control of the newly created control. |
ProgID | String | ProgID of the control to be created, e.g. 'Shell.Explorer' for a web browser from IE. |
Property description
Creates a new ActiveX control.
Example code
' An example of how to create a web browser control (that can display any HTML page).
Set WB = UI.NewActiveX( Form, "Shell.Explorer")
WB.Common.Align = 5 ' Fill all client rectangle
WB.Interf.Navigate "about:" ' A trick to make sure document exists
Set Doc = WB.Interf.Document
Doc.Write "Hello world!"
Doc.Close