Solved

RichTextbox without ocx

Posted on 2007-03-18
5
322 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
  • 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

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

943 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

3 Experts available now in Live!

Get 1:1 Help Now