Solved

Creating simple HTML editor

Posted on 2002-05-23
10
155 Views
Last Modified: 2013-12-16
Hi all!

I need some direction in which to proceed.  We need a simple, html editor to be used within a VB application.  It should be able to allow the user to type out a file, set colors to text, highlight, etc.  Then when saved puts in the html tags.  I hear there is a control for this but I can not find it.  Can anyone help me?  We do not want to call any other program to open the file or create a new one as not every user will have Word or Publisher or HTML Help Workshop on their computers.  We are already using the RTF and would prefer an html editor.  If you could also supply good documentation on it I will increase the points.  Any help is greatly appreciated.  

Alice
0
Comment
Question by:alicelknight
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7031041
http://www.developersdomain.com/vb/toolbox/codehighlight.htm
Optionally i have a sample project (but not using it)
0
 
LVL 3

Expert Comment

by:MCummings111400
ID: 7031108
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 7032467
Haven't really tried it, but it seems that you could use a RichTextBox to input the formatted document, then on "save" or something, check each character to determine what to do with it: add color, bold, etc.  Not very tricky, especially if your requirements are small (colors, bold, italic, underline,) but optimizing the output would take a bit more effort.
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:alicelknight
ID: 7033430
Thanks all but I guess I was under the impression that VB had some kind of an html editor.  Is this true?  MCummings, this is a great example but a bit over my head, although it is what I'm looking for.  The only drawback is that it needs IE 6.0.  This is not a good situation for the application.  
rspahitz:  Thanks, this is what we're doing now.  We were trying to get away from it because of just what you said, optimizing the output.  We thought an html editor would solve this.
Any other suggestions?

Alice
0
 
LVL 22

Accepted Solution

by:
rspahitz earned 300 total points
ID: 7033450
(brilliant minds think alike :)

I think that the feature you are searching for is the HTML/DHTML object.

Try going to Project|References and locate the entry for "Microsoft HTML Object Library" and select it.

I've never used it but I think I saw it demonstrated once.

You'll have to check the help files, but this might get you started (but it's just a guess...)

  Dim htmDoc As HTMLDocument
  Set htmDoc = New HTMLDocument
  htmDoc.anchors(...
...
  set htmDoc = Nothing
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 7033457
Furthermore, there is a DHTML template available when you open a new project, so you might want to examine that and see what it offers.
0
 

Author Comment

by:alicelknight
ID: 7033582
rspahitz:  Thanks!  I'll check into it.
Alice
0
 
LVL 3

Expert Comment

by:MCummings111400
ID: 7039588
VB Does not have a built-in HTML Editor. What ever your solution is going to be, it will be either a Third party control based on either IE or the RichText control. Here's a few more links to look at...

http://www.freevbcode.com/ShowCode.Asp?ID=991

http://www.freevbcode.com/ShowCode.Asp?ID=2749

http://www.freevbcode.com/ShowCode.Asp?ID=3829

Not sure if any of them may help. Just searched freeVBCode for HTML Editors. ;)
0
 

Author Comment

by:alicelknight
ID: 7088200
Apologies for the delay in accepting an answer.  Purely forgetfullness...

rspahitz:  Thanks for your suggestion!  I have not started this but it's what I was looking for, thanks!  

To all:  Thanks for all the suggestions.

0
 
LVL 22

Expert Comment

by:rspahitz
ID: 7090130
Glad to help!  Thanks for the A-grade.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Annoying "thing" blocks my view 4 100
to transfer string from C lanaguage to VBA 4 66
Microsoft Access combo box help 2 47
Recommendation vb6 to vb.net or others 14 149
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question