ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

DIAdem-Hilfe

Method: Refresh for ComboBox

  • Aktualisiert2024-09-12
  • 2 Minute(n) Lesezeit

Method: Refresh for ComboBox

Triggers the EventRefresh event in user dialog boxes. The method starts the methods RefreshText and RefreshValue. You can use this method to refresh the ComboBox control, when another control changes the data of this control.

Object.Refresh
ObjectComboBox
Object with this method

The following example triggers the EventRefresh event for the ComboBox2 selection list when ComboBox1 changes:

Sub ComboBox1_EventChange(ByRef This)
  ComboBox2.Value = 2
  Call ComboBox2.Refresh
End Sub