Solved

RichTextbox without ocx

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
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…

743 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

9 Experts available now in Live!

Get 1:1 Help Now