By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,282 Members | 1,643 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,282 IT Pros & Developers. It's quick & easy.

Invoking spell check with Lebans RTF2 control v1.4

P: n/a
I am using Mr. Lebans' RTF2 Control v1.4. I have managed to spell
check its contents but it's a terrible kludge.

Here's how I do it:
1) Put a textbox on the same form as the RTF control and camouflage
it, don't hide it.
2) Trap the keyboard shortcut for spellcheck, usually F7
3) Copy the plain text contents of the RTF control to the textbox and
set focus
4) DoCmd.RunCommand acCmdSpelling on the textbox
5) Compare the contents of the two controls and update the RTF control
to reflect any changes.

It works, but it has limitations - mainly that the behavior doesn't
match what users would except when spell checking other controls. Has
anyone found a better method?
Nov 12 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.