Line 26 : // This event occurs...
This is of course not the event, this is the event handler method after the event occured.
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
I thought AJAX to be Asynchronous JavaScript + XML or am I wrong?
Just disscussing a textbox in a plain simple forms application in C# here!
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
@tontano The snippet is real C#, not something else. If you got questions about the code, please feel free to ask.
@skatamatic :
First : "...." question: no, on line 23 I use Tbx.Text.Contains(".")
Second your code:
Line 3 should read double aDouble = 0; I guess.
I could type 1.......
I could correctly type 1.5, but when I use the Tag.ToString() method and showed it in a MessageBox it gave 15
How about backspace?
Still your idea is well worth thinking of :-/
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
@tontano: there are no stupid questions, only stupid answers.
THe whole point of my snippet is just to avoid things like ErrorProvider and Validating!
@skatamatic: You found a flaw in my code! I don't do negatives!Aaargh:@ But then again, I don't do copy and paste either. Maybe I should implement them if I find the time...
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661