VB.NET Find and Replace Dialog Boxes

Posted on 2006-03-29
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 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.
Question by:teamels
    LVL 15

    Accepted Solution

    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.

    Author Comment


    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

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
    If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now