ISDBUICommon::DestroyControl

From MediaMonkey Wiki
Revision as of 02:47, 9 May 2008 by MoDementia (talk | contribs)
Jump to: navigation, search

CoClass SDBUICommon, Interface ISDBUICommon

Sub DestroyControl


Method description

This method destroys a control, it will be removed from UI, you should no longer access properties and methods of its COM object, because it would result in errors.

Introduced in MediaMonkey version 3.0.


Apparently this is ONLY for use with browser controls as used in AMG Search script.

All other requirements for removal of controls should use something like this

Set Form1 = SDB.Objects("SyncTheSyncForm")
If Not (Form1 Is Nothing) Then
  Form1.Common.Visible = False
  Form1.Common.ControlName = ""
  Set SDB.Objects("SyncTheSyncForm") = Nothing
End If