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.
Printable View
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.
thanks for the help im going to give it a try ill let you know how it turns out
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.
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.
Ok, thanks for the help that code should work great.