Torna al Thread

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click AxWebBrowser1.Navigate("file://D:\WindowsApplication1\TestPage.html") End Sub Private Sub AxWebBrowser1_DocumentComplete(ByVal sender As Object, ByVal e As AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent) Handles AxWebBrowser1.DocumentComplete Dim returnValue As Object Dim ObjArr(1) As Object ObjArr(0) = CObj(New String("Pippo")) MessageBox.Show("Pagina completata!") Try returnValue = AxWebBrowser1.Document.InvokeScript("DisplayName", ObjArr) Catch ex As System.Runtime.InteropServices.MarshalDirectiveException MessageBox.Show("Impossibile eseguire lo script " & ex.Message) Finally MessageBox.Show("Fine!") End Try End Sub
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5