Results 1 to 5 of 5

Thread: find/replace dialoge box

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Location
    ky
    Posts
    14

    Lightbulb find/replace dialoge box

    I have created a text editor on frm.Edit and in the menu I need to create a find and replace box out of a second form called frmFind/Replace. Does anyone know what code I should use in the second form to create the find and replace.

  2. #2

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Location
    ky
    Posts
    14
    thanks for the help im going to give it a try ill let you know how it turns out

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Location
    ky
    Posts
    14

    Thumbs up

    yep that worked good midgetbro the only thing i have to figure out is how can I use the replace command button to replace only the highlighted text after the find command has been used instead of replacing all of the text at once.

  4. #4
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    That's easy. Instead of using the Replace function use some code like:

    VB Code:
    1. Form1.Text1.SelText = Text2.Text

    That will replace the text that is selected, and not any of the other instances of it.
    <removed by admin>

  5. #5

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Location
    ky
    Posts
    14
    Ok, thanks for the help that code should work great.

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