<?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/tag/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>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>
	</channel>
</rss>

