Results 1 to 7 of 7

Thread: [RESOLVED] Find and replace text in a textbox

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2011
    Location
    Canada
    Posts
    23

    Resolved [RESOLVED] Find and replace text in a textbox

    I need some help doing this, because I don't know where to start. Thanks in advance.

    (Edit: I forgot that I put it in the wrong place. I was browsing there before)
    Last edited by 3no7ch; Jun 6th, 2011 at 02:25 PM. Reason: I forgot something.
    I can program in Visual Basic 6/.NET. I'm Canadian.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Find and replace text in a textbox

    Moved From The Codebank (which is for sharing code rather than posting questions )

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Find and replace text in a textbox

    you can use instr and mid functions to find the text, then replace, if you change to a richtextbox it has a built in find method
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Mar 2011
    Location
    Canada
    Posts
    23

    Re: Find and replace text in a textbox

    I have a rich text box, I'm just not sure where to start.
    I can program in Visual Basic 6/.NET. I'm Canadian.

  5. #5
    Just a Member! seenu_1st's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    2,170

    Re: Find and replace text in a textbox

    an example here
    Seenu

    If this post is useful, pls don't forget to Rate this post.
    Pls mark thread as resolved once ur problem solved.
    ADO Tutorial Variable types SP6 for VB6, MsFlexGrid fast fill, Sorting Algorithms


  6. #6

    Thread Starter
    Junior Member
    Join Date
    Mar 2011
    Location
    Canada
    Posts
    23

    Re: Find and replace text in a textbox

    Thanks
    I can program in Visual Basic 6/.NET. I'm Canadian.

  7. #7
    Just a Member! seenu_1st's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    2,170

    Re: Find and replace text in a textbox

    if ur problm solved, pls mark thread as resolved.
    Seenu

    If this post is useful, pls don't forget to Rate this post.
    Pls mark thread as resolved once ur problem solved.
    ADO Tutorial Variable types SP6 for VB6, MsFlexGrid fast fill, Sorting Algorithms


Tags for this Thread

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