Hi there, I need a vb.net component that I can integrate into an existing project which will be a very basic HTML editor using an rich text box control.
The component should render a tool bar which will be utilised to format the contents of any rich text box control specified in the code.
In addition to formatting the text in the rich text box control, I need a method to save the contents of the rich text box control in HTML format.
I also need to be able to specify an existing HTML file in the code and then have that HTML rendered in the RTF box, so that I can edit it in the RTF box and save it back as HTML.
I only need very basic text formatting as follows:
font, font size, bold/italic/underline/strikethrough, font forecolor, font backcolor
these formatting functions should be represented on a horizontal toolbar, left to right, as follows:
font size drop down
font size increase button
font size decrease button
4 buttons for bold,italic,underline,strikethru
font forecolor button
font backcolor button
I need this to integrate into vb.net project I am working on using Visual Studio 2010 .net framework 4.0 client profile.
I envisage using the component something like this to edit an existing file:
'specify this in the code
dim htmleditor as new YourRichText2HTMLeditor
dim filepath as string = "c:\[url removed, login to view]"
[url removed, login to view] = somepanelorsomegroupbox
[url removed, login to view] = x,y '(this will be relative to the parent control)
[url removed, login to view] = richttextbox1
[url removed, login to view] = filepath
'then at this point on my form, the richtextbox1 control will have the contents of the filepath rendered
'then i can modify it on screen using the formatting tools in the toolbar which is displayed at the x,y location
'and when i click a save button that i create it saves the changes over the top of the file
[url removed, login to view](filepath)
The resultant HTML needs to be very simple, as it wil be used to send HTML emails.
Thanks very much for looking.