We help IT Professionals succeed at work.

VB.NET Find and Replace Dialog Boxes

teamels
teamels asked
on
Medium Priority
1,504 Views
Last Modified: 2011-10-03
If anyone can please help me find a good working example of how to empliment the Common dialog boxes
Find
Find and Replace
while using a Rich Text Box.

I see that the MSDN articles on Microsoft show you the steps to create this using C#, but in a very confusssing way that does not make any sense.
I have seen some example of downloadable code from ogther web sites that are pages upon pages long of code to do it, with no real structure on how to implement it.  I am sure that in the year 2006 that there has to be a real easy and short solution to this.

Does Visual Studio 2003 have these pre-built that we can just drop onto a form that maybe I just missed looking around the Add/Remove Tool Box Controls.

Thank You.
Comment
Watch Question

See if this helps

FindReplace.msi This sample control demonstrates how to leverage the Find and Replace dialog box provided by the Windows Common Dialog. The control subclasses the dialog and exposes its features through a class library control which can be inserted into a Windows Forms project.

http://www.gotdotnet.com/team/VB/

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Computron,

Thanks for the quick help.  I did see this a couple of days ago and is the one I was referring too as having pages upon pages of code.  The code in the sample project was 10x more code than my whole project, however now that you mentioned "the control can be inserted into a Windows Forms project" I took a closer look and noticed in the sample project there was a Read Me HTML file that I did not notice before and it does as you said allows you to use just the control and drop it into the Tool Box.  I completley missed this becasue I was overwhellemd at all the code that went into subclassing this control as the auther had done.

Sometimes a second look with a few words in the right directions can make a big difference.
Thank you
teamels.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.