Formatted Text with Controls

lochok

New member
Joined
Feb 9, 2007
Messages
1
Programming Experience
3-5
Good Evening,

I've spent a while doing some research and I can't find a solution to my problem. Any help would be greatly appreciated.

As part of a program I'm writing, I'm needing to have a form with formatted text (definable from a file) and editable sheet music (which will be a custom control) among other custom controls - essentially creating HTML style documents with forms (ie. the editable sheet music and occasional other controls) which can interact with my main program.

What can I use to be able to do this? I questioned using a Rich Text Box, however from what I can see it doesn't allow me to put controls within the text box itself. I also questioned using a Webbrowser component, however the only issue seems that I'll have difficulty making it run properly interactively - being able to send data easily back and forward with the custom controls (particularly the custom music one)

At the moment, it seems that I'm going to have to write an entire user control to display all the formatted text and deal with my controls - which seems like it will be a lot of work.

So... in a roundabout way... what I'm asking is... is there any formattable text controls which can hold embedded controls, or is there any reasonably easy ways to embed a custom control in a RTB or something else.

Thankyou for any help, it is greatly appreciated


Lochok
 
What about Controls collection of RichTextBox

Hi lochok,
I questioned using a Rich Text Box, however from what I can see it doesn't allow me to put controls within the text box itself.


You may add controls to the Controls collection of the RichTextBox using

VB.NET:
Expand Collapse Copy
RichTextBox.Controls.Add()
method
 
Back
Top