다음을 통해 공유


SetInputFormText Method

Topic Last Modified: 2006-11-30

The SetInputFormText method is used to change the text of the title and prompt fields and the text of the Accept and Cancel buttons in the New Folder and Rename Folder forms. The SetInputFormText method applies to the ExchangeTreeViewControl Class.

Syntax

Sub SetTextInputForm
(
ByVal inputBoxPrompt As String,
ByVal inputBoxAcceptButton As String,
ByVal inputBoxCancelButton As String,
ByVal inputBoxTitleRename As String,
ByVal inputBoxTitleNew As String
)
void SetTextInputForm
(
string inputBoxPrompt,
string inputBoxAcceptButton,
string inputBoxCancelButton,
string inputBoxTitleRename,
string inputBoxTitleNew
);

Parameters

inputBoxPrompt

The text that the prompt of the Rename Folder and New Folder forms will be changed to.

inputBoxAcceptButton

The text that the text of the Accept button will be changed to.

inputBoxCancelButton

The text that the text of the Cancel button will be changed to.

inputBoxTitleRename

The text that the title of the Rename Folder form will be changed to.

inputBoxTitleNew

The text that the title of the New Folder form will be changed to.

Property Value/Return Value

Returns VOID.

Exceptions

Remarks

The default prompt for the New Folder and Rename Folder input forms is "Enter the folder name."

The default text for the Accept button in the New Folder and Rename Folder input forms is "OK".

The default text for the Cancel button in the New Folder and Rename Folder input forms is "Cancel".

The default title for the Rename Folder input form is "Rename Folder".

The default title for the New Folder input form is "New Folder".

Example

In the following Visual Basic .NET example, the title of the New Folder form is changed to "Create New Folder". The default text values for the Rename Folder form title, the Accept and Cancel buttons, and the New Folder and Rename Folder form prompts do not change.

SetTextInputForm("Enter the folder name.", _
                 "OK", _
                 "Cancel", _
                 "Rename Folder", _
                 "Create New Folder")

In the following C# example, the title of the New Folder form is changed to "Create New Folder". The default text values for the Rename Folder form title, the Accept and Cancel buttons, and the New Folder and Rename Folder form prompts do not change.

SetTextInputForm("Enter the folder name.",
                 "OK",
                 "Cancel",
                 "Rename Folder",
                 "Create New Folder");