How to display tweets for Windows 7 Forms

Mar 8, 2013 at 5:50 PM
Edited Mar 8, 2013 at 5:51 PM
Hi, i'm trying to display the tweets like in twitter.com timeline but i can't seem to find a way to customize the ListView and even if i find a way some day how can i add the image of the user who tweeted each tweet.

This is the code im using:
        private void button2_Click(object sender, EventArgs e)
        {
            
            var ctx = new TwitterContext(auth);
            HomeStatusQuery(ctx);
            
        }

        void PrintTweetsResults(IQueryable<Status> tweets)
        {
            int i = 0;
            tweets.ToList().ForEach(
              tweet => listView1.Items.Add(tweet.User.Name + " : " + tweet.Text));

            var tweetey = tweets.FirstOrDefault();

            if (tweetey.Entities.HashTagMentions.Count == 1)
            {
             listView1.Items.Add("Hashtag entity: {0}", tweetey.Entities.HashTagMentions[i].Tag);
            }
        }

        void HomeStatusQuery(TwitterContext twitterCtx)
        {
            var queryResponse =
                from tweet in twitterCtx.Status
                where tweet.Type == StatusType.Home
                select tweet;

            Console.WriteLine("\nTweets for " + twitterCtx.UserName + "\n");

            PrintTweetsResults(queryResponse);
        }
Please help me.
Coordinator
Mar 9, 2013 at 2:42 AM
You can get help for LINQ to Twitter here, but Windows Forms is another subject. Here's a link that might help you get started:

http://msdn.microsoft.com/en-us/library/6dwb14tw.aspx

@JoeMayo
Mar 9, 2013 at 10:43 PM
Thanks for the help i appreciate it i was able to display tweets in a List view but still trying to add the images. Thanks for replying i will your link a try.