CloseButton Property
Property that allows you to get or set whether the dialog box
has a close button (the "X" in the top-right corner of the window).
object.CloseButton
= new_state
existing_state = object.Closebutton
Arguments
|
object |
|
Required. A
variable containing a dialog object created by calling CreateObject or
new ActiveXControl. |
|
new_state |
|
Required. A True or False value. |
|
existing_state |
|
A variable to receive the True or False value. |
Remarks
Make sure you provide another means to close the dialog box--such as a
push button (using the AddButtons method)--before
you remove the close button from the window..
Example
Sub main
Set Dialog = CreateObject("TPFSoftware.ScriptDialog")
Dialog.AddButtons "button", Array("OK", "Cancel")
Dialog.CloseButton = False
Set Result = Dialog.Execute
End Sub
|