Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

visual basic exprees edition 2008 richtext box, how can i count lines ,?

and find a certain text and get its location at textbox

1 Answer

Relevance
  • 1 decade ago
    Favorite Answer

    'count lines

    dim a() as string

    a=split(richtextbox.text)

    count=ubound(a)+1

    'find text

    dim p as integer = instr(richtextbox.text)

    i dont have vbe2008 right now so there might be error...

Still have questions? Get your answers by asking now.