Visual Basic: Multimedia MCI Control
ButtonEnabled Property (Multimedia MCI Control)
See Also Example Applies To
Determines if a button in the control is enabled or disabled (a disabled button appears dimmed).
Syntax
[form.]MMControl.ButtonEnabled[ = {True | False}]
Remarks
The effects of the ButtonEnabled properties are superseded by the Enabled and AutoEnable properties. Individual ButtonEnabled properties enable or disable the associated buttons in the Multimedia MCI control when the Multimedia MCI control is enabled (Enabled property set to True) and the AutoEnable property is turned off (set to False).
For this property, Button may be any of the following: Back, Eject, Next, Pause, Play, Prev, Record, Step, or Stop. For example, to disable the Play button, use:
[form.]MMControl.PlayEnabled = False
To check whether the Record button is enabled, use:
If [form.]MMControl.RecordEnabled Then ..
The following table lists the ButtonEnabled property settings for the Multimedia MCI control.
Setting | Description |
False | (Default) Disables (dims) the button specified by Button. This button's function is not available in the control. |
True | Enables the button specified by Button. This button's function is available in the control. |
Data Type
Integer (Boolean)