Dim URL As String = "http://twitter.com/statuses/friends_timeline.xml"
Dim Page As String = Nothing
Try
Dim PageRequest As System.Net.HttpWebRequest = _
CType(System.Net.WebRequest.Create(URL), System.Net.HttpWebRequest)

PageRequest.Credentials = New System.Net.NetworkCredential("username", "password")
Dim PageResponse As System.Net.WebResponse = PageRequest.GetResponse()
TextBox1.Text = "Response received."
Dim r As New System.IO.StreamReader(PageResponse.GetResponseStream())
Page = r.ReadToEnd()
r.Close()
TextBox1.Text &= vbCrLf & Page
Catch ex As Exception
MsgBox(ex.ToString)
End Try
Exit Sub

-----------------------------------------

This is a code snippet that enables you to post to twitter!

This is written in VB.NET 2005 - for Visual Studio. It rocks!

Original Code by Xander Obrzut (give me credit if you use this code in your app!)

07 February 2009 © APO Networks • Designed for Vista