I'm trying to create an HTML editing control in C# using the technique at http://www.codeproject.com/KB/IP/WYSIWYG_netHTML2.aspx . The control works fine, but there's a nagging thing I'd like it to do.
Usually in a text editor, when you change the selection, if the selected text is bold or underlined, the bold/underline buttons appear selected in the toolbar. I need to update the buttons when the selection or caret position changes. I think I need to hook into the onselect method at http://msdn.microsoft.com/en-us/library/ms533051(VS.85).aspx , but I have no idea how to hook into an event of type "object". Is what I want possible?