HtmlWindow::Confirm Method (String^)
Displays a dialog box with a message and buttons to solicit a yes/no response.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- message
-
Type:
System::String^
The text to display to the user.
Return Value
Type: System::Booleantrue if the user clicked Yes; false if the user clicked No or closed the dialog box.
Confirm displays a modal dialog box; the user will not be able to access the underlying HTML page without first closing this dialog box.
Although Confirm accepts Unicode text as input, the Internet Explorer script prompt will not display non-Latin language text appropriately on Windows 95, Windows 98, Windows ME or Windows NT due to operating system limitations. For more information, see INFO: Internet Explorer Script Prompts and MBCS/Unicode.
Copy the following HTML and save it into a form called orderForm.htm:
<HTML>
<BODY>
<FORM name="NewOrderForm">
Select Part Type:
<SELECT name="PartType">
<OPTION>AZ-3700
<OPTION>AZ-3701
<OPTION>AZ-3702
<SELECT><br>
Quantity: <INPUT type="text" name="PartQty" size="2" maxsize="2"><br>
Building/Desk:
<INPUT type="text" name="PartBuilding" size="2" maxsize="2"> /
<INPUT type="text" name="PartDesk" size="2" maxsize="2"><p>
<INPUT type="submit" value="Transmit Order">
</FORM>
</BODY>
</HTML>
The following code example displays a Confirm dialog box when the user submits NewOrderForm.
Available since 2.0