Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Standard "Rich Text" control

Status
Not open for further replies.

KHazen

Programmer
Aug 23, 2005
5
NL
Is there a standard control, to be used in a MS Access 2003 Form, to perform text input with things like bold, italic, hyperlinks etc.? Only a part of the text should be bold (or italic etc.). If so, can you give me the name of the dll, ocx (or whatever it may be)?
 
There is the Rich Text Box. It is in Richtx32.ocx and it is usually in C:\Windows\System32.
 
Golom,

I tried Richtx32.ocx (Control 6.0 (SP4)) . The problem is that I want a part of the text in bold and another part Italic etc. With the standard I Use the whole text is bold (or italic). Is there a better control?
 
FYI. If your upgrading any time soon to A2007 this is now a native feature that allows you to do this type of formatting.
 
The richtextbox can handle that
Code:
RTB.Text = "Now is the time for all good men to come to the aid of their party."
RTB.SelStart = 0
RTB.SelLength = 10
RTB.SelColor = vbRed

RTB.SelStart = 11
RTB.SelLength = 12
RTB.SelBold = True

RTB.SelStart = 24
RTB.SelLength = 10
RTB.SelItalic = True

RTB.SelStart = 35
RTB.SelLength = 88
RTB.SelColor = vbBlue

Results in
Code:
[red]Now is the[/red] [b]time for all[/b] [i]good men to[/i] [blue]come to the aid of their party.[/blue]
 
Golom and MajP,
Thanks.

Golom,
I have a problem (on my machine) with the control. (everything is bold or everything is italic) For a programmer (like you and me) there is a solution. But for the end-user there is at this moment no solution. I think the end-user would like to use the standard formatting toolbars.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top