message class : YesNo(string) method

Description

Displays a message dialog with the Yes and No button.

Syntax

instance.YesNo(string mes)

Arguments

ClassNameDescription
stringmesMessage.

Return value

ClassDescription
intA value that indicates the type of button pressed.

Sample code

1:

message m = new message();

2:

int result = m.YesNo("message");

Notes

The dialog box is modal. Blocks other actions in the application until the dialog is closed.


If the Yes button is pressed, 6 is returned.

If the No button is pressed, 7 is returned.

Links for reference

None.

Copyright © Cooker All rights reserved.