Method SetButtons
SetButtons(params KnownButton[])
Configures the visibility of buttons based on the specified set of known buttons.
public virtual void SetButtons(params KnownButton[] buttons)
Parameters
buttonsKnownButton[]An array of KnownButton values representing the buttons to be displayed. This parameter cannot be null.
Remarks
This method updates the visibility of predefined buttons such
as 'Ok', 'Apply', and 'Cancel', as well as any additional buttons specified in
the buttons array. Buttons not
included in the array will be hidden.
Exceptions
- ArgumentNullException
Thrown if
buttonsis null.
SetButtons(MessageBoxButtons)
Configures the panel with the specified button layout.
public virtual void SetButtons(MessageBoxButtons buttons)
Parameters
buttonsMessageBoxButtonsThe MessageBoxButtons enumeration value that specifies the button layout to display.
Remarks
This method converts the specified buttons
to a format suitable
for the panel and applies the configuration.