|
-
Apr 25th, 2005, 03:46 PM
#1
Thread Starter
Hyperactive Member
RichTextBox methods: Span & UpTo ?
Does the RTB in .NET have methods equivalent to the VB6 RTB's .Span & .UpTo methods?
I'm trying to convert various VB6 routines to VB.NET and I managed to figure out some of the name changes, e.g. SelLength => SelectionLength,
but I can't find anything that looks like Span or UpTo.
Thanks, DaveBo
We need a "dazed & confused" icon.
"The wise man doesn't know all the answers, but he knows where to find them."
VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15
-
Apr 26th, 2005, 01:00 PM
#2
Thread Starter
Hyperactive Member
Re: RichTextBox methods: Span & UpTo ?
A quick Google produced this statement regarding the Span method,
"You have to get the ITextDocument of the richtextbox and call the
Selection.Expand(tomWord) method ,see the msdn docs for ItextDocument
interface."
But, I don't have my Gobledygook to English dictionary handy, so when I Googled "ItextDocument" I just got more confused and frustrated.
I feel like I'm being asked to perform brain surgery where a simple aspirin should be sufficient.
Isn't there a magic .NET incantation that replaces ".Span"?
e.g. Microsoft.Windows.YouAskedForItYouIdiot.CantGetThereFromHere.napS.SomeSwahiliWordForCowDung...
Have Fun, DaveBo
"The wise man doesn't know all the answers, but he knows where to find them."
VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|