Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KryptonTextBox Validate event is invoked twice #231

Open
overlinejota opened this issue Jan 16, 2022 · 0 comments
Open

KryptonTextBox Validate event is invoked twice #231

overlinejota opened this issue Jan 16, 2022 · 0 comments

Comments

@overlinejota
Copy link

overlinejota commented Jan 16, 2022

A simple form with a KrytonTextBox and a button.
The next code wave twice when KryptoTextbox1 loses focus:

namespace AppForm{
    public partial class Form1 : Krypton.Toolkit.KryptonForm{
        public Form1() {
            InitializeComponent();
        }            
        private void kryptonTextBox1_Validated(object sender, EventArgs e) {
            MessageBox.Show("Error","Hello");
        }
    }
}

private void InitializeComponent() {
	...
	this.kryptonTextBox1.Validated += new System.EventHandler(this.kryptonTextBox1_Validated);
	...
}

Thanks;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant