Thanks for all the insights
Routing events is indeed tricky because the sender is the simple control and I need to find out what owns it to route the event to the correct place. This usually involves inspecting the parent hierarchy of the sender to find what class it came from. I can then call the change event of the class responsible for the sender and pass the sender there.
I don’t have a lot of code inside the form itself, most of the code is located inside of classes and uses virtual methods. I also use “is” to identify what controls are and then typecast them to call appropriate virtual method.
@jamie it isn’t so much hitting return key as clicking on another control pr trying to navigate with tab keys firing off the editing done event when nothing has changed.
@thaddy yes indeed it’s possible to declare a function but getting editingdone to connect to it is another story.
The modified seems like a useful property I didn’t know about it. Unfortunately other controls don’t seem to have it. I will test it out.
The tmethod thing does that let me define new methods ?