Command Button Control

A command button, also known as a push button, is a clickable control.

Client support

   Newlook Smartclient

   Newlook Server

Use

When clicked, a command button can be configured to run a specific macro or script, hence they are useful if you need to provide users with the option to execute some logic. When a command button is clicked, the OnClick event is triggered. A macro or script can be assigned to the OnClick property of the button to perform the logic required.

The following are ways to select a command button at run-time:

Use the Caption property to display text on the button itself and the ToolTipText property to provide information when the user hovers over the button.

TIP!

The PictureBox and Label controls also recognize the Click event, so you can use them as an alternative to a command button.

Material skin considerations

When the material skin is enabled in your solution, by default command buttons will be rendered as flat buttons in your specified primary color. If the ForeColor Property or BackColor Property have been set then these colors will be respected. The UseSecondaryColor Property renders the button in your specified material secondary color, which is useful if you wish to highlight a particular button on the screen.

The following command button properties are ignored when the material skin is enabled: HoverColor Property, BorderColor Property, BorderStyle Property, BorderWidth Property and UseHoverColor Property.

Material skin

Classic skin

See Also

Label control | PictureBox control 


© 2004-2021 looksoftware. All rights reserved.