Drop Down ControlCommit Selection(Int 32) Method
This can be called to select an item by index and hide the drop-down
Definition
Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
public void CommitSelection(
int idx
)VB
Public Sub CommitSelection (
idx As Integer
)C++
public:
void CommitSelection(
int idx
)F#
member CommitSelection :
idx : int -> unit Parameters
- idx Int32
- The index to select
Remarks
This will guarantee that the drop-down is closed prior to setting the new value so that the
drop-down doesn't block or hide dialog boxes that may get displayed in a user's event handler.