DIAdem Help

Method: Refresh for Button

  • Updated2024-09-12
  • 2 minute(s) read

Method: Refresh for Button

Triggers the EventRefresh event in user dialog boxes. You can use this method to refresh the Button control, when another control changes the data of this control.

Object.Refresh
ObjectButton
Object with this method

The following example assigns the current status of the CheckBox1 checkbox to the Button1 control. The example then triggers the EventRefresh event for Button1. This refreshes the button. Therefore, the button is always enabled if the checkbox is selected.

Sub CheckBox1_EventChange(ByRef This)
  Button1.Enable = Checkbox1.Value
  Call Button1.Refresh
End Sub