DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 5 of 5

Thread: text search

  1. #1
    Join Date
    Oct 2004
    Posts
    47

    Question text search

    i want to search a string in a webbrowser, called brwWebBrowser.
    however, when i use
    brwWebBrowser.ExecWB OLECMDID_FIND, OLECMDEXECOPT_DODEFAULT
    or
    brwWebBrowser.ExecWB OLECMDID_SHOWFIND, OLECMDEXECOPT_DODEFAULT
    it reacts that method ExecWB of object IWebBrowser2 failed (runtimeerror -2147221248(80040100)), and it shows a (win xp) search files and folders dialog... help?
    geert

  2. #2
    Join Date
    Feb 2005
    Posts
    103
    what do you mean? like searching google and entering a string too search it?

    it would be done like this:

    Code:
    BrwWebBrowser.Navigate2(TextBox.Text)
    you would probably need a command button for it too cause validation unless your doing it another way:

    if your using google do this:
    Code:
    BrwWebBrowser.Navigate2("http://www.google.com/search?hl=en&q="+TextBox.Text+"&btnG=Google+Search")

  3. #3
    Join Date
    Oct 2004
    Posts
    47
    no i mean like in notepad when you press ctrl+f, search a string in a site...
    geert

  4. #4
    Join Date
    Feb 2005
    Posts
    103
    you don't even have to do that...explorer has "FIND"(ctrl + F) so its useless doing that.
    (if your using Microsoft Internet Controls OCX)

  5. #5
    Join Date
    Oct 2004
    Posts
    47
    yes but i want to add the option in an mdi browser with edit-find...
    geert

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links