<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Windows Forms</title>
        <link>http://geekswithblogs.net/juang/category/3418.aspx</link>
        <description>Windows Forms</description>
        <language>en-US</language>
        <copyright>Juan Ignacio Gelos</copyright>
        <managingEditor>juangelos@gmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>Quasi LINQ today</title>
            <link>http://geekswithblogs.net/juang/archive/2005/12/05/62256.aspx</link>
            <description>
&lt;p&gt;If the following snippet catches your attention, you ought to check &lt;a href="http://www.lastcomponent.com"&gt;The Last Component&lt;/a&gt;. It's real, and they 
don't touch the compiler,&amp;nbsp;they do it&amp;nbsp;overloading operators. 
Brilliant.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.juanignaciogelos.com/files/lastcomp_intellisense.gif"&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=62256"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=62256" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/juang/aggbug/62256.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Juan Ignacio Gelos</dc:creator>
            <guid>http://geekswithblogs.net/juang/archive/2005/12/05/62256.aspx</guid>
            <pubDate>Mon, 05 Dec 2005 21:18:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/juang/comments/62256.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/juang/archive/2005/12/05/62256.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/juang/comments/commentRss/62256.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/juang/services/trackbacks/62256.aspx</trackback:ping>
        </item>
        <item>
            <title>HOW TO Enable ClickOnce Compression on IIS </title>
            <link>http://geekswithblogs.net/juang/archive/2005/11/30/61660.aspx</link>
            <description>&lt;P&gt;ClickOnce supports using HTTP compression for the file downloads, a Web server technology that uses the GZIP algorithm to compress a data stream before sending it to the client. The client&amp;#8212;in this case, ClickOnce&amp;#8212;decompresses the stream before reading the files. This results in shorter download times for your ClickOnce deployments.&lt;/P&gt;
