07/12/09 14:35
Antivirusvivente
Ciao a tutti, mi interessava sapere come ottenere una stringa compresa tra due stringhe, caricando la pagina web con un webbrowser e passando il codice su una textbox.
Ho provato con questo codice
però mi restituisce -1..
potete dirmi cosa c'è che non va, e se è possibile ottnere la stringa senza utilizzare un webbrowser?
Ho provato con questo codice
Option Strict On Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox1.Text = WebBrowser1.DocumentText.ToString() End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click TextBox2.Text = CStr(TextBox1.Text.IndexOf("m=")) End Sub End Class
però mi restituisce -1..
potete dirmi cosa c'è che non va, e se è possibile ottnere la stringa senza utilizzare un webbrowser?
aaa