question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: KryptonTextBox `Validate` / `Validating` / `KeyUp` events are invoked twice

See original GitHub issue

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;

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
Wagnerpcommented, Jun 25, 2022

@Smurf-IV Ok, will broadcast a message out on Discord too

1reaction
Smurf-IVcommented, Jun 25, 2022

I’m going to focus on just this control, so that it can be validated by @overlinejota as soon as a fix is published. Otherwise there would be too many controls updated tat would remain untested fro a long time. @Wagnerp will need something on the landing page asking for instances of “Double events” to be raised ASAP so that they can be worked on in turn with active users ready to “Test” the result.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

jQuery: textbox keyup firing twice
I'm having the same issue - keyup and keydown events are being fired twice though their handlers are bound only once and I'm...
Read more >
Custom rule that returns a promise executes twice on ...
Versions: VueJs: 4.1.1 Vee-Validate: 2.0.0-beta.24 Description: I have a custom rule for validating email addresses via an ajax call.
Read more >
Standard-Toolkit/Documents/Help/Changelog.md at master
... KryptonTextBox Validate / Validating / KeyUp events are invoked twice ... Resolved #653, Page Drag&Drop/Floating exception; Resolved bug where the ...
Read more >
Validator gets called twice
the validator gets called before this entity has an ID and returns TRUE, so no validation error. But then the thing: After the...
Read more >
Pass CancelEventArgs to custom Validation verification event
The purpose for this is that the KeyUp event needs to Enable and make Visible buttons on the form if the validation is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found