ISDBUI::NewActiveX

From MediaMonkey Wiki
Jump to: navigation, search

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