Description: These methods are used to save and restore all properties of this component, except StateFileUser. If you want to save to a file other than the default (WindowsSystemFolder\PDFCX.INI ) then you should set the StateFileUser property.
Parameters: None
Return Value: Boolean, TRUE if successful, otherwise FALSE.
See Also: StateFileUser
Example:
Private Function LoadSettingsFile() As Boolean
If (FileExists(cbStateFileUser.Text) = False) Then
' Handle error
Call MsgBox("Settings File does not exist: " + cbStateFileUser.Text, vbOKOnly)
LoadSettingsFile = False
Exit Function
End If
pdfcx.StateFileUser = cbStateFileUser.Text ' Make sure we have the selected User State file
If (pdfcx.LoadSettingsUser = False) Then
LoadSettingsFile = False
Exit Function
End If
End Function
Private Sub cmdApply_Click()
pdfcx.StateFileUser = cbStateFileUser.Text ' Make sure we have the selected User State file
If (pdfcx.SaveSettingsUser = False) Then
Call MsgBox("Unable to save to file, check that folder exists and/or user rights.", vbOKOnly)
Exit Sub
End If
End Sub