|
-
Dec 4th, 2001, 08:24 PM
#1
Thread Starter
New Member
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.
-
Dec 4th, 2001, 09:27 PM
#2
Thread Starter
New Member
thanks for the help im going to give it a try ill let you know how it turns out
-
Dec 4th, 2001, 10:30 PM
#3
Thread Starter
New Member
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.
-
Dec 5th, 2001, 12:39 AM
#4
PowerPoster
That's easy. Instead of using the Replace function use some code like:
VB Code:
Form1.Text1.SelText = Text2.Text
That will replace the text that is selected, and not any of the other instances of it.
-
Dec 5th, 2001, 02:04 PM
#5
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|