<?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>Gorancic.com &#187; .Net</title>
	<atom:link href="http://www.gorancic.com/blog/category/net/feed" rel="self" type="application/rss+xml" />
	<link>http://www.gorancic.com/blog</link>
	<description>Gorancic.com Blog</description>
	<lastBuildDate>Sun, 22 Jan 2012 10:49:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CrossCollaborate</title>
		<link>http://www.gorancic.com/blog/net/crosscollaborate</link>
		<comments>http://www.gorancic.com/blog/net/crosscollaborate#comments</comments>
		<pubDate>Wed, 03 Feb 2010 03:25:11 +0000</pubDate>
		<dc:creator>Beno Gorancic</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Collaboration]]></category>
		<category><![CDATA[CrossCollaborate]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.gorancic.com/blog/?p=175</guid>
		<description><![CDATA[CrossCollaborate is a software solution that I developed in 2009 as a major project which was part of my Thesis, collectively known as CAPSTONE at the University of Technology, Sydney. CrossCollaborate is a network based diagramming tool which allows users to interact in real-time and work on one or multiple diagrams simultaneously. It is an [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://gorancic.com/blog/wp-content/uploads/CrossCollaboratePoster.jpg"><img class="alignright" title="CrossCollaborate Poster" src="http://gorancic.com/blog/wp-content/uploads/CrossCollaboratePoster-thumb.jpg" alt="" width="150" height="212" /></a>CrossCollaborate is a software solution that I developed in 2009 as a major project which was part of my Thesis, collectively known as CAPSTONE at the University of Technology, Sydney.  CrossCollaborate is a network based diagramming tool which allows users to interact in real-time and work on one or multiple diagrams simultaneously.  It is an easy to use application which supports single user mode that can be run without the server.  The purpose of the application is to allow users to interact in real-time regardless of their physical location and share information.</p>
<p>Some features which have been implemented include cut/copy/paste, undo/redo, drag/drop, freely move and re-size objects on the surface, zoom-in/zoom-out and print/print preview. <a href="http://gorancic.com/blog/wp-content/uploads/CrossCollaborate.jpg"><img class="alignright" title="CrossCollaborate" src="http://gorancic.com/blog/wp-content/uploads/CrossCollaborate-thumb.jpg" alt="" width="150" height="117" /></a>  See the <a href="http://gorancic.com/blog/wp-content/uploads/CrossCollaboratePoster.jpg" title="Poster">poster</a> for more information. </p>
<p>The solution is entirely written in C# using an Object-Oriented approach. It is Event-Driven and is based on the Model-View-Controller and Client-Server architecture.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gorancic.com/blog/net/crosscollaborate/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TPG bitometer</title>
		<link>http://www.gorancic.com/blog/net/tpgbitometer</link>
		<comments>http://www.gorancic.com/blog/net/tpgbitometer#comments</comments>
		<pubDate>Sun, 03 May 2009 09:48:51 +0000</pubDate>
		<dc:creator>Beno Gorancic</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[bitometer]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[TPG]]></category>
		<category><![CDATA[TPG usage meter]]></category>
		<category><![CDATA[usage meter]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.gorancic.com/blog/?p=97</guid>
		<description><![CDATA[TPG bitometer (aka TPG usage meter) is an internet usage meter which allows customers of TPG Internet to check, monitor and keep a history of their quota usage based on data provided by TPG. TPGbitometer can also be used to check the TPG e-mail inbox. It is available for download, free of charge. TPG bitometer [...]]]></description>
			<content:encoded><![CDATA[<p>TPG bitometer (aka TPG usage meter) is an internet usage meter which allows customers of TPG Internet to check, monitor and keep a history of their quota usage based on data provided by TPG. TPGbitometer can also be used to check the TPG e-mail inbox.</p>
<p>It is available for <a href="http://www.gorancic.com/files/TPGbitometer/TPGbitometer.zip" title="Download TPG bitometer">download</a>, free of charge.</p>
<p>TPG bitometer includes the following features:</p>
<ul>
<li>Compatible with 32bit and 64bit Windows.</li>
<li>No installation, single file download, nothing written to the registry.</li>
<li>Support for multiple TPG accounts.</li>
<li>Display basic information about the plan user signed up to.</li>
<li>Display number of days remaining until quota resets.</li>
<li>Display remaining peak/off-peak quota as a percentage and in megabytes.</li>
<li>Display used peak/off-peak quota as a percentage and in megabytes.</li>
<li>Display and keep a history of download usage in days, months and years.</li>
<li>Display remaining daily peak/off-peak quota for the current month.</li>
<li>Display the current service status reported by TPG.</li>
<li>Display remaining days, peak and off-peak usage in the system tray.</li>
<li>Ability to check if there is any email in the TPG inbox.</li>
<li>Ability to delete emails.</li>
<li>Ability to view email messages within the program.</li>
<li>Ability to run the program at start-up and delay the usage update.</li>
<li>Ability to check for program updates.</li>
<li>Change colour of the system tray icon.</li>
</ul>
<p><a href="http://www.gorancic.com/files/TPGbitometer/usage.png"><img class="alignnone" title="TPG bitometer (usage screen)" src="http://www.gorancic.com/files/TPGbitometer/usage-thumb.png" alt="TPG bitometer (usage screen)" width="148" height="80" /></a> <a href="http://www.gorancic.com/files/TPGbitometer/popup.png"><img class="alignnone" title="TPG bitometer (notification pop-up" src="http://www.gorancic.com/files/TPGbitometer/popup-thumb.png" alt="TPG bitometer (notification pop-up)" width="148" height="80" /></a> <a href="http://www.gorancic.com/files/TPGbitometer/about.png"><img class="alignnone" title="TPG bitometer (about screen)" src="http://www.gorancic.com/files/TPGbitometer/about-thumb.png" alt="TPG bitometer (about screen)" width="148" height="80" /></a></p>
<p><a href="http://www.gorancic.com/files/TPGbitometer/history-daily.png"><img class="alignnone" title="TPG bitometer (history screen)" src="http://www.gorancic.com/files/TPGbitometer/history-daily-thumb.png" alt="TPG bitometer (history screen)" width="148" height="80" /></a> <a href="http://www.gorancic.com/files/TPGbitometer/history-daily-tooltip.png"><img class="alignnone" title="TPG bitometer (history screen with tooltip)" src="http://www.gorancic.com/files/TPGbitometer/history-daily-tooltip-thumb.png" alt="TPG bitometer (history screen with tooltip)" width="148" height="80" /></a> <a href="http://www.gorancic.com/files/TPGbitometer/history-table.png"><img class="alignnone" title="TPG bitometer (table history screen)" src="http://www.gorancic.com/files/TPGbitometer/history-table-thumb.png" alt="TPG bitometer (table history screen)" width="148" height="80" /></a></p>
<p><a href="http://www.gorancic.com/files/TPGbitometer/email.png"><img class="alignnone" title="TPG bitometer (email screen)" src="http://www.gorancic.com/files/TPGbitometer/email-thumb.png" alt="TPG bitometer (email screen)" width="148" height="80" /></a> <a href="http://www.gorancic.com/files/TPGbitometer/status.png"><img class="alignnone" title="TPG bitometer (service status screen)" src="http://www.gorancic.com/files/TPGbitometer/status-thumb.png" alt="TPG bitometer (service status screen)" width="148" height="80" /></a> <a href="http://www.gorancic.com/files/TPGbitometer/settings.png"><img class="alignnone" title="TPG bitometer (settings screen)" src="http://www.gorancic.com/files/TPGbitometer/settings-thumb.png" alt="TPG bitometer (settings screen)" width="148" height="80" /></a></p>
<p><span id="more-97"></span></p>
<p><a href="http://www.gorancic.com/files/TPGbitometer/TPGbitometer.zip" title="Download TPG bitometer">Download TPG bitometer v1.2.3</a> (421kb)</p>
<p>Release notes :</p>
<p>** v1.2.3 ** (16/01/2012)<br />
- Fixed bug which prevented some users from shutting down the PC when the application was running.</p>
<p>** v1.2.2 ** (28/12/2011)<br />
- Fixed bug which prevented data retrieval for certain plans.<br />
- Fixed bug which hid the email content window behind the main application for some users.</p>
<p>** v1.2.1 ** (09/10/2011)<br />
- Updated program to reflect changes made on the TPG web site.</p>
<p>** v1.2.0 ** (08/05/2011)<br />
- Fixed bug introduced in v1.1.9.</p>
<p>** v1.1.9 ** (08/05/2011)<br />
- Added support for plans with counted uploads.<br />
- Added icon for colour picker under Settings tab.<br />
- Show some information for &#8216;Unlimited&#8217; plans.<br />
- Removed &#8216;Mini View&#8217; as it is redundant.<br />
- Removed the minimize and hide buttons.<br />
- Pressing the &#8216;X&#8217; button will hide the application.<br />
- Added a single-click to show the application next to the notification area.<br />
- Application is no longer shown in the taskbar.</p>
<p>** v1.1.8 ** (23/04/2011)<br />
- Retrieve data using a single HTTP session.<br />
- Display usage window when mouse cursor hovers over the notification icon.</p>
<p>** v1.1.7 ** (22/11/2010)<br />
- Fixed crash on StartUp related to History type.</p>
<p>** v1.1.6 ** (21/11/2010)<br />
- Support for multiple TPG accounts.<br />
- Display the date and time the usage was last updated on the TPG web site.<br />
- Display a message instead of an error for plans which are no longer monitored by TPG.<br />
- Additional tables to compliment graphs.<br />
- A Mini Form to show less information.<br />
- A different colour for weekdays in tables and graphs.<br />
- A new graphical user interface.<br />
- The interface now renders correctly under different DPI.<br />
- Enable/Disable the Settings->Apply button based on setting changes.<br />
- Increased the application icon resolution.<br />
- New PayPal icon.</p>
<p>** v1.1.5 ** (09/05/2010)<br />
- Updated program to reflect changes made on the TPG usage and status page.<br />
- Increased font of status message.<br />
- Added support for the unlimited plan.</p>
<p>** v1.1.4 ** (08/02/2010)<br />
- Updated service status page.<br />
- Reworded some error messages.</p>
<p>** v1.1.3 ** (18/11/2009)<br />
- Updated program to reflect minor changes made on the TPG usage page.</p>
<p>** v1.1.2 ** (22/09/2009)<br />
- Fixed a bug introduced in v1.1.1 related to checking for program updates on program start-up when an internet connection is not established.</p>
<p>** v1.1.1 ** (22/09/2009)<br />
- Updated program to reflect minor changes made on the TPG usage page.<br />
- Updated donate button link.<br />
- Updated status function to also check Mobile status.<br />
- Added feature to check for program updates during program start-up.<br />
- Changed default system tray text colour from WhiteSmoke to GreenYellow.</p>
<p>** v1.1.0 ** (21/08/2009)<br />
- Fixed a bug introduced in v1.0.9 where all users were treated as having peak and off-peak times.</p>
<p>** v1.0.9 ** (21/08/2009)<br />
- Updated program to reflect changes made on the TPG VoIP usage page.</p>
<p>** v1.0.8 ** (18/08/2009)<br />
- Updated program to reflect changes made on the TPG web site.</p>
<p>** v1.0.7 ** (19/07/2009)<br />
- Fixed a bug introduced in v1.0.6 which prevented users without off-peak time to<br />
  retrieve their usage.</p>
<p>** v1.0.6 ** (17/07/2009)<br />
- Fixed a bug where negative days were sometimes shown due to late TPG website updates.<br />
- Fixed some unexpected exceptions caused by broken TPG usage pages.<br />
- Added extra status messages.<br />
- Added feature to show usage as &#8216;remaining usage&#8217; or &#8216;used usage&#8217; for the monthly period.</p>
<p>** v1.0.5 ** (03/07/2009)<br />
- Fixed a bug where incorrect remaining daily peak/off-peak quota was shown when<br />
  there was less than 1 day remaining.<br />
- Added a new graph that shows monthly billing period download usage.<br />
- Added feature to show quota in megabytes or gigabytes.</p>
<p>** v1.0.4 ** (24/05/2009)<br />
- Added feature to view remaining daily peak/off-peak quota for the current month.<br />
- Fixed a typo in &#8216;Next month starts&#8217;<br />
- Fixed a crash when trying to continuously retrieve email with incorrect details.</p>
<p>** v1.0.3 ** (08/05/2009)<br />
- Fixed a bug where sometimes incorrect remaining days were shown.</p>
<p>** v1.0.2 ** (06/05/2009)<br />
- Added the ability to view email messages within the program.<br />
- Added an additional button to open WebMail.</p>
<p>** v1.0.1 ** (03/05/2009)<br />
- Added separate login data for email.</p>
<p>** v1.0.0 ** (03/05/2009)<br />
- First release to the public.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gorancic.com/blog/net/tpgbitometer/feed</wfw:commentRss>
		<slash:comments>93</slash:comments>
		</item>
		<item>
		<title>Removing white border on a ToolStrip</title>
		<link>http://www.gorancic.com/blog/net/removing-white-border-in-a-toolstrip</link>
		<comments>http://www.gorancic.com/blog/net/removing-white-border-in-a-toolstrip#comments</comments>
		<pubDate>Sun, 08 Mar 2009 02:30:59 +0000</pubDate>
		<dc:creator>Beno Gorancic</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Controls]]></category>
		<category><![CDATA[ToolStrip]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.gorancic.com/blog/?p=59</guid>
		<description><![CDATA[If you have ever used the ToolStrip control and changed its background colour, you will have noticed that it has a white border around it as show in the picture. This problem can be overcome with a simple override. Create a new file ToolStripOverride.cs and copy the following code. 1 2 3 4 5 6 [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://www.gorancic.com/blog/wp-content/uploads/toolstripline.gif" title="ToolStrip bug" class="alignright" width="169" height="120" />If you have ever used the ToolStrip control and changed its background colour, you will have noticed that it has a white border around it as show in the picture. This problem can be overcome with a simple override.</p>
<p>Create a new file ToolStripOverride.cs and copy the following code.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Windows.Forms</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">namespace</span> OverrideControls
<span style="color: #008000;">&#123;</span>
    <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> ToolStripOverride <span style="color: #008000;">:</span> ToolStripProfessionalRenderer
    <span style="color: #008000;">&#123;</span>
        <span style="color: #0600FF; font-weight: bold;">public</span> ToolStripOverride<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span> <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF; font-weight: bold;">protected</span> <span style="color: #0600FF; font-weight: bold;">override</span> <span style="color: #6666cc; font-weight: bold;">void</span> OnRenderToolStripBorder<span style="color: #008000;">&#40;</span>ToolStripRenderEventArgs e<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span> <span style="color: #008000;">&#125;</span>
    <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>Then inside the class where you have your ToolStrip control add the following line to the constructor.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;">myToolStripControl<span style="color: #008000;">.</span><span style="color: #0000FF;">Renderer</span> <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> ToolStripOverride<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.gorancic.com/blog/net/removing-white-border-in-a-toolstrip/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>C#: PayPal Donate Button</title>
		<link>http://www.gorancic.com/blog/net/c-paypal-donate-button</link>
		<comments>http://www.gorancic.com/blog/net/c-paypal-donate-button#comments</comments>
		<pubDate>Sun, 14 Dec 2008 04:15:41 +0000</pubDate>
		<dc:creator>Beno Gorancic</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Donate]]></category>
		<category><![CDATA[PayPal]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.gorancic.com/blog/?p=49</guid>
		<description><![CDATA[If you have a PayPal account and would like to add a donate button to your application you can use the following code. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 private void btnDonate_Click&#40;object sender, System.EventArgs e&#41; &#123; string url = &#34;&#34;; &#160; string [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a PayPal account and would like to add a donate button to your application you can use the following code.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> btnDonate_Click<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, <span style="color: #000000;">System</span><span style="color: #008000;">.</span><span style="color: #0000FF;">EventArgs</span> e<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
    <span style="color: #6666cc; font-weight: bold;">string</span> url <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;&quot;</span><span style="color: #008000;">;</span>
&nbsp;
    <span style="color: #6666cc; font-weight: bold;">string</span> business     <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;my@paypalemail.com&quot;</span><span style="color: #008000;">;</span>  <span style="color: #008080; font-style: italic;">// your paypal email</span>
    <span style="color: #6666cc; font-weight: bold;">string</span> description  <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;Donation&quot;</span><span style="color: #008000;">;</span>            <span style="color: #008080; font-style: italic;">// '%20' represents a space. remember HTML!</span>
    <span style="color: #6666cc; font-weight: bold;">string</span> country      <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;AU&quot;</span><span style="color: #008000;">;</span>                  <span style="color: #008080; font-style: italic;">// AU, US, etc.</span>
    <span style="color: #6666cc; font-weight: bold;">string</span> currency     <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;AUD&quot;</span><span style="color: #008000;">;</span>                 <span style="color: #008080; font-style: italic;">// AUD, USD, etc.</span>
&nbsp;
    url <span style="color: #008000;">+=</span> <span style="color: #666666;">&quot;https://www.paypal.com/cgi-bin/webscr&quot;</span> <span style="color: #008000;">+</span>
        <span style="color: #666666;">&quot;?cmd=&quot;</span> <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;_donations&quot;</span> <span style="color: #008000;">+</span>
        <span style="color: #666666;">&quot;&amp;business=&quot;</span> <span style="color: #008000;">+</span> business <span style="color: #008000;">+</span>
        <span style="color: #666666;">&quot;&amp;lc=&quot;</span> <span style="color: #008000;">+</span> country <span style="color: #008000;">+</span>
        <span style="color: #666666;">&quot;&amp;item_name=&quot;</span> <span style="color: #008000;">+</span> description <span style="color: #008000;">+</span>
        <span style="color: #666666;">&quot;&amp;currency_code=&quot;</span> <span style="color: #008000;">+</span> currency <span style="color: #008000;">+</span>
        <span style="color: #666666;">&quot;&amp;bn=&quot;</span> <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;PP%2dDonationsBF&quot;</span><span style="color: #008000;">;</span>
&nbsp;
    <span style="color: #000000;">System.<span style="color: #0000FF;">Diagnostics</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">Process</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Start</span><span style="color: #008000;">&#40;</span>url<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.gorancic.com/blog/net/c-paypal-donate-button/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Windows Forms with Rounded Corners</title>
		<link>http://www.gorancic.com/blog/net/windows-forms-with-rounded-corners</link>
		<comments>http://www.gorancic.com/blog/net/windows-forms-with-rounded-corners#comments</comments>
		<pubDate>Mon, 08 Dec 2008 07:53:24 +0000</pubDate>
		<dc:creator>Beno Gorancic</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Rounded corners]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.gorancic.com/blog/?p=47</guid>
		<description><![CDATA[Have you ever found yourself developing a custom user interface and needed rounded corners which work on different Windows Operating Systems? If you are using Windows Vista this is easily achieved by using a rounded PNG image with transparent corners and setting the transparency property. This however does not work on systems such as Windows [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever found yourself developing a custom user interface and needed rounded corners which work on different Windows Operating Systems?</p>
<p>If you are using Windows Vista this is easily achieved by using a rounded PNG image with transparent corners and setting the transparency property.  This however does not work on systems such as Windows XP.</p>
<p>The following C# code can be used to ensure you have rounded corners on a number of Windows Operating Systems.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&#91;</span>DllImport<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Gdi32.dll&quot;</span>, EntryPoint <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;CreateRoundRectRgn&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#93;</span>
<span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #0600FF; font-weight: bold;">extern</span> IntPtr CreateRoundRectRgn
<span style="color: #008000;">&#40;</span>
    <span style="color: #6666cc; font-weight: bold;">int</span> nLeftRect,      <span style="color: #008080; font-style: italic;">// x-coordinate of upper-left corner</span>
    <span style="color: #6666cc; font-weight: bold;">int</span> nTopRect,       <span style="color: #008080; font-style: italic;">// y-coordinate of upper-left corner</span>
    <span style="color: #6666cc; font-weight: bold;">int</span> nRightRect,     <span style="color: #008080; font-style: italic;">// x-coordinate of lower-right corner</span>
    <span style="color: #6666cc; font-weight: bold;">int</span> nBottomRect,    <span style="color: #008080; font-style: italic;">// y-coordinate of lower-right corner</span>
    <span style="color: #6666cc; font-weight: bold;">int</span> nWidthEllipse,  <span style="color: #008080; font-style: italic;">// height of ellipse</span>
    <span style="color: #6666cc; font-weight: bold;">int</span> nHeightEllipse  <span style="color: #008080; font-style: italic;">// width of ellipse</span>
<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #008080; font-style: italic;">// Set your own values</span>
Region <span style="color: #008000;">=</span> <span style="color: #000000;">System.<span style="color: #0000FF;">Drawing</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">Region</span><span style="color: #008000;">.</span><span style="color: #0000FF;">FromHrgn</span><span style="color: #008000;">&#40;</span>CreateRoundRectRgn<span style="color: #008000;">&#40;</span><span style="color: #FF0000;">1</span>, <span style="color: #FF0000;">1</span>, <span style="color: #FF0000;">10</span>, <span style="color: #FF0000;">10</span> <span style="color: #FF0000;">16</span>, <span style="color: #FF0000;">16</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.gorancic.com/blog/net/windows-forms-with-rounded-corners/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Visual Studio: How to build only the StartUp project</title>
		<link>http://www.gorancic.com/blog/net/visual-studio-how-to-build-only-the-startup-project</link>
		<comments>http://www.gorancic.com/blog/net/visual-studio-how-to-build-only-the-startup-project#comments</comments>
		<pubDate>Fri, 10 Oct 2008 02:52:13 +0000</pubDate>
		<dc:creator>Beno Gorancic</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Macros]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.gorancic.com/blog/?p=44</guid>
		<description><![CDATA[Have you ever found yourself working on a Visual Studio solution consisting of multiple projects and wanting to build only the start-up project using a shortcut key? Unfortunately for some bizarre reason Visual Studio 2005 and 2008 do not have this feature by default.  However, there is a simple solution to this. Create a macro [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever found yourself working on a Visual Studio solution consisting of multiple projects and wanting to build only the start-up project using a shortcut key?</p>
<p>Unfortunately for some bizarre reason Visual Studio 2005 and 2008 do not have this feature by default.  However, there is a simple solution to this. Create a macro and assign it a shortcut key.</p>
<p>First create a new macro module though Tools &gt; Macros with the following code</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="vbnet" style="font-family:monospace;"><span style="color: #0600FF;">Imports</span> System
<span style="color: #0600FF;">Imports</span> EnvDTE
<span style="color: #0600FF;">Imports</span> EnvDTE80
<span style="color: #0600FF;">Imports</span> System.<span style="color: #0000FF;">Diagnostics</span>
&nbsp;
<span style="color: #FF8000;">Public</span> Module BuildStartup
    <span style="color: #0600FF;">Sub</span> BuildStartup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
        DTE.<span style="color: #0000FF;">Solution</span>.<span style="color: #0000FF;">SolutionBuild</span>.<span style="color: #0000FF;">BuildProject</span><span style="color: #000000;">&#40;</span>DTE.<span style="color: #0000FF;">Solution</span>.<span style="color: #0000FF;">SolutionBuild</span>.<span style="color: #0000FF;">ActiveConfiguration</span>.<span style="color: #0000FF;">Name</span>, DTE.<span style="color: #0000FF;">Solution</span>.<span style="color: #0000FF;">SolutionBuild</span>.<span style="color: #0000FF;">StartupProjects</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span>, <span style="color: #0600FF;">False</span><span style="color: #000000;">&#41;</span>
    <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span>
<span style="color: #0600FF;">End</span> Module</pre></td></tr></table></div>

<p>Now that you have the macro, you simply assign it a shortcut key through Tools &gt; Options.  Look for &#8220;Keyboard” under “Environment”.  Find your macro in the command list and assign it a shortcut key.</p>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gorancic.com/blog/net/visual-studio-how-to-build-only-the-startup-project/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

