CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2001
    Posts
    155

    search in richtextbox

    when the user clicks a button, how do you make it so that for every "t" in the textbox, it adds an item to a listbox??

    --Ant
    --------------------------------------------------
    check out my newest freeware
    E-mail me at: [email protected]
    for the address

  2. #2
    Join Date
    Dec 1999
    Location
    Dublin, Ireland
    Posts
    1,173

    Re: search in richtextbox


    Dim sRemaining as string

    sRemaining = Text1.Text
    While Instr(sRemaining,"t") > 0
    sRemaining = mid$(sRemaining,Instr(sRemaining,"t") +1)
    Listbox1.addItem "Letter T found again"
    Wend





    HTH,
    D

    -------------------------------------------------
    Ex. Datis: Duncan Jones
    Merrion Computing Ltd
    http://www.merrioncomputing.com
    '--8<-----------------------------------------
    NEW -The printer usage monitoring application
    '--8<------------------------------------------

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

Featured