473,421 Members | 1,616 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,421 software developers and data experts.

TextBox: TextChanged event question

Hi.

The content of my textbox is "ABCD".

If I select the letter 'C' and I press 'X', the content obviously changes to
"ABXD".

Thsi however generates two separate "TextChanged" events
1) "ABCD" ==> "ABD"
2) "ABD" ==> "ABXD"

These are 2 sub-operations of one single macro operation from an Undo/Redo
point of view. How can I capture this? The TextChanged event does not convey
any information if an operation is standalone or part of a larger operation.
Is there any property I could look into? Should I look at a different event?

Thanks,
Fabio

Jan 8 '06 #1
2 3087

"Fabio Cannizzo" <fc*****************@london.edu> wrote in message
news:r2*****************@newsfe2-gui.ntli.net...
Hi.

The content of my textbox is "ABCD".

If I select the letter 'C' and I press 'X', the content obviously changes
to "ABXD".

Thsi however generates two separate "TextChanged" events
1) "ABCD" ==> "ABD"
2) "ABD" ==> "ABXD"

These are 2 sub-operations of one single macro operation from an Undo/Redo
point of view. How can I capture this? The TextChanged event does not
convey any information if an operation is standalone or part of a larger
operation. Is there any property I could look into? Should I look at a
different event?

Thanks,
Fabio

If you are looking to react to the completed change (i.e. when the user is
finished editing the content of the TextBox), you can use the Leave event.
Jan 8 '06 #2


Hi. Yes I need to react to the complete "typyng" event, but the focus
may still be on the control, hence I do nto think "leave" would work.

I suppose I can only use a combination of "TextCahnged" and "KeyDown",

Thanks,
Fabio

*** Sent via Developersdex http://www.developersdex.com ***
Jan 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David Smith | last post by:
What I want to be able to do: A textbox is available that the user can enter information into. Specifically (for the purposes of this post), the user is asked to enter a number, and that number...
7
by: Itar | last post by:
I'm having a problem supressing characters in a text box. I only want alpha numeric characters (no special chars). I can handle the TextBox_KeyPress event to supress the invalid characters when...
3
by: DotNetNewbie | last post by:
I am reading the book Teach Yourself Microsoft Visual Basic .Net 2003 in 21 Days. I am having trouble getting one of the exercises to work at the end of day 4. Exercises: 1. Create a new...
4
by: Jason Huang | last post by:
Hi, In my C# Windows form MyForm I have some TextBoxes. In these TextBoxes, we have to detect if the TextChanged event occurs, if there're changes in these TextBoxes, it will ask if we want to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.