-1

我是 VB.NET 的新手,我尝试在 vb.net 中制作垃圾邮件墙(fb)所以,这是我的代码,

Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

         Process.Start("https://graph.facebook.com/" & (TextBox2.Text) & "/photos?url=" & (TextBox3.Text) & "&method=POST&message=" & (TextBox4.Text) & "a&access_token=" & (TextBox1.Text))

    End Sub
End Class

之后,我点击按钮 1,我在浏览器中看到了新的网页。所以,我想如果我点击按钮 1,我的浏览器中没有网页。

4

1 回答 1

0

如果不想打开浏览器,请像这样使用 webbrowser 控件

Private webbrows As New WebBrowser

private sub form_load(snder......

dim _url as string = "your url that mostly wont work"

webbrows.Navigate(_url)

' if you use vb2010 then you have lambada expressions 

 AddHandler webbrows.DocumentCompleted, Sub(sd As Object, e4 As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs)

' a check that the page fully loaded                                                    
 If e4.Url.ToString <> _url Then Exit Sub

 sd.dispose()

  End Sub

end sub
于 2013-08-11T13:26:29.720 回答