Home  |  Index  |  Dotnet4all Snippets  |  Submit resources
About  |  Mail us  
Dotnet4all Logo

  tom.ITextRange Find Reguler Expresssion does not work (Thursday, January 06, 2005)




Found the following interesting discussion in the Newsgroups:

tom.ITextRange Find Reguler Expresssion does not work
by: Just Me

Using
FindText = aRange.FindTextStart(aFindString, aCount, aFlags)

aCount=236 which sounds right for Story

If aFindString="the" and aFlags=0 the word "the" is found.

However, if aFindString="t.*" and aFlags=8 the word "the" is not found

Does the RichTextBox really support Regular Expressions?

Thanks for any info




 Reply:
by:craigv_@online.microsoft.com (Craig Vick [MSFT])

 I'm not sure what RichTextBox you're using. The .Net one and the VB6 one
don't support regular expressions. Neither has a FindTextStart method
either.

Craig VB.Net Team
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).


 Reply:
by: Just Me

 Your right. I should have asked if the ITextDocument interface on the DLL
the RichTextBox is built on supports regular expressions (what version of
the underlying control is used?).

Is there any problem using the tom interface with a RichTextBox handle?
Seems to work Ok.

Also, why are there no events shown in the IDE for DragDrop.

Thanks a lot








 
Previous Posts
    - VB and unicode
    - Adapter Wizard Part 2
    - Reading the Flash File(.SWF) information
    - Passing value to windows form user control
    - Question on future compatibility between VB.NET an...
    - Retrieving files of filesystem
    - Reading Binary Coded Decimal in VB2003.net
    - VB.Net
    - Help with Structure conversion to VB.NET
    - Populating cboBox using txtFile

Archives
    - 08/01/2004 - 08/08/2004
    - 08/08/2004 - 08/15/2004
    - 08/15/2004 - 08/22/2004
    - 08/22/2004 - 08/29/2004
    - 08/29/2004 - 09/05/2004
    - 09/05/2004 - 09/12/2004
    - 09/12/2004 - 09/19/2004
    - 09/19/2004 - 09/26/2004
    - 09/26/2004 - 10/03/2004
    - 10/03/2004 - 10/10/2004
    - 01/02/2005 - 01/09/2005
    - 01/09/2005 - 01/16/2005
    - 01/30/2005 - 02/06/2005
    - 01/01/2006 - 01/08/2006


Disclaimer & Terms of Use  | DotNet4All.Com concept & © 2004 - 2007 by  Zelders²  - Holland