I'm trying to create an HTML editing control in C# using the technique at . 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 , but I have no idea how to hook into an event of type "object". Is what I want possible?
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 , but I have no idea how to hook into an event of type "object". Is what I want possible?