increase TabIndex of cancel and ok buttons
This commit is contained in:
@@ -43,10 +43,15 @@ public partial class FlyoutBase : UserControl
|
||||
public FlyoutBase()
|
||||
{
|
||||
InitializeComponent();
|
||||
ParentChanged += FlyoutBase_ParentChanged; ;
|
||||
ParentChanged += FlyoutBase_ParentChanged;
|
||||
|
||||
// Change TabIndex to a very high value
|
||||
// -> prevent conflicts with controls based on this class
|
||||
button_Cancel.TabIndex = int.MaxValue - 1;
|
||||
button_Cancel.TabIndex = int.MaxValue;
|
||||
}
|
||||
|
||||
private void FlyoutBase_ParentChanged(object sender, System.EventArgs e)
|
||||
private void FlyoutBase_ParentChanged(object? sender, EventArgs e)
|
||||
{
|
||||
var frm = FindForm();
|
||||
if (frm != null)
|
||||
|
||||
Reference in New Issue
Block a user