Thanks for the reply. I had seen that page but he works on the text property
rather that the box doing it.
I don't know what documentation you've seen but if you search for
tommatchpattern you find things like:
STDMETHODIMP FindTextEnd( BSTR bstr,
long Count,
long Flags,
long *pLength
);
Parameters
--snip--
Flags
Flags governing comparisons.
It can be zero (the default) or any combination of the following values.
tomMatchWord 2 Matches whole words.
tomMatchCase 4 Matches case.
tomMatchPattern 8 Matches regular expressions.
--snip--
Thanks again
"Craig Vick [MSFT]" <craigv_@online.microsoft.com> wrote in message
news:(E-Mail Removed)...
> I don't know a lot about the RichTextBox, but from what I can gather in
the documentation, this isn't directly supported. Here's a url, however,
that may help.
>
> http://www.knowdotnet.com/articles/r...chtextbox.html
>
> Craig VB.Net Team
> --------------------------------------------------------------------
> This reply is provided AS IS, without warranty (express or implied).
>
> --------------------
> >From: " Just Me" <(E-Mail Removed)>
> >References: <(E-Mail Removed)>
<(E-Mail Removed)>
> >Subject: Re: Adding an event handler in a sub
> >Date: Sat, 14 Aug 2004 09:19:09 -0400
> >Lines: 39
> >X-Priority: 3
> >X-MSMail-Priority: Normal
> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
> >Message-ID: <uXB#(E-Mail Removed)>
> >Newsgroups: microsoft.public.dotnet.languages.vb
> >NNTP-Posting-Host: h26.d169bd.dial.xtelegent.net 209.105.189.26
> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
> >Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:222957
> >X-Tomcat-NG: microsoft.public.dotnet.languages.vb
> >
> >Thanks. I tried it and it works great.
> >
> >Craig, I know you know something about the RichTextBox so I'd appreciate
it
> >if you'd take a minute to read my last post under Using Regular
Expressions
> >with a RichTextBox, 8/12/2004 8.54 AM
> >
> >Should I just forget it!
> >
> >No one seems to know anything about it.
> >
> >Even a hint as to where I can go to get more info would be greatly
> >appreciated.
> >
> >I've been looking for some time now.
> >
> >Thanks again for the reply below.
> >
> >
> >
> >"Craig Vick [MSFT]" <craigv_@online.microsoft.com> wrote in message
> >news:(E-Mail Removed)...
> >> You can do something like
> >>
> >> Public Sub AddEvent(ByVal qq As Control, ByVal handler As EventHandler)
> >> AddHandler qq.MouseMove, handler
> >> End Sub
> >>
> >> You would call it like this:
> >>
> >> Dim eHandler As New EventHandler(AddressOf ControlMouseMove)
> >> AddEvent(Button1, eHandler)
> >>
> >> Craig VB.Net Team
> >> --------------------------------------------------------------------
> >> This reply is provided AS IS, without warranty (express or implied).
> >> --------------------
> >
> >
> >
> >
>
> Thanks & Regards
> Santhosh Somayajulu
> Internet Information Services Team,
> Microsoft
>
>