Windows Form App Help

Jan 16, 2014 at 4:30 AM
Hi, currently using the library for a console app and would like to convert it into a windows form application. Is there any examples of the source code with a windows form?

Specifically having trouble with displaying tweets in a text box

Methods Im using: Filter stream, and process tweet.
Filter stream goes to process tweet with- stream.StartStream(token, x => ProcessTweet(x));

But when i run it as a win form app i get a 401 error unauthorized
Process tweet has a filter for screen names and
textBox1.Text = tweet.Creator.ScreenName + " :-->> " + tweet.Text;

Everything works fine as a console program but the windows form gets and error from the StreamResultsGenerator.cs

if (_lastException != null && StreamStopped == null)
             throw _lastException;
Jan 16, 2014 at 8:18 AM

There should be no issue. I have already developed many Winform application with Stream and never got any issue.
Please download the project example.

Let me know if this works on your machine and whether you are able to adapt it to your requirements.
Jan 16, 2014 at 10:08 PM
Perfect that works, just one more question.

How do I add the Screen name of the tweet creator to the code below, I have my incoming tweets filtered through a couple specific tweet.Creator.ScreenName.

tweetsTextBox.Text += String.Format("> {0}\r\n", ((ITweet) progressChangedEventArgs.UserState).Text);

Jan 16, 2014 at 10:14 PM
I am not sure I understand your question entirely.
What I understand is that you want to add the name of the user who created the tweet in your Textbox.

If ny understanding of the question is correct then:
var tweet = ((ITweet) progressChangedEventArgs.UserState);
string tweetCreator = tweet.Creator.ScreenName;
string tweetText = tweet.Text;
var message =
tweetsTextBox.Text += String.Format("> {0} : {1}", tweetCreator, tweetText);