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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Repaint when spell checking using Word.Application

Status
Not open for further replies.

RichS

Programmer
Apr 24, 2000
380
US
Visual Studio 2008 C#
Microsoft Office / Word 2003

I have a Windows form with a text box to capture text from the user. With this I have a button that allows a user to spell check the text prior to saving. This uses the spell check feature in Microsoft Word to look for possible errors. This part works fine.

But if the user moves the spell check dialog box around on the screen, the form leaves a cascading shadow effect as it moves. It looks like the screen is not repainting or redrawing the forms/controls correctly. Also, the text in the txtBox is blank until the user is done spell checking.

Has anyone experienced this and know how to fix it?
 
If anyone is interested in this post: This was solved by running the spell check dialog in a seperate thread.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top