Solved

RichTextbox without ocx

Posted on 2007-03-18
5
334 Views
Last Modified: 2013-12-26
hello experts,


is it possible to use the richtextbox in visual basic,
but without the RICHTX32.ocx file?

since i can't be sure that is available on all windows installations....

thanks,

mark
0
Comment
Question by:Mark_FreeSoftware
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 22

Accepted Solution

by:
danaseaman earned 500 total points
ID: 18743641
Yes. Add this control source code (.ctl and .ctx) and modules into your project and you do not need any OCX dependency.

http://www.vbaccelerator.com/codelib/richedit/richedit.htm

BTW. richtx32.ocx is not avaiable by default in Windows Vista. It can be installed easily via a package and deployment program but you must run the install with elevated privileges (run as administrator).
0
 
LVL 13

Author Comment

by:Mark_FreeSoftware
ID: 18744053

is there not a light version available?
this one has way too much features...

0
 
LVL 22

Expert Comment

by:danaseaman
ID: 18744522
Not that I am aware of.

I used to have a regular and light version of RichEdit but in the end there was only 30-40K gained with the light version that I decided to drop it. Too much work to maintain 2 versions of essentially the same control.

The only other free RichEdit out there is at http://www.mvps.org/emorcillo/download/vb6/ctl_riched.msi. but it also is not a light version and has dependencies of OleLib.Tlb and OleLib2.Tlb.  
0
 
LVL 18

Expert Comment

by:JR2003
ID: 18744823
You should distribute the ocx with your application.
Just use a setup wizard like Package and Deployment Wizard to create a setup package.
0
 
LVL 13

Author Comment

by:Mark_FreeSoftware
ID: 18775077

thank you danaseaman!


motivation for points assignment:

although it is not exactly what i'm looking for (too big,)
it answers the question that i asked. (is it possible...)
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month5 days, 5 hours left to enroll

636 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