CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 1999
    Location
    Dublin, Ireland
    Posts
    1,173

    Find / Replace dialog box from VB

    Has anybody implemented the Find / Replace dialog box from Visual Basic?

    I can see that there is some code in commctl32.dll that should do this but it does not seem to be included in the Common Controls OCX...

    Any ideas?
    TIA,
    Duncan

    -------------------------------------------------
    Ex. Datis: Duncan Jones
    Merrion Computing Ltd
    http://www.merrioncomputing.com
    Check out the new downloads - ImageMap.ocx is the VB control that emulates an HTML image map, EventVB.OCX for adding new events to your VB form and adding System Tray support simply, MCL Hotkey for implemenmting system-wide hotkeys in your application...all with source code included.
    '--8<-----------------------------------------
    NEW -The printer usage monitoring application
    '--8<------------------------------------------

  2. #2
    Join Date
    Sep 2001
    Location
    IL, USA
    Posts
    1,090

    Re: Find / Replace dialog box from VB

    you can use the API calls FindText and ReplaceTextublic Declare Function ReplaceText Lib "comdlg32.dll" Alias "ReplaceTextA" (pFindReplace as FINDREPLACE) as Long
    public Declare Function FindText Lib "comdlg32.dll" Alias "FindTextA " (pFindReplace as FINDREPLACE) as Long

    Where FINDREPLACE is a structure with initialization data.


  3. #3
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Find / Replace dialog box from VB

    Thee is a submission that showed up on Planet-Source-Code.com/vb last year that shows the Find/Replace Dialog box. It seems to work with a couple of minor problems. See comments atached to the document
    http://www.planet-source-code.com/xq...s/ShowCode.htm

    John G

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured