CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: webbrowser control

Threaded View

  1. #1
    Join Date
    Oct 2009

    webbrowser control

    How to do the "findnext" for webbrowser control?

    i found some code

    Private Sub btnHPrev_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnHPrev.Click

    Dim oRange As Object
    Dim sSearch As String
    oRange = Me.WebBrowser1.Document.Body.createTextRange() '
    sSearch = _passedText
    If oRange.findText(sSearch) Then
    MsgBox("Search string not found.")
    End If

    End Sub

    oRange = Me.WebBrowser1.Document.Body.createTextRange() 'this line i'm getting error

    CreateTextRange is not a member of 'System.Windows.Forms.HtmlElements'

    Help me any one

    Thanks in advance........
    Last edited by LakshmiP; October 24th, 2009 at 07:37 AM. Reason: Code

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)