Results 1 to 1 of 1

Thread: Help With, "InvokeScript"

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2012
    Posts
    75

    Help With, "InvokeScript"

    Hi,

    Im Having An Issue With The Following Code:

    Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    If txtfunction.Text <> Nothing And Form1.WebBrowser1.Document.InvokeScript(txtfunction.Text) <> vbNull Then
    Form1.WebBrowser1.Document.InvokeScript(txtfunction.Text)
    End If
    End Sub
    Issue:

    It Doesn't Invoke The Text/Function In txtfunction.Text.

    What Its Supposed To Do:

    When you click button1, if txtfunction.Text is not nothing, then invokescript function name from txtfunction.Text

    Anyone know where the error is?
    Last edited by VBbbq; Jul 5th, 2012 at 06:15 PM.

Tags for this Thread

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