how to make the color of characters in a textbox different

  • Thread starter Thread starter TC
  • Start date Start date
T

TC

You will need to get a third-party "rich text box" or RTF control. You will
not be able to do it with an Access texbox, AFAIK.

A quick glance at the article, shows that it is for Visual Basic - not
Microsoft Access. Those are not the same product. The code that works in
one, will not necessarily work in the other. That code will not work in
Access.

HTH,
TC
 
In MS Access 2000, I created a form for my database. one field on th
form is Name. What I want to do is to make certain letter in the Nam
Textbox to be red. for example, if the Name is John, I want the lette
'J' to be red while the "ohn" are still black. Can someone tell me ho
to do this?
I am very interested in this program which outputs characters i
different colores
http://tinyurl.com/vg3t
but don't know how to make it work in VB.NET. I don't know where is th
paint event? I also got compiling error like 'Line' is not used i
VB.NET. Thanks for any help!

Jac
 
Thank you for the reply! could you explain more?
1. is it possible that a third-party "rich text box" or RTF control ca
work with the form in Access? Can I integrate it into the menu o
Access or the form?
2. Besides to give the user the choice to manually change the color o
letters in the textbox, what I really like to do is to let the progra
to change the color of certain letters specified by the user. fo
example, to change the color of all letter 'C' into red. is it possibl
to do it in Access? if not, how about I write an GUI and connect it t
Access?

the following link is related, but it doesn't say how to integrate th
Rich Text Box into Access:
http://www.thevbzone.com/wwwboard/messages/943.html

Thanks for any help!
Jac
 
Jack, I'm assuming that you are replying to my reply. Both previous posts
have disappeared fom my newserver. It's a good idea to include the text of
the post you are repying to (as I have done below), so the previous posts
are not reuired. Further answers below!


jack said:
Thank you for the reply! could you explain more?
1. is it possible that a third-party "rich text box" or RTF control can
work with the form in Access? Can I integrate it into the menu of
Access or the form?

Yes, a suitable 3rd party control could be placed on a form, just like any
other control. It would have its own set of events, methods & properties.
These might be the same as - similar to - or different from - the events,
methods & properties of a normal control. For example, just as a combo box
has different methods & properties to a textbox, a 3rd part "rich text" box
might have different methods & properties to a normal Access textbox. Th key
point is, the 3rd party control would support different colors for different
leters in the text, wheras an Acces textbox won't do that.

I've never used any suitable control, so I cn not recommend one to you. But
I'm sure that some judicious googling would fine one fairly easily. Perhaps
someone else can comment?
2. Besides to give the user the choice to manually change the color of
letters in the textbox, what I really like to do is to let the program
to change the color of certain letters specified by the user. for
example, to change the color of all letter 'C' into red. is it possible
to do it in Access? if not, how about I write an GUI and connect it to
Access?

A suitable 3rd part control would probably expose the methods & properties
that would let you code this. It is not a question of whether >Access< can
do it. It is a question of whether the 3rd part control exposes appropriate
methods & properties, to do it.

HTH,
TC
 
Back
Top