Software Developer's Kit - ChemDraw

Send comments on this topic
Parent Property
See Also 

Description

Member of ChemDrawCtl.

Returns the parent of the control.

Property type

Read-only property

Syntax

Visual Basic
Public Property Parent() As Application

Return Type

Remarks

Application is defined as the parent of the ChemDrawCtl. The parent property of the object application enables all the application properties. 

Example

'Application
 Private Sub cmdCommand_click()
     Dim myApp As ChemDrawControl11Ctl.Application
     Set myApp = ctlChemDraw.Application 
     'will show "ChemDraw Pro Control"
     cmdCommand.Caption = ChemDrawCtl.Parent 
 End Sub

See Also