I am trying to embed a couple of custom controls into a RichTextBox
control. My purpose is to insert metadata inside of the RichTextBox
that can be extracted back out at a later time.
As a test, I made a very simple ActiveX Control for a proof of concept.
The control is a single TextBox control placed onto a new Usercontrol.
Once compiled, I add a control instance to the RichTextBox with:
rtfSample.OleObjects.Add , , , "myobject.myclass"
I can add the control just fine. Initially, the control starts up
activated for in-place editing. Once I deselect the object, I can not
activate the control again. Even with a double click event, the ActiveX
Control that I have embedded only offers up resize handles and does not
go back into an in-place editing mode.
Is the only chance to edit this object really only at the time of
insertion? If so, I am afraid I am going to have to look for another
Thank you in advance,