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

Thread: webbrowser control

  1. #1
    Join Date
    Oct 2009
    Posts
    27

    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
    oRange.Select()
    Else
    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

  2. #2
    Join Date
    Oct 2009
    Posts
    27

    Re: webbrowser control

    Any Help?

  3. #3
    Join Date
    Jul 2009
    Location
    Kuwait
    Posts
    170

    Re: webbrowser control

    Where is the text range specified?
    have a look to this link
    http://msdn.microsoft.com/en-us/libr...textrange.aspx

  4. #4
    Join Date
    Oct 2009
    Posts
    27

    Re: webbrowser control

    Thank alot for ur reply.

    its giving me same reply "CreateTextRange is not a member of 'System.Windows.Forms.HtmlElements'"

    i'm using vs2005 and framework 2.0

    any problem with my framework?

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)