<?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>API Programming &#187; C++</title>
	<atom:link href="http://www.brangle.com/wordpress/tag/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brangle.com/wordpress</link>
	<description>Just another computer weblog</description>
	<lastBuildDate>Tue, 08 Sep 2009 05:41:12 +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>How to Use the Progress Bar in VB.NET and C#</title>
		<link>http://www.brangle.com/wordpress/2009/08/how-to-use-the-progress-bar-in-vb-net-and-c-sharp/</link>
		<comments>http://www.brangle.com/wordpress/2009/08/how-to-use-the-progress-bar-in-vb-net-and-c-sharp/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 03:32:38 +0000</pubDate>
		<dc:creator>lopezg</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.brangle.com/wordpress/?p=566</guid>
		<description><![CDATA[The progress bar is one of those universal objects that everyone recognizes, it's useful when doing a large or long task.  For example, if your updating/deleting/copying a bunch of files you can update the progress bar as you modify each file.]]></description>
			<content:encoded><![CDATA[<p>The progress bar is one of those universal objects that everyone recognizes, it&#8217;s useful when doing a large or long task.  For example, if your updating/deleting/copying a bunch of files you can update the progress bar as you modify each file.<span id="more-566"></span></p>
<div id="attachment_567" class="wp-caption aligncenter" style="width: 298px"><img src="http://www.brangle.com/wordpress/wp-content/uploads/2009/08/ProgressBarApp.jpg" alt="Progress Bar App with VB.NET and C#" title="Progress Bar App with VB.NET and C#" width="288" height="121" class="size-full wp-image-567" /><p class="wp-caption-text">Progress Bar App with VB.NET and C#</p></div>
<p>There are several lines of code to pay attention to, let me outline them here in further detail.<br />
<b>Line 7</b> &#8211; we can think of the maximum as how many steps their are.  We can say we want a 1000 steps, or only 20 steps.  This makes it useful if you want to update a random number of objects stored in an array, in that case we could store the <i>ProgressBar1.Maximum = UBound(arrSomeArray)</i>.<br />
<b>Line 9</b> &#8211; we are just initializing our progress bar to 0<br />
<b>Line 11</b> &#8211; we make the progress bar visible.  This step is up to you, I infrequently use the progress bar and I usually keep it hidden until I have a reason to display it.  If your progress bar is already visible you can delete this line of code<br />
<b>Line 13</b> &#8211; this line is completely unrelated to the progress bar, whatever value is specified in the <i>Sleep</i> argument is how long your application will wait to update.  In this application, I decided to wait 1000 milliseconds (or 1 second) before I goto the next step, this will allow us to see the progress bar update so we can simulate a test scenario.<br />
<b>Line 15-29</b> &#8211; This is just updating the progress bar, then waiting some more, nothing to special going on here. As you can see the value I am raising the progress bar is completely arbitrary.<br />
<b>Line 30</b> &#8211; Print out a message box saying complete<br />
<b>Line 31</b> &#8211; Hide the progress bar so that it is no longer visible, we&#8217;ve already told the user that the task is complete, there&#8217;s no need to continue showing the progress bar. Again, this line of code is entirely up to you.</p>
<p><b>This is the code for a VB.NET progress bar example</b></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
20
21
22
23
24
25
26
27
28
29
30
31
32
</pre></td><td class="code"><pre class="vbnet" style="font-family:monospace;"><span style="color: #008080; font-style: italic;">'This code was developed by Gerardo Lopez and was downloaded from www.brangle.com</span>
<span style="color: #008080; font-style: italic;">'Complete source code is available at:</span>
<span style="color: #008080; font-style: italic;">'http://www.brangle.com/wordpress/2009/08/how-to-use-the-progress-bar-in-vb-net-and-c-sharp/</span>
&nbsp;
<span style="color: #FF8000;">Private</span> <span style="color: #0600FF;">Sub</span> Button1_Click<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> sender <span style="color: #FF8000;">As</span> System.<span style="color: #FF0000;">Object</span>, <span style="color: #FF8000;">ByVal</span> e <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">EventArgs</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Handles</span> Button1.<span style="color: #0000FF;">Click</span>
    <span style="color: #008080; font-style: italic;">'Set the total number of steps to 100 (or 100%)</span>
    ProgressBar1.<span style="color: #0000FF;">Maximum</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">100</span>
    <span style="color: #008080; font-style: italic;">'Set the initial value of the progress bar to 0% completed</span>
    ProgressBar1.<span style="color: #0000FF;">Value</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span>
    <span style="color: #008080; font-style: italic;">'If your progress bar is already visible you don't need this. But this is one of those objects I like to hide when I'm not using it</span>
    ProgressBar1.<span style="color: #0000FF;">Visible</span> <span style="color: #008000;">=</span> <span style="color: #0600FF;">True</span>
    <span style="color: #008080; font-style: italic;">'This next line tells your application to wait or go to sleep for 1000ms / 1 second</span>
    System.<span style="color: #0000FF;">Threading</span>.<span style="color: #0000FF;">Thread</span>.<span style="color: #0000FF;">Sleep</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">1000</span><span style="color: #000000;">&#41;</span>
    <span style="color: #008080; font-style: italic;">'Update the progress bar to 15% completed</span>
    ProgressBar1.<span style="color: #0000FF;">Value</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">15</span>
    <span style="color: #008080; font-style: italic;">'Wait for another second</span>
    System.<span style="color: #0000FF;">Threading</span>.<span style="color: #0000FF;">Thread</span>.<span style="color: #0000FF;">Sleep</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">1000</span><span style="color: #000000;">&#41;</span>
    <span style="color: #008080; font-style: italic;">'Update to 30% complete</span>
    ProgressBar1.<span style="color: #0000FF;">Value</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">30</span>
    System.<span style="color: #0000FF;">Threading</span>.<span style="color: #0000FF;">Thread</span>.<span style="color: #0000FF;">Sleep</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">1000</span><span style="color: #000000;">&#41;</span>
    ProgressBar1.<span style="color: #0000FF;">Value</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">45</span>
    System.<span style="color: #0000FF;">Threading</span>.<span style="color: #0000FF;">Thread</span>.<span style="color: #0000FF;">Sleep</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">1000</span><span style="color: #000000;">&#41;</span>
    ProgressBar1.<span style="color: #0000FF;">Value</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">60</span>
    System.<span style="color: #0000FF;">Threading</span>.<span style="color: #0000FF;">Thread</span>.<span style="color: #0000FF;">Sleep</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">1000</span><span style="color: #000000;">&#41;</span>
    ProgressBar1.<span style="color: #0000FF;">Value</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">75</span>
    System.<span style="color: #0000FF;">Threading</span>.<span style="color: #0000FF;">Thread</span>.<span style="color: #0000FF;">Sleep</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">1000</span><span style="color: #000000;">&#41;</span>
    ProgressBar1.<span style="color: #0000FF;">Value</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">90</span>
    System.<span style="color: #0000FF;">Threading</span>.<span style="color: #0000FF;">Thread</span>.<span style="color: #0000FF;">Sleep</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">1000</span><span style="color: #000000;">&#41;</span>
    ProgressBar1.<span style="color: #0000FF;">Value</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">100</span>
    <span style="color: #0600FF;">MsgBox</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Complete!&quot;</span><span style="color: #000000;">&#41;</span>
    ProgressBar1.<span style="color: #0000FF;">Visible</span> <span style="color: #008000;">=</span> <span style="color: #0600FF;">False</span>
<span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span></pre></td></tr></table></div>

<p><b>This is the source code for a C# progress bar example</b><br />
The code only varies slightly in C#, I&#8217;ll make sure to explain any differences.  Besides the semicolons at the end of every line, only lines 12, 31, and 32 differ from the VB.NET example.<br />
<b>Line 12, Line 32</b> &#8211; Boolean values must be in lower case.<br />
<b>Line 31</b> &#8211; Showing a message box is slightly different in VB.NET, if you didn&#8217;t add the following headers <i>using System.Windows.Forms;</i> in your source code, then you will need to specify the full class name.  I included it so that this example can work on as many peoples projects as possible.  If you are already including <i>Systems.Windows.Forms</i> then you can show a message box by replacing line 31 with: <i>MessageBox.Show(&#8220;Complete!&#8221;);</i></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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
</pre></td><td class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #666666;">//This code was developed by Gerardo Lopez and was downloaded from www.brangle.com</span>
<span style="color: #666666;">//Complete source code is available at:</span>
<span style="color: #666666;">//http://www.brangle.com/wordpress/2009/08/how-to-use-the-progress-bar-in-vb-net-and-c-sharp/</span>
&nbsp;
<span style="color: #0000ff;">private</span> <span style="color: #0000ff;">void</span> button1_Click<span style="color: #008000;">&#40;</span>object sender, EventArgs e<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
    <span style="color: #666666;">//Set the total number of steps to 100 (or 100%)</span>
    progressBar1.<span style="color: #007788;">Maximum</span> <span style="color: #000080;">=</span> <span style="color: #0000dd;">100</span><span style="color: #008080;">;</span>
    <span style="color: #666666;">//Set the initial value of the progress bar to 0% completed</span>
    progressBar1.<span style="color: #007788;">Value</span> <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
    <span style="color: #666666;">//If your progress bar is already visible you don't need this. But this is one of those objects I like to hide when I'm not using it</span>
    progressBar1.<span style="color: #007788;">Visible</span> <span style="color: #000080;">=</span> <span style="color: #0000ff;">true</span><span style="color: #008080;">;</span>
    <span style="color: #666666;">//This next line tells your application to wait or go to sleep for 1000ms / 1 second</span>
    System.<span style="color: #007788;">Threading</span>.<span style="color: #007788;">Thread</span>.<span style="color: #007788;">Sleep</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">1000</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    <span style="color: #666666;">//Update the progress bar to 15% completed</span>
    progressBar1.<span style="color: #007788;">Value</span> <span style="color: #000080;">=</span> <span style="color: #0000dd;">15</span><span style="color: #008080;">;</span>
    <span style="color: #666666;">//Wait for another second</span>
    System.<span style="color: #007788;">Threading</span>.<span style="color: #007788;">Thread</span>.<span style="color: #007788;">Sleep</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">1000</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    <span style="color: #666666;">//Update to 30% complete</span>
    progressBar1.<span style="color: #007788;">Value</span> <span style="color: #000080;">=</span> <span style="color: #0000dd;">30</span><span style="color: #008080;">;</span>
    System.<span style="color: #007788;">Threading</span>.<span style="color: #007788;">Thread</span>.<span style="color: #007788;">Sleep</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">1000</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    progressBar1.<span style="color: #007788;">Value</span> <span style="color: #000080;">=</span> <span style="color: #0000dd;">45</span><span style="color: #008080;">;</span>
    System.<span style="color: #007788;">Threading</span>.<span style="color: #007788;">Thread</span>.<span style="color: #007788;">Sleep</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">1000</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    progressBar1.<span style="color: #007788;">Value</span> <span style="color: #000080;">=</span> <span style="color: #0000dd;">60</span><span style="color: #008080;">;</span>
    System.<span style="color: #007788;">Threading</span>.<span style="color: #007788;">Thread</span>.<span style="color: #007788;">Sleep</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">1000</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    progressBar1.<span style="color: #007788;">Value</span> <span style="color: #000080;">=</span> <span style="color: #0000dd;">75</span><span style="color: #008080;">;</span>
    System.<span style="color: #007788;">Threading</span>.<span style="color: #007788;">Thread</span>.<span style="color: #007788;">Sleep</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">1000</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    progressBar1.<span style="color: #007788;">Value</span> <span style="color: #000080;">=</span> <span style="color: #0000dd;">90</span><span style="color: #008080;">;</span>
    System.<span style="color: #007788;">Threading</span>.<span style="color: #007788;">Thread</span>.<span style="color: #007788;">Sleep</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">1000</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    progressBar1.<span style="color: #007788;">Value</span> <span style="color: #000080;">=</span> <span style="color: #0000dd;">100</span><span style="color: #008080;">;</span>
    System.<span style="color: #007788;">Windows</span>.<span style="color: #007788;">Forms</span>.<span style="color: #007788;">MessageBox</span>.<span style="color: #007788;">Show</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;Complete!&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    progressBar1.<span style="color: #007788;">Visible</span> <span style="color: #000080;">=</span> <span style="color: #0000ff;">false</span><span style="color: #008080;">;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.brangle.com/wordpress/2009/08/how-to-use-the-progress-bar-in-vb-net-and-c-sharp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Center A Form in VB.NET and C#</title>
		<link>http://www.brangle.com/wordpress/2009/08/how-to-center-a-form-in-vb-net-and-c-sharp/</link>
		<comments>http://www.brangle.com/wordpress/2009/08/how-to-center-a-form-in-vb-net-and-c-sharp/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 05:41:30 +0000</pubDate>
		<dc:creator>lopezg</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.brangle.com/wordpress/?p=550</guid>
		<description><![CDATA[I've often found it necessary to center a form on my screen using the pure code, but it's not as easy as <i>Me.center</i> in VB or <i>this.center()</i> in C# so I wrote some code to work around that. Using the code below you can center you application on your monitor in just 3 lines of code using either VB.NET or C#.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve often found it necessary to center a form on my screen using the pure code, but it&#8217;s not as easy as <i>Me.center</i> in Visual Basic or <i>this.center()</i> in C# so I wrote some code to work around that. Using the code below you can center you application on your monitor in just 3 lines of code using either VB.NET or C#.<span id="more-550"></span></p>
<p>The first thing you&#8217;ll notice is that I&#8217;m using <i>Screen.PrimaryScreen.WorkingArea</i> and not <i>Screen.PrimaryScreen.Bounds</i>, the bounds of the screen will give me the actual height/width of the monitor as coordinates.  But what it doesn&#8217;t take into account like the WorkingArea does are any docked items, such as the toolbar.  The WorkingArea returns the Bounds, and subtracts off any area unusable by the program to give us the &#8220;true&#8221; center.</p>
<p><b>(Source Code) Recenter your window using VB.NET</b></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: #008080; font-style: italic;">'This code was developed by Gerardo Lopez and was downloaded from www.brangle.com</span>
<span style="color: #008080; font-style: italic;">'Complete source code is available at:</span>
<span style="color: #008080; font-style: italic;">'http://www.brangle.com/wordpress/2009/08/how-to-center-a-form-in-vb-net-and-c-sharp/</span>
<span style="color: #FF8000;">Private</span> <span style="color: #0600FF;">Sub</span> Button1_Click<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> sender <span style="color: #FF8000;">As</span> System.<span style="color: #FF0000;">Object</span>, <span style="color: #FF8000;">ByVal</span> e <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">EventArgs</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Handles</span> Button1.<span style="color: #0000FF;">Click</span>
    <span style="color: #008080; font-style: italic;">'Get the working area of the screen and assign it to a rectangle object</span>
    <span style="color: #0600FF;">Dim</span> rect <span style="color: #FF8000;">As</span> Rectangle <span style="color: #008000;">=</span> Screen.<span style="color: #0000FF;">PrimaryScreen</span>.<span style="color: #0000FF;">WorkingArea</span>
    <span style="color: #008080; font-style: italic;">'Divide the screen in half, and find the center of the form to center it</span>
    <span style="color: #FF8000;">Me</span>.<span style="color: #0000FF;">Top</span> <span style="color: #008000;">=</span> <span style="color: #000000;">&#40;</span>rect.<span style="color: #0000FF;">Height</span> <span style="color: #008000;">/</span> <span style="color: #FF0000;">2</span><span style="color: #000000;">&#41;</span> <span style="color: #008000;">-</span> <span style="color: #000000;">&#40;</span><span style="color: #FF8000;">Me</span>.<span style="color: #0000FF;">Height</span> <span style="color: #008000;">/</span> <span style="color: #FF0000;">2</span><span style="color: #000000;">&#41;</span>
    <span style="color: #FF8000;">Me</span>.<span style="color: #0600FF;">Left</span> <span style="color: #008000;">=</span> <span style="color: #000000;">&#40;</span>rect.<span style="color: #0600FF;">Width</span> <span style="color: #008000;">/</span> <span style="color: #FF0000;">2</span><span style="color: #000000;">&#41;</span> <span style="color: #008000;">-</span> <span style="color: #000000;">&#40;</span><span style="color: #FF8000;">Me</span>.<span style="color: #0600FF;">Width</span> <span style="color: #008000;">/</span> <span style="color: #FF0000;">2</span><span style="color: #000000;">&#41;</span>
<span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span></pre></td></tr></table></div>

<p><b>(Source Code) Recenter your window using C#</b></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="cpp" style="font-family:monospace;"><span style="color: #666666;">//This code was developed by Gerardo Lopez and was downloaded from www.brangle.com</span>
<span style="color: #666666;">//Complete source code is available at:</span>
<span style="color: #666666;">//http://www.brangle.com/wordpress/2009/08/how-to-center-a-form-in-vb-net-and-c-sharp/</span>
<span style="color: #0000ff;">private</span> <span style="color: #0000ff;">void</span> button1_Click<span style="color: #008000;">&#40;</span>object sender, EventArgs e<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
    <span style="color: #666666;">//Get the working area of the screen and assign it to a rectangle object   </span>
   Rectangle rect <span style="color: #000080;">=</span> Screen.<span style="color: #007788;">PrimaryScreen</span>.<span style="color: #007788;">WorkingArea</span><span style="color: #008080;">;</span>
    <span style="color: #666666;">//Divide the screen in half, and find the center of the form to center it</span>
   <span style="color: #0000dd;">this</span>.<span style="color: #007788;">Top</span> <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>rect.<span style="color: #007788;">Height</span> <span style="color: #000040;">/</span> <span style="color: #0000dd;">2</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span><span style="color: #0000dd;">this</span>.<span style="color: #007788;">Height</span> <span style="color: #000040;">/</span> <span style="color: #0000dd;">2</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
   <span style="color: #0000dd;">this</span>.<span style="color: #007788;">Left</span> <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>rect.<span style="color: #007788;">Width</span> <span style="color: #000040;">/</span> <span style="color: #0000dd;">2</span><span style="color: #008000;">&#41;</span> <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span><span style="color: #0000dd;">this</span>.<span style="color: #007788;">Width</span> <span style="color: #000040;">/</span> <span style="color: #0000dd;">2</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.brangle.com/wordpress/2009/08/how-to-center-a-form-in-vb-net-and-c-sharp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hello World</title>
		<link>http://www.brangle.com/wordpress/2009/06/hello-world-2/</link>
		<comments>http://www.brangle.com/wordpress/2009/06/hello-world-2/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 09:06:34 +0000</pubDate>
		<dc:creator>lopezg</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.brangle.com/wordpress/?p=3</guid>
		<description><![CDATA[Ok, well we all know it's inevitable, my very first post has to be a hello world example, so let her rip....]]></description>
			<content:encoded><![CDATA[<p>Ok, well we all know it&#8217;s inevitable, my very first post has to be a hello world example, so let her rip&#8230;.<span id="more-3"></span></p>
<hr />
<h3>PHP</h3>
<pre>&lt;? echo 'Hello World!'; ?&gt;</pre>
<hr />
<h3>Java</h3>
<pre>public class HelloWorld
{
    public static void main(String[] args)
    {
        System.out.println("Hello World!");
    }
}</pre>
<hr />
<h3>C++</h3>
<pre>#include &lt;iostream&gt;

using namespace std;

int main()
{
    cout &lt;&lt; "Hello, world!\n";
    return 0;
}</pre>
<hr />Well as I did my first hello world programs, I think it became quickly apparent that I really need to figure out how to make the code on my website more readible.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brangle.com/wordpress/2009/06/hello-world-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