&lt;DIV class=content&gt;
&lt;P&gt;If you are using Internet Information Services (IIS), you can enable HTTP compression easily. &lt;/P&gt;
&lt;P&gt;&lt;B&gt;Enable Compression in IIS &lt;/B&gt;
&lt;P&gt;
&lt;UL&gt;
&lt;LI&gt;From the IIS snap-in, right-click on the Web Sites node and click on Properties 
&lt;LI&gt;Select the Service tab - Enable Compress application files 
&lt;LI&gt;Enable Compress static files 
&lt;LI&gt;Change Temporary Directory to a folder that you created (the IUSR_{machinename} will need write permission to the folder), or leave it at it's default 
&lt;LI&gt;Set the max size of the temp folder to something that the hard drive can handle. i.e. 1000. 
&lt;LI&gt;Save and close the Web Site Properties dialog &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;However, this only activates it for certain file types&amp;#8212;namely, HTML and text files. In order to activate compression for assemblies (.dll), XML (.xml), deployment manifests (.deploy) and application manifests (.manifest), you must add these file types to IIS's list of types to compress. Until you do this, none of the files in your deployment except text and HTML files will be compressed.&lt;/P&gt;
&lt;P&gt;To add the document types for ClickOnce deployment files (.application, .manifest, .deploy, .dll, .exe, etc.), follow these steps:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;NOTE&lt;/STRONG&gt;: The commands in step 3 replace the previously defined file extensions. It does not append them to the existing file extensions. &lt;/P&gt;
&lt;P&gt; 1. Open a command prompt session. To do this, click Start, click Run, type CMD, and the click OK. &lt;BR&gt;2. Change the directory to your \InetPub\AdminScripts folder. To do this, type CD \Inetpub\AdminScripts, and then press ENTER. &lt;BR&gt;3. Type the following commands:&lt;/P&gt;
&lt;P&gt;CSCRIPT.EXE ADSUTIL.VBS SET W3Svc/Filters/Compression/GZIP/HcFileExtensions "htm" "html" "txt" "application" "manifest" "deploy" "exe" "dll"&lt;/P&gt;
&lt;P&gt;CSCRIPT.EXE ADSUTIL.VBS SET W3Svc/Filters/Compression/DEFLATE/HcFileExtensions "htm" "html" "txt" "application" "manifest" "deploy" "exe" "dll"&lt;/P&gt;
&lt;P&gt;IISRESET.EXE  (this will reset Web services)&lt;/P&gt;
&lt;P&gt;In case you also want to enable compression for ASP.NET Web pages and Web services, drop in these (extra) two lines before the IISRESET:&lt;/P&gt;
&lt;P&gt;CSCRIPT.EXE ADSUTIL.VBS SET W3Svc/Filters/Compression/GZIP/HcScriptFileExtensions "asp" "dll" "exe" "aspx" "asmx"&lt;/P&gt;
&lt;P&gt;CSCRIPT.EXE ADSUTIL.VBS SET W3Svc/Filters/Compression/DEFLATE/HcScriptFileExtensions "asp" "dll" "exe" "aspx" "asmx"&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Testing&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;To test the web server is compressing you can do two things:&lt;/P&gt;
&lt;P&gt;1. Check the "...WINDOWS\IIS Temporary Compressed Files" folder on the server and see if new files are added as you go through the ClickOnce installation process.&lt;/P&gt;
&lt;P&gt;2. Use &lt;A href="http://netcat.sourceforge.net/"&gt;&lt;FONT color=#5f40a8&gt;netcat&lt;/FONT&gt;&lt;/A&gt; (yes, yes, from the old days of hackerish "security tools", nothing beats netcat yet) to manually send an HTTP request to the server and see if the HTTP response contains the header "Content-Encoding: gzip"&lt;/P&gt;
&lt;P&gt;A sample HTTP request header you would send is:&lt;/P&gt;
&lt;P&gt;GET /clientes/ventas/Ventas_1_0_0_8/Ventas.exe.deploy HTTP/1.1&lt;BR&gt;Accept: */*&lt;BR&gt;Accept-Language: es-ar&lt;BR&gt;Accept-Encoding: gzip, deflate&lt;BR&gt;Host: youhost.yourdomain.com&lt;BR&gt;Connection: Keep-Alive&lt;/P&gt;
&lt;P&gt;where the "replaceable parameters" are "youhost.yourdomain.com" for your webserver HOST, and "/clientes/ventas/Ventas_1_0_0_8/Ventas.exe.deploy" for the URL path to your application's exe .deploy file&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Sources&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;IIS Compression in IIS6.0&lt;BR&gt;&lt;A href="http://www.wwwcoder.com/main/parentid/170/site/3669/68/default.aspx"&gt;&lt;FONT color=#5f40a8&gt;http://www.wwwcoder.com/main/parentid/170/site/3669/68/default.aspx&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;HOW TO: Enable ASPX Compression in IIS&lt;BR&gt;&lt;A href="http://support.microsoft.com/default.aspx?scid=kb;en-us;322603"&gt;&lt;FONT color=#5f40a8&gt;http://support.microsoft.com/default.aspx?scid=kb;en-us;322603&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Troubleshooting ClickOnce Deployments&lt;BR&gt;&lt;A href="http://msdn2.microsoft.com/library/fb94w1t5(en-us,vs.80).aspx"&gt;&lt;FONT color=#5f40a8&gt;http://msdn2.microsoft.com/library/fb94w1t5(en-us,vs.80).aspx&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=61660"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=61660" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/juang/aggbug/61660.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Juan Ignacio Gelos</dc:creator>
            <guid>http://geekswithblogs.net/juang/archive/2005/11/30/61660.aspx</guid>
            <pubDate>Wed, 30 Nov 2005 10:11:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/juang/comments/61660.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/juang/archive/2005/11/30/61660.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/juang/comments/commentRss/61660.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/juang/services/trackbacks/61660.aspx</trackback:ping>
        </item>
        <item>
            <title>Krypton Tookit</title>
            <link>http://geekswithblogs.net/juang/archive/2005/11/28/61448.aspx</link>
            <description>&lt;P&gt;Component Factory has released a free set of Windows Forms user interface controls. It's called the &lt;A href="http://www.componentfactory.com/downloads.php"&gt;Krypton Toolkit&lt;/A&gt;&amp;nbsp;and it's targeted at Visual Studio 2005 and .NET Framework 2.0.&lt;/P&gt;
&lt;P&gt;It's free for commercial use. It includes several controls:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Krypton Button
&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Krypton Group
&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Krypton Header
&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Krypton HeaderGroup
&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Krypton SplitContainer
&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Krypton Panel
&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Krypton Label&lt;/LI&gt;&lt;/UL&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=61448"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=61448" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/juang/aggbug/61448.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Juan Ignacio Gelos</dc:creator>
            <guid>http://geekswithblogs.net/juang/archive/2005/11/28/61448.aspx</guid>
            <pubDate>Mon, 28 Nov 2005 18:18:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/juang/comments/61448.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/juang/archive/2005/11/28/61448.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/juang/comments/commentRss/61448.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/juang/services/trackbacks/61448.aspx</trackback:ping>
        </item>
        <item>
            <title>Free XP Themed Common Controls</title>
            <link>http://geekswithblogs.net/juang/archive/2005/11/28/61429.aspx</link>
            <description>&lt;P&gt;The &lt;A href="http://www.steepvalley.net/dev/projects/xpcc/xpcc.aspx" target=_blank&gt;&lt;FONT color=#5f40a8&gt;SteepValley.NET: XP Common Controls&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp;are a collection of themed and unthemed controls that are currently missing from the Visual Studio IDE.&lt;/P&gt;
&lt;P&gt;This project is available for free including the source code.&lt;/P&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=61429"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=61429" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/juang/aggbug/61429.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Juan Ignacio Gelos</dc:creator>
            <guid>http://geekswithblogs.net/juang/archive/2005/11/28/61429.aspx</guid>
            <pubDate>Mon, 28 Nov 2005 16:30:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/juang/comments/61429.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/juang/archive/2005/11/28/61429.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/juang/comments/commentRss/61429.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/juang/services/trackbacks/61429.aspx</trackback:ping>
        </item>
        <item>
            <title>DataGridView cells focus-rectangle</title>
            <link>http://geekswithblogs.net/juang/archive/2005/11/28/61380.aspx</link>
            <description>&lt;P&gt;| From: "Juan Ignacio Gelos"&lt;BR&gt;| Subject: DataGridView&lt;BR&gt;| Date: Mon, 10 Jan 2005 14:07:46 -0300&lt;BR&gt;| Lines: 11&lt;BR&gt;| &lt;BR&gt;| Hi,&lt;BR&gt;| &lt;BR&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Any simple, non-overcomplicated way of preventing the focus-rectangle&lt;BR&gt;| from being drawn in cells? By the way, and in case this wasnt corrected in&lt;BR&gt;| the latest builds, this should be the default behavior when SelectionMode &lt;BR&gt;=&lt;BR&gt;| FullRowSelect.&lt;BR&gt;| &lt;BR&gt;| Thanks,&lt;BR&gt;| Juan&lt;BR&gt;| &lt;BR&gt;&lt;BR&gt;In Beta1 build you handle the RowPrePaint event and set the CellsPaintFocus &lt;BR&gt;to false. In Beta2 builds you can leave it the same or handle the CellPaint &lt;BR&gt;event and OR out the Focus paint parts.&lt;BR&gt;&lt;BR&gt;The grid always has the notion of current cell, even in FullRowSelect. This &lt;BR&gt;enables editing of specific cell in a row.&lt;BR&gt;&lt;BR&gt;Thanks,&lt;BR&gt;-mark&lt;BR&gt;NET Client Program Manager&lt;BR&gt;This post is provided "as-is"&lt;BR&gt;&lt;/P&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=61380"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=61380" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/juang/aggbug/61380.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Juan Ignacio Gelos</dc:creator>
            <guid>http://geekswithblogs.net/juang/archive/2005/11/28/61380.aspx</guid>
            <pubDate>Mon, 28 Nov 2005 10:58:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/juang/comments/61380.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/juang/archive/2005/11/28/61380.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/juang/comments/commentRss/61380.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/juang/services/trackbacks/61380.aspx</trackback:ping>
        </item>
    </channel>
</rss>