Results 1 to 2 of 2

Thread: RichTextBox methods: Span & UpTo ?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2001
    Location
    N42 29.340 W71 53.215
    Posts
    422

    Question 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

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2001
    Location
    N42 29.340 W71 53.215
    Posts
    422

    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
  •  



Click Here to Expand Forum to Full Width