This procedure disables the ShowTerminalFrame property. When an attempt is made to modify this property, an error is returned. After this procedure runs, the Terminal Frame check box (on the Option tab in the Display Setup dialog box) is also disabled.

Sub DisableShowTerminalFrame

With Session

'This command disables the ShowTerminalFrame property

.SetPropertyProfile "ShowTerminalFrame", False


'Because ShowTerminalFrame is disabled, this line generates

'an error

.ShowTerminalFrame = True

End With

End Sub