Click here to Skip to main content
15,883,809 members
Articles / Programming Languages / Visual Basic

TRocket - Twitter Client [Open Source]

Rate me:
Please Sign up or sign in to vote.
4.37/5 (8 votes)
19 Jun 2012CPOL3 min read 43.1K   2.9K   21   13
TRocket - An open source Twitter client.

Introduction    

TRocket is just like any other Twitter client. The only difference between TRocket and others is that TRocket is Open Source, which means any developer can modify it according to their own need.

Screenshot of the main form: 

Image 1

Screenshot of Link Shortener - Added in version 1.1.0.0:

Image 2

Notification on start-up and on minimized to system try - Added in version 1.3.0.0:

Image 3

Background

TRocket is an open source project that I started in June 2011. Though the development on this project was done very quickly, due to certain personal issues, I was not able to release this on time.

Using the Code 

This program is coded in Visual Basic 2010. It uses twittervb library file, which can be downloaded from the TwitterVB API link at the top of this article.

Note that the code that is required before everything which you want to be downloaded from Twitter is:

VB
Dim objReader As New System.IO.StreamReader(Application.StartupPath & "\" _
    & Form2.TextBox3.Text & "_OAuthtk.dat")
My.Settings.m_strToken = objReader.ReadLine()
My.Settings.Save()

objReader.Close()

Dim objReader1 As New System.IO.StreamReader(Application.StartupPath & "\" _
    & Form2.TextBox3.Text & "_OAuthtkST.dat")
My.Settings.m_strTokenSecret = objReader1.ReadLine()
My.Settings.Save()

objReader1.Close()

tw.AuthenticateWith(consumer, consumersecret, My.Settings.m_strToken, _
    My.Settings.m_strTokenSecret)

This code reads the security tokens that are downloaded after you login and put the PIN in the application. 

Points of Interest

As I did this only for fun in the summer vacation, I did not get any time to clean up the code or add any proper comment lines to it. Please note that this application may take a few minutes to start-up at first. This is because login files are being downloaded.

*Sometimes, font might not show up properly on the application because of color issues. To solve this issue, go to: http://twitter.com after login, click on your [Username]—->Settings—->Design—->Change Design Colors—->[CHANGE THE LINK COLOR]—->Save Changes. 

After that, restart the application.

Known Bugs:  

  1. The profile picture doesn't load properly sometimes. 

All programmers are requested to change the consumer and consumersecret string on all the forms with their own keys.

You can get those details form https://dev.twitter.com/ - [ACCOUNT REQUIRED]. 

Programmers are also requested to change this line in the bitly form: 

VB.NET
Private BitlyUrl As String = "http://api.bit.ly/shorten?version=2.0.1&format=xml&login={USERNAME}&apiKey={APIKEY}"      

You can use your {USERNAME} that you have used to register on bit.ly and get the {APIKEY} from http://dev.bitly.com/ - [ACCOUNT REQUIRED].  

History

  • 4th December, 2011: Initial post    
  • 2nd June, 2012: Version 1.1.0.0, Verified user icon and bit.ly link shortener added. About screen changed (dead link removed). 
  • 7th June, 2012: Version 1.2.0.0, Verified user code changed, lag has been removed, try... catch has been added (which will suppress all the errors), message box has been added to notify the user about what changes have been made. 
  • 19th June, 2012: Version 1.3.0.0, Notification added when application is starting up and when application is minimized to system tray. Logout button has been removed as it was causing issues. The issue of Tweet/Send button getting activated after 140 letters has now been resolved. API usage details have now been added. Application now asks the user if he/she wants to follow the developer(me) of this application, on first login.  

About page:

Image 4

I will keep on updating this post from time to time. You can get more information about me on my website: http://projectgen.co.cc.

This is my first post on this website. I hope you like it.     

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Student
Pakistan Pakistan
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
NewsProject is now inactive. Pin
Ammar_Ahmad5-Jul-13 8:34
Ammar_Ahmad5-Jul-13 8:34 
GeneralRe: Project is now inactive. Pin
Member 107929224-May-14 15:16
Member 107929224-May-14 15:16 
QuestionPerformance issue with loading Friends Pin
Jaja125-Oct-12 9:14
Jaja125-Oct-12 9:14 
QuestionOpen Source? Pin
hakkietakkie2-Jun-12 9:18
hakkietakkie2-Jun-12 9:18 
AnswerRe: Open Source? Pin
Ammar_Ahmad3-Jun-12 19:49
Ammar_Ahmad3-Jun-12 19:49 
GeneralRe: Open Source? Pin
hakkietakkie5-Jun-12 22:15
hakkietakkie5-Jun-12 22:15 
NewsUsers experiencing issues logging in... Pin
Ammar_Ahmad1-Jun-12 22:54
Ammar_Ahmad1-Jun-12 22:54 
Questiontrying to download it but it doesnt go Pin
marketingmanaic16-May-12 20:46
marketingmanaic16-May-12 20:46 
AnswerRe: trying to download it but it doesnt go Pin
marketingmanaic16-May-12 20:49
marketingmanaic16-May-12 20:49 
GeneralRe: trying to download it but it doesnt go Pin
Ammar_Ahmad18-May-12 4:16
Ammar_Ahmad18-May-12 4:16 
BugRe: trying to download it but it doesnt go Pin
symon-66627-May-12 18:41
symon-66627-May-12 18:41 
GeneralRe: trying to download it but it doesnt go Pin
Ammar_Ahmad27-May-12 21:11
Ammar_Ahmad27-May-12 21:11 
GeneralGiving My 5 Pin
deletemyaccount201413-Jan-12 1:01
deletemyaccount201413-Jan-12 1:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.