Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class Form1
- Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
- Try
- Form2.PictureBox1.ImageLocation = ("https://graph.facebook.com/me/picture?width=220&height=220&access_token=" & TextBox1.Text)
- Form2.Show()
- Catch ex As Exception
- 'MsgBox("Unable to load data from ""Facebook""! The app will automatically reload", MsgBoxStyle.Exclamation, "Notify")
- End Try
- End Sub
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Try
- Form2.PictureBox1.ImageLocation = ("https://graph.facebook.com/me/picture?width=220&height=220&access_token=" & TextBox1.Text)
- Form2.Show()
- Catch ex As Exception
- 'MsgBox("Unable to load data from ""Facebook""! ỨThe app will automatically reload, MsgBoxStyle.Exclamation, "Notify")
- End Try
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement