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
"Craig Vick [MSFT]" <cr*****@online.microsoft.com> wrote in message
news:Sn**************@cpmsftngxa10.phx.gbl...
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).
--------------------From: " Just Me" <ne**************@a-znet.com>
Subject: tom.ITextRange Find Reguler Expresssion does not work
Date: Sun, 6 Jun 2004 08:48:54 -0400
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Message-ID: <#t**************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: h21.d169b8.dial.xtelegent.net 209.105.184.21
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFT NGP08.phx.gbl!tk2msftngp13 phx.gblXref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.languages.vb:208022
X-Tomcat-NG: microsoft.public.dotnet.languages.vb
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