ISDBUI::NewActiveX

From MediaMonkey Wiki
Revision as of 22:08, 5 March 2008 by Steegy (talk | contribs) (Linkified the object)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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