format part of a TextBox content

  • Thread starter Pablo Cardellino
  • Start date
P

Pablo Cardellino

Hi

I need to format one word within a TextBox control in a form. The form is
the UI of my own proofing tool, and the TextBox shows the word being
corrected in context: the context in default color (black) and the word
being corrected in red.

How could I achieve this?

Thanks in advance,

Pablo Cardellino
Florianópolis, SC
Brazil
 
C

Cindy M.

Hi Pablo,
I need to format one word within a TextBox control in a form. The form is
the UI of my own proofing tool, and the TextBox shows the word being
corrected in context: the context in default color (black) and the word
being corrected in red.

How could I achieve this?
If we're talking about VBA User Forms, then you cannot format the text in
the TextBox. The TextBox control provided for VBA User Forms is "plain
text"; no RTF text box control is provided.

Possibly, you could find a third-party ActiveX control that can work in a
VBA UserForm (any control that works with classic VB6, for example, could do
the job). If you find one, you need to use the object model interface it
provides in order to set the properties.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
P

Pablo Cardellino

Hi, Cindy,

that's surprising for me, I thought it would be easier. I'm making a
proofing tool, and the form has a control where the wrong word that's being
corrected is shown in context, just like native Word proofing tool, and I'd
like to render it in red, to make it clear which word within the text is
being corrected.

I'll look for another control, then.

Best regards,

Pablo Cardellino
Florianópolis, SC
Brazil
 
P

Pablo Cardellino

I found a control called "Microsoft Rich Text Control, version 6.0", but
when I try to draw it an error occurs: "there's no confiability at the
entity for the specificated action" (the text appears in Portuguese, so it
is not exactly this in English). Does enybody knows what this means?

Thanks,

Pablo Cardellino
Florianópolis, SC
Brazil
 
P

Pablo Cardellino

I found a control called "Microsoft Rich Text Control, version 6.0", but
when I try to draw it an error occurs: "there's no confiability at the
entity for the specificated action" (the text appears in Portuguese, so it
is not exactly this in English). Does enybody knows what this means?

Sorry, I made some mistakes translating the message into English. The
message says something like "there's no reliability in the entity for the
specified action". Now, it is possible that somebody knows what it means.

Best regards

Pablo Cardellino
Florianópolis, SC
Brazil
 
C

Cindy M.

Hi Pablo,
Sorry, I made some mistakes translating the message into English. The
message says something like "there's no reliability in the entity for the
specified action". Now, it is possible that somebody knows what it means.
That still isn't the right translation :), but I think I know which one this
is. Try this KB article:

http://support.microsoft.com/kb/838010

Here's some more information

http://msdn.microsoft.com/en-us/library/aa231204.aspx
http://office.microsoft.com/en-us/ork2003/HA011403101033.aspx

There's an additional issue with your wanting to use this control: I'm not
sure whether the licensing for the control allows you to re-distribute it with
your application if you don't have a license for VB6. If you're developing an
application you plan to redistribute AND SELL, you want to check into this
question.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
P

Pablo Cardellino

Thanks, Cindy,
That still isn't the right translation :), but I think I know which one
this
is. Try this KB article:

http://support.microsoft.com/kb/838010

In fact, I found out later the translation as appears in English is "The
subject is not trusted for the specified action". However, I did it simpler:
I put the word alone in red in a label, and the word with the context in the
textbox. Perhaps in the future, if I develope this project further, I could
try the solution in the kb.

Cheers,

Pablo Cardellino
Florianópolis, SC
Brazil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top