I've been working on a word processor called 'Pen and Paper', and I need some help with the Find/Replace Dialogs. I'm using Visual C++ 2008 Express, and I have a Richtextbox control (txtdisplay) including a main menu. I've finished making everything such as save/open, New Document, but I need some help with Find/Replace from the Edit menu. It opens up the 'Find' dialog, but I need some way, like in notepad, for the find button (btnfind), when clicked, to select the text in txtdisplay (the richtextbox on Form1) that the user entered in the Find dialog's textbox.
Same with the Replace dialog, except after finding the text, don't select it, but replace it with the text the user typed in the 'Replace' textbox in the dialog.
Thanks in advance to any of those who can help out.