Solved

Creating simple HTML editor

Posted on 2002-05-23
10
154 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
 

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
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.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now