Click or drag to resize

WarningBox Class (Typed)

X#
Create a warning message box.
Inheritance Hierarchy
Object
  VObject
    TextBox
      WarningBox

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax
 CLASS WarningBox INHERIT TextBox
Request Example View Source

The WarningBox type exposes the following members.

Constructors
  NameDescription
Public methodWarningBox
Create a warning box.
Top
Properties
  NameDescription
Public propertyBeep
A logical value indicating whether to use a system default beep when displaying the text box. TRUE indicates that there will be a beep; FALSE indicates that there will be no beep.
(Inherited from TextBox.)
Public propertyCaption
A string value representing the TextBox caption.
(Inherited from TextBox.)
Public propertyMessage
A string value representing the TextBox message.
(Inherited from TextBox.)
Public propertyType (Inherited from TextBox.)
Top
Functions
  NameDescription
Public methodDestroy
Free memory resources allocated for a VObject object and its derived objects.
(Inherited from VObject.)
Public methodShow
Display this message box and return a value indicating how it was closed.
(Inherited from TextBox.)
Top
Globals and Defines
  NameDescription
Public fieldoCargo
Cargo slot.
(Inherited from VObject.)
Top
Remarks
A warning message box is a window that displays a user-defined caption in the title bar, the text of the warning, and a warning icon. These boxes are typically used to alert users to a potential error or undesirable situation. For example, you might display a warning box to confirm a delete request on a particular file (like, "Are you sure you want to delete COMMAND.COM?").
Tip Tip
A warning box is application modal; therefore, the user must acknowledge it before continuing with the application. When the warning box closes, focus is returned to its owner window.
See Also