Software Developer's Kit - ChemDraw

Send comments on this topic
UseDocumentsDirectory Property
See Also 

Description

Member of ChemDrawControl.Preferences.

Sets and returns the flag to indicate whether the Open and Save dialogs should default to a specific directory.

Property type

Read-write property

Syntax

Visual Basic
Public Property UseDocumentsDirectory() As Boolean

Return Type

Boolean

Remarks

Sets and returns whether the Open and Save dialogs should default to a specific directory or not.

Example

'Modifies a value of preferences 
 Private Sub cmdApplication_click()
     ctlChemDraw.ActiveDocument.Activate
     Dim myApp As ChemDrawControl11Ctl.Application
     Set myApp = ctlChemDraw.Application
     myApp.Preferences.UseDocumentDirectory = True
 End Sub

See Also