<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Software Rockstar &#187; WinForms</title>
	<atom:link href="http://www.softwarerockstar.com/tag/winforms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.softwarerockstar.com</link>
	<description>Coaching and mentoring on a journey from a Developer to an IT Leader</description>
	<lastBuildDate>Thu, 12 Nov 2009 18:12:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Silverlight &#8211; A Rich User Interface For The Web</title>
		<link>http://www.softwarerockstar.com/2007/09/silverlight-a-rich-user-interface-for-the-web/</link>
		<comments>http://www.softwarerockstar.com/2007/09/silverlight-a-rich-user-interface-for-the-web/#comments</comments>
		<pubDate>Tue, 11 Sep 2007 11:54:00 +0000</pubDate>
		<dc:creator>SoftwareRockstar</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[WinForms]]></category>
		<category><![CDATA[WinFX (.NET 3.0)]]></category>

		<guid isPermaLink="false">http://mharoon.wordpress.com/2007/09/11/silverlight-a-rich-user-interface-for-the-web/</guid>
		<description><![CDATA[The first version of Silverlight (formerly WPF/e) was recently released and can be downloaded from Microsoft&#8217;s web site. Contrary to what many people believe, Silverlight is not simply a rich media player for the web. Nor is it just a replacement or a competing product for Adobe Flash. Silverlight is a technology that allows developers [...]]]></description>
			<content:encoded><![CDATA[<div class="imageleft"><img src="http://softwarerockstar.com/wp-content/uploads/2007/09/silverlight_pic.png" alt="Microsoft Silverlight" title="Microsoft Silverlight" width="289" height="320"/></div>
<p>The first version of <a href="http://www.microsoft.com/silverlight/default_ns.aspx">Silverlight</a> (formerly WPF/e) was recently released and can be <a href="http://www.microsoft.com/silverlight/default_ns.aspx">downloaded</a> from Microsoft&#8217;s web site.</p>
<p>Contrary to what many people believe, Silverlight is not simply a rich media player for the web.  Nor is it just a replacement or a competing product for <a href="http://www.adobe.com/products/flash/">Adobe Flash</a>.  <a href="http://www.microsoft.com/silverlight/default_ns.aspx">Silverlight</a> is a technology that allows developers to deliver Windows-like rich user experience to the web.  This includes animations, vector graphics, music, movies, etc., but it also includes the ability to develop WinForms-like applications with grids, treeviews, toolbars, and so on and so forth.</p>
<p>To get started with Silverlight, checkout <a href="http://silverlight.net/Learn/LearnVideos.aspx#video262">these videos</a>, or see <a href="http://msdn.microsoft.com/theshow/episode.aspx?xml=theshow/en/episode063/manifest.xml">this demo</a> by Scott Guthrie and Jason Zander on the <a href="http://msdn.microsoft.com/theshow/default.aspx">.NET Show</a>.  If you are looking to develop a WinForms-like user experience, you may also appreciate <a href="http://community.netikatech.com/demos/">GOA WinForms</a> which is an implementation of standard System.Windows.Forms .NET library for both <a href="http://www.adobe.com/products/flash/">Adobe Flash</a> and <a href="http://www.microsoft.com/silverlight/default_ns.aspx">Silverlight</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.softwarerockstar.com/2007/09/silverlight-a-rich-user-interface-for-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.NET 2.0: On-demand Configuration Encryption</title>
		<link>http://www.softwarerockstar.com/2006/10/net-2-0-on-demand-configuration-encryption/</link>
		<comments>http://www.softwarerockstar.com/2006/10/net-2-0-on-demand-configuration-encryption/#comments</comments>
		<pubDate>Mon, 02 Oct 2006 17:09:00 +0000</pubDate>
		<dc:creator>SoftwareRockstar</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[WinForms]]></category>

		<guid isPermaLink="false">http://mharoon.wordpress.com/2006/10/02/net-2-0-on-demand-configuration-encryption/</guid>
		<description><![CDATA[In .NET 2.0, apsnet_regiis can encrypt and decrypt sections of web.config and machine.config using RSA, DPAPI, or any other custom encryption provider. However, how do we encrypt/decrypt a custom application configuration (e.g. app.config of a WinForms application)? We are in luck, since the System.Configuration namespace provides everything we need to accomplish this task. The following [...]]]></description>
			<content:encoded><![CDATA[<div class="imageleft"><img src="http://softwarerockstar.com/wp-content/uploads/2006/10/encryption1.jpg" alt="Binary Code" width="300" height="244" class="alignnone size-full wp-image-325" /></div>
<p>In .NET 2.0, <a href="http://msdn2.microsoft.com/en-us/library/k6h9cz8h.aspx">apsnet_regiis</a> can encrypt and decrypt sections of web.config and machine.config using <a href="http://www.rsasecurity.com/">RSA</a>, <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsecure/html/windataprotection-dpapi.asp">DPAPI</a>, or any other custom encryption provider. However, how do we encrypt/decrypt a custom application configuration (e.g. app.config of a WinForms application)?</p>
<p>We are in luck, since the <a href="http://msdn2.microsoft.com/en-us/library/system.configuration.aspx">System.Configuration </a>namespace provides everything we need to accomplish this task. The following class, for example, can be used to encrypt/decrypt any .NET configuration file:</p>
<pre class="brush: csharp">
///
/// Implements a utility class that enables encrypting / decrypting
/// sections in .NET configuration files.
///
internal static class ConfigEncryptionHelper
{
    #region Encryption Methods

    ///
    /// Encrypts a section in a .NET configuration file using a named provider.
    ///
    /// Physical path of configuration file.
    /// Section name to encrypt.
    /// Name of the encryption provider.
    public static void EncryptConfigSection(string configPath, string sectionName, string protectionProviderName)
    {
        // Map the configuration file
        ExeConfigurationFileMap fileMap = new ExeConfigurationFileMap();
        fileMap.ExeConfigFilename = configPath;

        // Open configuration file
        Configuration config = ConfigurationManager.OpenMappedExeConfiguration(fileMap, ConfigurationUserLevel.None);

        // Get the desired section
        ConfigurationSection section = config.GetSection(sectionName);

        // Encrypt the section
        if (!section.SectionInformation.IsProtected)
            section.SectionInformation.ProtectSection(protectionProviderName);

        // Save configuration file
        config.Save();
    }

    ///
    /// Encrypts a section in a .NET configuration file using DataProtectionProvider.
    ///
    /// Physical path of configuration file.
    /// Section name to encrypt.
    public static void EncryptConfigSection(string configPath, string sectionName)
    {
        EncryptConfigSection(configPath, sectionName, &quot;DataProtectionConfigurationProvider&quot;);
    }

    #endregion

    #region Decryption Methods

    ///
    /// Decrypts a section in a .NET configuration file.
    ///
    /// Physical path of configuration file.
    /// Section name to encrypt.
    public static void DecryptConfigSection(string configPath, string sectionName)
    {
        // Map the configuration file
        ExeConfigurationFileMap fileMap = new ExeConfigurationFileMap();
        fileMap.ExeConfigFilename = configPath;

        // Open configuration file
        Configuration config = ConfigurationManager.OpenMappedExeConfiguration(fileMap, ConfigurationUserLevel.None);

        // Get the desired section
        ConfigurationSection section = config.GetSection(sectionName);

        // Decrypt section
        if (section.SectionInformation.IsProtected)
            section.SectionInformation.UnprotectSection();

        // Save configuration file
        config.Save();

    }

    #endregion
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.softwarerockstar.com/2006/10/net-2-0-on-demand-configuration-encryption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Client Side Reports in Visual Studio 2005</title>
		<link>http://www.softwarerockstar.com/2006/08/client-side-reports-in-visual-studio-2005/</link>
		<comments>http://www.softwarerockstar.com/2006/08/client-side-reports-in-visual-studio-2005/#comments</comments>
		<pubDate>Thu, 17 Aug 2006 14:13:00 +0000</pubDate>
		<dc:creator>SoftwareRockstar</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Reporting]]></category>
		<category><![CDATA[SQL Reporting Services]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[WinForms]]></category>

		<guid isPermaLink="false">http://mharoon.wordpress.com/2006/08/17/client-side-reports-in-visual-studio-2005/</guid>
		<description><![CDATA[Perhaps the best kept secret (or at least the least discussed feature) of Visual Studio 2005 is the client-side reports. Client-side reports consists of the Report Viewer Control and it&#8217;s accompanying Report Designer that comes standard with Visual Studio 2005 Professional and up. This feature can be used to develop ASP.NET or WinForms solutions that [...]]]></description>
			<content:encoded><![CDATA[<p>Perhaps the best kept secret (or at least the least discussed feature) of Visual Studio 2005 is the client-side reports. Client-side reports consists of the <a href="http://msdn2.microsoft.com/en-us/library/ms251671.aspx">Report Viewer Control</a> and it&#8217;s accompanying Report Designer that comes standard with Visual Studio 2005 Professional and up.</p>
<p>This feature can be used to develop ASP.NET or <span class="blsp-spelling-error">WinForms</span> solutions that sport <a href="http://microsoft.com/sql/reporting/"><span class="blsp-spelling-error">SQL</span> Server Reporting Services</a> style reports, without having to deploy those reports to a Reporting Server. Reports are deployed as <span class="blsp-spelling-error">RDLC</span> files with your solutions. In fact one doesn&#8217;t even need <span class="blsp-spelling-error">SQL</span> Server, since these reports can be <span class="blsp-spelling-error">programatically</span> bound to objects such as <span class="blsp-spelling-error">DataSets</span>, a huge plus for <span class="blsp-spelling-error">ditributed</span> n-tier designs where the <span class="blsp-spelling-error">UI</span> layer does not have direct access to the data store. This also means that one can use any imaginable back-end data store including XML and <span class="blsp-spelling-error">CSV</span> files as long as data can be loaded into <span class="blsp-spelling-error">binable</span> objects.</p>
<p>The report viewer control is similar to Reporting Services report viewer, with nifty features such as paging, searching, and export (<span class="blsp-spelling-error">PDF</span>, Excel, <span class="blsp-spelling-error">CSV</span>) features. My only complain with the ASP.NET version of the report viewer is that it does not directly support printing. Reports have to be exported to <span class="blsp-spelling-error">PDF</span> in order for one to print. This was a gotcha with the first versions of Reporting Services report viewer as well, but later they added printing support to the control (perhaps through <span class="blsp-spelling-error">ActiveX</span>) in Reporting Services SP1.</p>
<p>You can find more information about this feature at <a href="http://www.gotreportviewer.com/"><span class="blsp-spelling-error">GotReportViewer</span></a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.softwarerockstar.com/2006/08/client-side-reports-in-visual-studio-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->