<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>"Git Over Here": Making Your Windows Mind Their Manners (Matt Gertz)</title><link>http://blogs.msdn.com/b/vbteam/archive/2008/04/03/git-over-here-making-your-windows-mind-their-manners-matt-gertz.aspx</link><description>Supporting the “pajama programmer” 
 Telecommuting is a great thing, and as the environmentally-conscious person that I strive to be, is something I wholeheartedly endorse when it can be done practically. My current job involves a lot of face-to-face</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: "Git Over Here": Making Your Windows Mind Their Manners (Matt Gertz)</title><link>http://blogs.msdn.com/b/vbteam/archive/2008/04/03/git-over-here-making-your-windows-mind-their-manners-matt-gertz.aspx#9591573</link><pubDate>Wed, 06 May 2009 19:40:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9591573</guid><dc:creator>VBTeam</dc:creator><description>&lt;p&gt;Nope, not just text. &amp;nbsp;The really cool thing is that ListBox actually uses objects -- you could certainly insert just strings into it if you wanted too, since strings are objects too, but it's better to insert all of the associated information so that you don't have to track is separately. &amp;nbsp;Take a look at ChildWinCallback, where I insert the whole WinWrapper object into the ListBox:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim wrappedWindow As New WinWrapper(lhWnd, c)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.WindowList.Items.Add(wrappedWindow)&lt;/p&gt;
