Defines whether the dropdown opens when the control receives the focus.
Class: SftBox
Namespace: Softelvdm.SftBoxNET
Assembly: Softelvdm.SftBoxNET
public bool DropOnFocus { get; set; }
Public Property DropOnFocus As BooleanTrue to open the dropdown, False otherwise.
The default value is False.
Defines whether the dropdown opens when the control receives the focus.
private void checkHotTrack_CheckedChanged(object sender, EventArgs e) {
foreach (SftBox box in boxes)
box.HotTrackSelection = checkHotTrack.Checked;
}
private void checkDropOnFocus_CheckedChanged(object sender, EventArgs e) {
foreach (SftBox box in boxes)
box.DropOnFocus = checkDropOnFocus.Checked;
}
}
// The object the lookup combo box is bound to.
public class Order : INotifyPropertyChanged {
private int countryId;
public int CountryId {
get { return countryId; }
For Each box As SftBox In boxes
box.HotTrackSelection = CheckHotTrack.Checked
Next
End Sub
Private Sub CheckDropOnFocus_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs) Handles CheckDropOnFocus.CheckedChanged
If boxes Is Nothing Then Return
For Each box As SftBox In boxes
box.DropOnFocus = CheckDropOnFocus.Checked
Next
End Sub
End Class
' The object the lookup combo box is bound to.
Public Class OrderSee Also SftBox Class | Classes | SftBox/NET 3.0