VB - Spell Check a Textbox - Page 3-VBForums
Page 3 of 3 FirstFirst 123
Results 81 to 101 of 101

Thread: VB - Spell Check a Textbox

  1. #81
    Super Moderator RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,104

    Re: VB - Spell Check a Textbox

    Its all optional arguments but these are what they are in 200+

    .Documents.Add([Template], [NewTemplate], [DocumentType], [Visible])

    You can specify a template to base the document creation upon, specify this is to be a new template, doc type has several types it could be, and if to show the document or make it hidden.
    All these arguments can be seen in the Object Browser of Word and help file too for more info then what I posted. .
    VB/Office Guru™ (AKA: Gangsta Yoda™ )
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    • Star Wars Gangsta Rap • Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
    System: Intel Core 2 Extreme Ed., 2 WD Raptor 10K RPM 300 GB HDs, 2 GBs DDR2 667 MHz RAM, 2 Viewsonic 24" LCDs, Windows 7 SP-1/Windows 8.1, Office 2010, VS 2013

  2. #82
    New Member
    Join Date
    Jul 2007
    Posts
    2

    Angry Re: VB - Spell Check a Textbox

    Hello,

    I'm new here and have just found your spell check VB code.

    It works a treat as a function embedded in a Module/Form BUT the Word spell check box/form is hidden.

    The only way I can get to see it is if I clear the desktop and then click on my program's task bar button.

    Do you know a way of forcing the spell check form to the front and visible?

    (I am running Vista and have noticed that your example in #44 still hides the spell check form as above. Not sure if this is relevant)

    Thanks
    Last edited by purge98; Jul 27th, 2007 at 08:12 AM.

  3. #83

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    32,872

    Re: VB - Spell Check a Textbox



    Sorry, but since I assume that your problem is Vista related and I don't have Vista, I can't do anything about it. You might want to try the spell checker in RobDog888's signature.

  4. #84
    New Member
    Join Date
    Jul 2007
    Posts
    2

    Re: VB - Spell Check a Textbox

    Thanks for the quick reply Mr Martin.

    I have seen Mr Dog888's code but it is too bespoke/specialized for my application. I need a more integrated function like yours.

    I have seen this at the MS site

    http://support.microsoft.com/kb/243844/en-us

    which doesn't hide the Spell checker quite as well in Vista

    It is visible in the taskbar however and so it just needs one to click it to reveal it. Not too bad a problem.

    I will use your error checking etc to check for the presence of Word and also produce a msgbox to tell the user when the spell check is complete.

    Thank you for your help Mr Martin. I have rated you

  5. #85
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    Re: VB - Spell Check a Textbox

    It is very good program.

    Is it possible that it do spell checking for editbox loated in external applications .There is an application that has richedit box with following class information. Could you tell me how to make your program work with it? For example after typing on that application i want to hit F11 and it does spell check for me.

    Furthermore, i have word xp is it possible to do spell checking as i type by getting red line under words that are not correct?

    Looking forward for your reply.Thanks

    RichEdit20A
    #32770
    AtlAxWin71
    ATL:006ED050
    WTL_SplitterWindow
    WTL_SplitterWindow
    WTL_SplitterWindow
    WTL_SplitterWindow
    DlgGroupChat Window Class


    window that holds that edit box class infor:
    DlgGroupChat Window Class
    Last edited by tony007; Oct 10th, 2007 at 07:05 AM.

  6. #86

  7. #87
    New Member
    Join Date
    Nov 2007
    Posts
    1

    Thumbs up Re: VB - Spell Check a Textbox

    I'd love to use this code to add the spell check function to my app. I have users ranging from word 2K to 2K7, so does anyone know if there is a modification that is needed to include word version beyond 2k3? Also, I will be running the code from forms in access 2k7 runtime only. Doing a direct reference to spellcheck causes an error on any machines without office 2k7, so this code seems like the right trick?

  8. #88
    Lively Member
    Join Date
    Mar 2008
    Posts
    79

    Re: VB - Spell Check a Textbox

    Great code guys thanks alot.
    Last edited by Azeccia; Mar 30th, 2008 at 08:40 PM.

  9. #89
    Hyperactive Member
    Join Date
    Sep 2005
    Location
    Wellington, NZ
    Posts
    267

    Re: VB - Spell Check a Textbox

    Is this thread still being looked at ? I have a problem with the following...

    strResult = Left(objDoc.Content, Len(objDoc.Content) - 1)

    There is no 'left' in vb.net I tried substring, but objDoc.Content (or.ToString) does not give the corrected text.

  10. #90

  11. #91
    Hyperactive Member
    Join Date
    Sep 2005
    Location
    Wellington, NZ
    Posts
    267

    Re: VB - Spell Check a Textbox

    ...the rest works OK in .net. What changes to I have to make for .net, or is there a totaly different approach ?

  12. #92
    New Member
    Join Date
    Aug 2008
    Posts
    10

    Re: VB - Spell Check a Textbox

    I am new to this forum and this is my first post. Not sure if this thread is still active but am seeking advice as a newbie!

    I have applied Martin's code (its excellent!) to my application (VB6, Office 2003 under XP). It all works fine apart from one annoying behaviour I cannot figure. When the Word spell checker form is displayed, it does not always appear at the front of the screen. But this behaviour is inconsistent - sometimes it does, and sometimes not and I have been unable to identify why this variation is occurring.
    Is there a foolproof method of forcing the spell checker form to the front of the display area when the spell checking is invoked?

  13. #93

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    32,872

    Re: VB - Spell Check a Textbox

    As far as I remember nobody else has reported this issue, but I'll see if I can reproduce it. In any case you might want to try RobDog's similar code here.

  14. #94
    New Member
    Join Date
    Aug 2008
    Posts
    10

    Re: VB - Spell Check a Textbox

    Martin,

    Thanks for the prompt response - I may be being dense (sorry!) but the link for Robdog's code doesn't appear to take me anywhere! Can you advise where I can see his code to try it?

    Thanks

  15. #95

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    32,872

    Re: VB - Spell Check a Textbox

    Try clicking the VB/Office Guru™ Word SpellChecker™ VB6 link in his signature (see post #81).

  16. #96
    New Member
    Join Date
    Oct 2008
    Posts
    10

    Re: VB - Spell Check a Textbox

    Anyone Know How To Do This In C#?

  17. #97
    Super Moderator RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,104

    Re: VB - Spell Check a Textbox

    I have a VB.NET version in my signature and you can use one of those converters to convert it to C#
    VB/Office Guru™ (AKA: Gangsta Yoda™ )
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    • Star Wars Gangsta Rap • Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
    System: Intel Core 2 Extreme Ed., 2 WD Raptor 10K RPM 300 GB HDs, 2 GBs DDR2 667 MHz RAM, 2 Viewsonic 24" LCDs, Windows 7 SP-1/Windows 8.1, Office 2010, VS 2013

  18. #98
    Lively Member wiz....'s Avatar
    Join Date
    Nov 2008
    Location
    Asia, Earth, Solar System, Milky Way Galaxy, Near Andromeda Galaxy, Universe
    Posts
    78

    Re: VB - Spell Check a Textbox

    can it be done for Office 2007??????////////

    sorry fr reviving this old post!!!!!!

    thanx in advance
    wiz....
    PAIN n SUFFERING-Pain is Inevitable,,suffering is optional...........
    WORK EXPECTATION--U can do anything in this world if u don't look for credit.........

  19. #99

  20. #100
    Lively Member wiz....'s Avatar
    Join Date
    Nov 2008
    Location
    Asia, Earth, Solar System, Milky Way Galaxy, Near Andromeda Galaxy, Universe
    Posts
    78

    Re: VB - Spell Check a Textbox

    i have been and cudn't find any thing related to Office 2007!!!!
    PAIN n SUFFERING-Pain is Inevitable,,suffering is optional...........
    WORK EXPECTATION--U can do anything in this world if u don't look for credit.........

  21. #101
    Super Moderator RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,104

    Re: VB - Spell Check a Textbox

    You only need to use Late Binding in order to support multiple compatible versions. See my FAQ on Late Binding - http://www.vbforums.com/showthread.php?t=406640 for more and code examples.
    VB/Office Guru™ (AKA: Gangsta Yoda™ )
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    • Star Wars Gangsta Rap • Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
    System: Intel Core 2 Extreme Ed., 2 WD Raptor 10K RPM 300 GB HDs, 2 GBs DDR2 667 MHz RAM, 2 Viewsonic 24" LCDs, Windows 7 SP-1/Windows 8.1, Office 2010, VS 2013

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.