&lt;p&gt;The only caveat is that you want the ListBox to display just the string portion. &amp;nbsp;ListBox calls ToString on the object to do the display, which means that you have to supply your own ToString method in WinWrapper, so that it doesn't use the default &amp;quot;ToString&amp;quot; method for objects (which just shows object goo -- not very readable).&lt;/p&gt;
&lt;p&gt;The result is code that's much more performant -- I get the whole object from the selection, so I don't have to look it up separately based on just the the string. &amp;nbsp;I'm pretty sure all of the list-related controls we ship support this object/ToString way of doing things -- definitely something to keep in mind in your own code!&lt;/p&gt;
&lt;p&gt;--Matt--*&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9591573" width="1" height="1"&gt;</description></item><item><title>re: "Git Over Here": Making Your Windows Mind Their Manners (Matt Gertz)</title><link>http://blogs.msdn.com/b/vbteam/archive/2008/04/03/git-over-here-making-your-windows-mind-their-manners-matt-gertz.aspx#9590967</link><pubDate>Wed, 06 May 2009 13:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9590967</guid><dc:creator>Guillermo</dc:creator><description>&lt;p&gt;Great article!&lt;/p&gt;
&lt;p&gt;However, this is not clear to me:&lt;/p&gt;
&lt;p&gt;'GitOverHereBtn_Click&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;For Each wrappedWindow As WinWrapper In Me.WindowList.SelectedItems&lt;/p&gt;
&lt;p&gt;How's it possible that you can convert the ListBox items into WinWrappers automatically? Aren't you getting only text back from the ListBox?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9590967" width="1" height="1"&gt;</description></item><item><title>re: "Git Over Here": Making Your Windows Mind Their Manners (Matt Gertz)</title><link>http://blogs.msdn.com/b/vbteam/archive/2008/04/03/git-over-here-making-your-windows-mind-their-manners-matt-gertz.aspx#9589970</link><pubDate>Wed, 06 May 2009 02:40:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9589970</guid><dc:creator>VBTeam</dc:creator><description>&lt;p&gt;Done -- mercifully, my schedule cleared up today, and I was able to write this up during the afternoon. &amp;nbsp;Check it out!&lt;/p&gt;
&lt;p&gt;--Matt--*&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9589970" width="1" height="1"&gt;</description></item><item><title>re: "Git Over Here": Making Your Windows Mind Their Manners (Matt Gertz)</title><link>http://blogs.msdn.com/b/vbteam/archive/2008/04/03/git-over-here-making-your-windows-mind-their-manners-matt-gertz.aspx#9589666</link><pubDate>Tue, 05 May 2009 23:54:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9589666</guid><dc:creator>jerry</dc:creator><description>&lt;p&gt;Great! now i'll have an idea on what to do to learn :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9589666" width="1" height="1"&gt;</description></item><item><title>re: "Git Over Here": Making Your Windows Mind Their Manners (Matt Gertz)</title><link>http://blogs.msdn.com/b/vbteam/archive/2008/04/03/git-over-here-making-your-windows-mind-their-manners-matt-gertz.aspx#9589211</link><pubDate>Tue, 05 May 2009 19:46:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9589211</guid><dc:creator>VBTeam</dc:creator><description>&lt;p&gt;This is a great question, Jerry, and one that deserves a better answer than me typing in a few sentences in the comment section. &amp;nbsp;I've decided that I'll be making this the topic of a blog post later this week -- so I'll have an answer (or, at least, an opinion) in a couple of days.&lt;/p&gt;
&lt;p&gt;--Matt--*&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9589211" width="1" height="1"&gt;</description></item><item><title>re: "Git Over Here": Making Your Windows Mind Their Manners (Matt Gertz)</title><link>http://blogs.msdn.com/b/vbteam/archive/2008/04/03/git-over-here-making-your-windows-mind-their-manners-matt-gertz.aspx#9586987</link><pubDate>Tue, 05 May 2009 02:12:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9586987</guid><dc:creator>jerry</dc:creator><description>&lt;p&gt;Another great acticle...&lt;/p&gt;
&lt;p&gt;But i must ask you something. I've been trying and trying, searching endlessly on the internet, but i can't find anything on the internet that really teaches me more. It's either easy stuff, or articles like these *gulp* that are way too far beyond me. And just experimenting takes forever, and usually doesn't show much results, because i don't know what to look for. How can i learn?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9586987" width="1" height="1"&gt;</description></item><item><title>Happy New Year! (Lisa Feigenbaum)</title><link>http://blogs.msdn.com/b/vbteam/archive/2008/04/03/git-over-here-making-your-windows-mind-their-manners-matt-gertz.aspx#9268230</link><pubDate>Fri, 02 Jan 2009 10:18:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9268230</guid><dc:creator>VB Feeds</dc:creator><description>&lt;p&gt;On behalf of the Microsoft Visual Basic team, I&amp;amp;#39;d like to wish all of our readers a happy &amp;amp;amp; healthy&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9268230" width="1" height="1"&gt;</description></item><item><title>Happy New Year! (Lisa Feigenbaum)</title><link>http://blogs.msdn.com/b/vbteam/archive/2008/04/03/git-over-here-making-your-windows-mind-their-manners-matt-gertz.aspx#9267982</link><pubDate>Fri, 02 Jan 2009 09:31:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9267982</guid><dc:creator>The Visual Basic Team</dc:creator><description>&lt;p&gt;On behalf of the Microsoft Visual Basic team, I'd like to wish all of our readers a happy &amp;amp;amp; healthy&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9267982" width="1" height="1"&gt;</description></item><item><title>ABウィンドウの位置を変更する方法 (Matt Gertz)</title><link>http://blogs.msdn.com/b/vbteam/archive/2008/04/03/git-over-here-making-your-windows-mind-their-manners-matt-gertz.aspx#8589094</link><pubDate>Tue, 10 Jun 2008 09:59:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8589094</guid><dc:creator>The Visual Basic Team</dc:creator><description>&lt;p&gt;&amp;quot; パジャマプログラマ&amp;quot; をサポートする 在宅勤務はすばらしいことです。環境にやさしい人でありたい私としては、現実的に実行できる場合は心から支持したいと考えます。私の現在の仕事は、人と対面するミーティングが多く、実際は在宅勤務する機会があまりありません。しかし、投稿するブログを練るときなどに夕方家で働くので、家から仕事ができる環境をセットアップすることは重要です。&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8589094" width="1" height="1"&gt;</description></item><item><title>re: "Git Over Here": Making Your Windows Mind Their Manners (Matt Gertz)</title><link>http://blogs.msdn.com/b/vbteam/archive/2008/04/03/git-over-here-making-your-windows-mind-their-manners-matt-gertz.aspx#8444053</link><pubDate>Wed, 30 Apr 2008 20:02:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8444053</guid><dc:creator>Emil</dc:creator><description>&lt;p&gt;If you don't mind scrolling, an alternative is to simply use VNC...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8444053" width="1" height="1"&gt;</description></item></channel></rss>