0

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?

2
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by LizR
0

If theres already an onselect all you need to do then is work out what tags are already in effect. Which is usually the harder part depending on what is returned by the control

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.