<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Dot Net Tips &#38; Tricks</title>
	<atom:link href="http://dotnetdud.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dotnetdud.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sun, 30 May 2010 15:32:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dotnetdud.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Dot Net Tips &#38; Tricks</title>
		<link>http://dotnetdud.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dotnetdud.wordpress.com/osd.xml" title="Dot Net Tips &#38; Tricks" />
	<atom:link rel='hub' href='http://dotnetdud.wordpress.com/?pushpress=hub'/>
		<item>
		<title>C# &#8211; Get Selected Values from MultiSelect ListBox</title>
		<link>http://dotnetdud.wordpress.com/2010/05/30/c-get-selected-values-from-multiselect-listbox/</link>
		<comments>http://dotnetdud.wordpress.com/2010/05/30/c-get-selected-values-from-multiselect-listbox/#comments</comments>
		<pubDate>Sun, 30 May 2010 15:32:43 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[CSharpt]]></category>
		<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://dotnetdud.wordpress.com/?p=23</guid>
		<description><![CDATA[How to iterate MultiSelect ListBox using C# (.NET) Here is a way of retrieving the selected values of Multiselect listbox view plainprint? for (int i1 = 0; i1 &#60; listBox1.SelectedItems.Count; i1++) { DataRowView D1 = listBox1.SelectedItems[i1] as DataRowView; MessageBox.Show(D1[1].ToString()); } for (int i1 = 0; i1 &#60; listBox1.SelectedItems.Count; i1++) { DataRowView D1 = listBox1.SelectedItems[i1] as DataRowView; MessageBox.Show(D1[1].ToString()); } The above code uses SelectedItems collection to retrieve information // [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=23&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3><a href="http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html">How  to iterate MultiSelect ListBox using C# (.NET)</a></h3>
<div>
Here is a way of retrieving the selected values of Multiselect listbox</p>
<div>
<div>
<div><a href="http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html#">view  plain</a><a href="http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html#">print</a><a href="http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html#">?</a></div>
</div>
<ol>
<li>for (int i1 = 0; i1 &lt; listBox1.SelectedItems.Count; i1++)</li>
<li> {</li>
<li> DataRowView D1 = listBox1.SelectedItems[i1] as DataRowView;</li>
<li></li>
<li> MessageBox.Show(D1[1].ToString());</li>
<li> }</li>
</ol>
</div>
<pre>for (int i1 = 0; i1 &lt; listBox1.SelectedItems.Count; i1++)
            {
                DataRowView D1 = listBox1.SelectedItems[i1] as DataRowView;

                MessageBox.Show(D1[1].ToString());
            }</pre>
<p>The above code uses SelectedItems collection to retrieve  information <a href="http://digg.com/submit?phase=2&amp;url=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html&amp;title=How%20to%20iterate%20MultiSelect%20ListBox%20using%20C#%20%28.NET%29" target="_blank"><img title="Digg" src="http://benny.ayong.googlepages.com/digg.png" border="0" alt="Digg" /></a> <a href="http://technorati.com/faves?add=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html" target="_blank"><img title="Technorati" src="http://benny.ayong.googlepages.com/technorati.png" border="0" alt="Technorati" /></a> <a href="http://del.icio.us/post?url=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html&amp;title=How%20to%20iterate%20MultiSelect%20ListBox%20using%20C#%20%28.NET%29" target="_blank"><img title="Del.icio.us" src="http://benny.ayong.googlepages.com/delicious.png" border="0" alt="Delicious" /></a> <a href="http://www.stumbleupon.com/submit?url=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html&amp;title=How%20to%20iterate%20MultiSelect%20ListBox%20using%20C#%20%28.NET%29" target="_blank"><img title="Stumble  Upon" src="http://benny.ayong.googlepages.com/stumbleupon.png" border="0" alt="StumbleUpon" /></a> <a href="http://reddit.com/submit?url=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html&amp;title=How%20to%20iterate%20MultiSelect%20ListBox%20using%20C#%20%28.NET%29" target="_blank"><img title="reddit" src="http://benny.ayong.googlepages.com/reddit.png" border="0" alt="Reddit" /></a> <a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html&amp;Title=How%20to%20iterate%20MultiSelect%20ListBox%20using%20C#%20%28.NET%29" target="_blank"><img title="BlinkList" src="http://benny.ayong.googlepages.com/blinklist.png" border="0" alt="BlinkList" /></a> <a href="http://www.furl.net/storeIt.jsp?t=How%20to%20iterate%20MultiSelect%20ListBox%20using%20C#%20%28.NET%29&amp;u=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html" target="_blank"><img title="Furl" src="http://benny.ayong.googlepages.com/furl.png" border="0" alt="Furl" /></a> <a href="http://www.mixx.com/submit?page_url=How%20to%20iterate%20MultiSelect%20ListBox%20using%20C#%20%28.NET%29&amp;u=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html" target="_blank"><img title="Mixx" src="http://benny.ayong.googlepages.com/mixx.png" border="0" alt="Mixx" /></a> <a href="http://www.facebook.com/sharer.php?t=How%20to%20iterate%20MultiSelect%20ListBox%20using%20C#%20%28.NET%29&amp;u=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html" target="_blank"><img title="facebook" src="http://benny.ayong.googlepages.com/facebook.png" border="0" alt="Facebook" /></a> <a title="Google Bookmark" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html&amp;title=How%20to%20iterate%20MultiSelect%20ListBox%20using%20C#%20%28.NET%29" target="_blank"><img src="http://benny.ayong.googlepages.com/googlebookmark.png" border="0" alt="Google Bookmark" /></a> <a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=How%20to%20iterate%20MultiSelect%20ListBox%20using%20C#%20%28.NET%29&amp;u=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html" target="_blank"><img title="Yahoo  Myweb" src="http://benny.ayong.googlepages.com/yahoomyweb.png" border="0" alt="Yahoo" /></a><br />
<a title="ma.gnolia" href="http://ma.gnolia.com/bookmarklet/add?url=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html&amp;title=How%20to%20iterate%20MultiSelect%20ListBox%20using%20C#%20%28.NET%29" target="_blank"><img src="http://benny.ayong.googlepages.com/magnolia.png" border="0" alt="ma.gnolia" /></a> <a title="squidoo" href="http://www.squidoo.com/lensmaster/bookmark?=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html" target="_blank"><img src="http://benny.ayong.googlepages.com/squidoo.png" border="0" alt="squidoo" /></a> <a title="newsvine" href="http://www.newsvine.com/_wine/save?u=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html&amp;h=How%20to%20iterate%20MultiSelect%20ListBox%20using%20C#%20%28.NET%29" target="_blank"><img src="http://benny.ayong.googlepages.com/newsvine.png" border="0" alt="newsvine" /></a> <a title="live" href="https://favorites.live.com/quickadd.aspx?url=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html&amp;title=How%20to%20iterate%20MultiSelect%20ListBox%20using%20C#%20%28.NET%29" target="_blank"><img src="http://benny.ayong.googlepages.com/live.png" border="0" alt="live" /></a> <a title="netscape" href="http://www.netscape.com/submit/?U=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html&amp;T=How%20to%20iterate%20MultiSelect%20ListBox%20using%20C#%20%28.NET%29" target="_blank"><img src="http://benny.ayong.googlepages.com/netscape.gif" border="0" alt="netscape" /></a> <a title="tailrank" href="http://tailrank.com/share/?text=&amp;link_href=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html&amp;title=How%20to%20iterate%20MultiSelect%20ListBox%20using%20C#%20%28.NET%29" target="_blank"><img src="http://benny.ayong.googlepages.com/tailrank.png" border="0" alt="tailrank" /></a> <a title="mister-wong" href="http://www.mister-wong.com/addurl/?bm_url=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html&amp;bm_description=How%20to%20iterate%20MultiSelect%20ListBox%20using%20C#%20%28.NET%29" target="_blank"><img src="http://benny.ayong.googlepages.com/misterwong.gif" border="0" alt="mister-wong" /></a> <a title="blogmarks" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html&amp;title=How%20to%20iterate%20MultiSelect%20ListBox%20using%20C#%20%28.NET%29" target="_blank"><img src="http://benny.ayong.googlepages.com/blogmarks.png" border="0" alt="blogmarks" /></a> <a title="slashdot" href="http://slashdot.org/bookmark.pl?title=How%20to%20iterate%20MultiSelect%20ListBox%20using%20C#%20%28.NET%29&amp;url=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html" target="_blank"><img src="http://benny.ayong.googlepages.com/slashdot.png" border="0" alt="slashdot" /></a> <a title="spurl" href="http://www.spurl.net/spurl.php?url=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html&amp;title=How%20to%20iterate%20MultiSelect%20ListBox%20using%20C#%20%28.NET%29" target="_blank"><img src="http://benny.ayong.googlepages.com/spurl.png" border="0" alt="spurl" /></a> //   <a href="http://www.stumbleupon.com/submit?url=http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html"><img src="http://www.stumbleupon.com/images/stumble7.gif" border="0" alt="StumbleUpon" /> </a></div>
<div>Posted by Shasur   at <a title="permanent link" rel="bookmark" href="http://dotnetdud.blogspot.com/2010/04/how-to-iterate-multiselect-listbox.html"><abbr title="2010-04-19T00:34:00-07:00">12:34 AM</abbr></a> <a title="Edit Post" href="http://www.blogger.com/post-edit.g?blogID=6497434045878013201&amp;postID=6820010517052435933"> <img src="http://img2.blogblog.com/img/icon18_edit_allbkg.gif" alt="" width="18" height="18" /> </a></div>
<div>Labels: <a rel="tag" href="http://dotnetdud.blogspot.com/search/label/C%23%20Extract%20Data%20from%20SelectedItems">C# Extract Data from SelectedItems</a>, <a rel="tag" href="http://dotnetdud.blogspot.com/search/label/C%23%20Listbox%20Selected%20Item">C# Listbox Selected Item</a>, <a rel="tag" href="http://dotnetdud.blogspot.com/search/label/Iterate%20through%20multiselect%20listbox%20in%20C%23">Iterate through multiselect listbox in C#</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdud.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdud.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdud.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdud.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdud.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdud.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdud.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdud.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdud.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdud.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdud.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdud.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdud.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdud.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=23&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdud.wordpress.com/2010/05/30/c-get-selected-values-from-multiselect-listbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/digg.png" medium="image">
			<media:title type="html">Digg</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/technorati.png" medium="image">
			<media:title type="html">Technorati</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/delicious.png" medium="image">
			<media:title type="html">Del.icio.us</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/stumbleupon.png" medium="image">
			<media:title type="html">Stumble  Upon</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/reddit.png" medium="image">
			<media:title type="html">reddit</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/blinklist.png" medium="image">
			<media:title type="html">BlinkList</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/furl.png" medium="image">
			<media:title type="html">Furl</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/mixx.png" medium="image">
			<media:title type="html">Mixx</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/facebook.png" medium="image">
			<media:title type="html">facebook</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/googlebookmark.png" medium="image">
			<media:title type="html">Google Bookmark</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/yahoomyweb.png" medium="image">
			<media:title type="html">Yahoo  Myweb</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/magnolia.png" medium="image">
			<media:title type="html">ma.gnolia</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/squidoo.png" medium="image">
			<media:title type="html">squidoo</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/newsvine.png" medium="image">
			<media:title type="html">newsvine</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/live.png" medium="image">
			<media:title type="html">live</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/netscape.gif" medium="image">
			<media:title type="html">netscape</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/tailrank.png" medium="image">
			<media:title type="html">tailrank</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/misterwong.gif" medium="image">
			<media:title type="html">mister-wong</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/blogmarks.png" medium="image">
			<media:title type="html">blogmarks</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/slashdot.png" medium="image">
			<media:title type="html">slashdot</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/spurl.png" medium="image">
			<media:title type="html">spurl</media:title>
		</media:content>

		<media:content url="http://www.stumbleupon.com/images/stumble7.gif" medium="image">
			<media:title type="html">StumbleUpon</media:title>
		</media:content>

		<media:content url="http://img2.blogblog.com/img/icon18_edit_allbkg.gif" medium="image" />
	</item>
		<item>
		<title>Formatting Currency in C#/VB.NET/Csharp Writeline function</title>
		<link>http://dotnetdud.wordpress.com/2010/05/30/formatting-currency-in-cvb-netcsharp-writeline-function/</link>
		<comments>http://dotnetdud.wordpress.com/2010/05/30/formatting-currency-in-cvb-netcsharp-writeline-function/#comments</comments>
		<pubDate>Sun, 30 May 2010 15:31:26 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://dotnetdud.wordpress.com/?p=21</guid>
		<description><![CDATA[How to format Currency (Pound/Dollar/Euro etc) using C#/VB.NET/Csharp Writeline function You can use .NET&#8217;s Composite Formatting to format the currency as shown below view plainprint? Double Incentive = 234.45; Console.WriteLine(&#8220;The agreed incentive in local currency is {0:C} &#8221;, Incentive); Double Incentive = 234.45; Console.WriteLine("The agreed incentive in local currency is {0:C} ", Incentive); If you want to convert it into dollars/pounds etc you need to change the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=21&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3><a href="http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html">How  to format Currency (Pound/Dollar/Euro etc) using C#/VB.NET/Csharp  Writeline function</a></h3>
<div>
You can use .NET&#8217;s Composite Formatting to format the currency as shown  below</p>
<div>
<div>
<div><a href="http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html#">view  plain</a><a href="http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html#">print</a><a href="http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html#">?</a></div>
</div>
<ol>
<li>Double Incentive = 234.45;</li>
<li> Console.WriteLine(&#8220;The agreed incentive in local currency is {0:C} &#8221;, Incentive);</li>
<li></li>
</ol>
</div>
<pre>    Double Incentive = 234.45;
            Console.WriteLine("The agreed incentive in local currency is {0:C} ", Incentive);</pre>
<p>If you want to convert it into dollars/pounds etc you need to change the  culture info :</p>
<div>
<div>
<div><a href="http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html#">view  plain</a><a href="http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html#">print</a><a href="http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html#">?</a></div>
</div>
<ol>
<li>Thread.CurrentThread.CurrentCulture = new CultureInfo(&#8220;en-US&#8221;, false);</li>
<li>Console.WriteLine(&#8220;The agreed incentive in USD is {0:C} &#8221;, Incentive);</li>
<li></li>
<li></li>
<li>Thread.CurrentThread.CurrentCulture = new CultureInfo(&#8220;en-GB&#8221;, false);</li>
<li>Console.WriteLine(&#8220;The agreed incentive in GBP is {0:C} &#8221;, Incentive);</li>
</ol>
</div>
<pre>            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US", false);
            Console.WriteLine("The agreed incentive in USD is {0:C} ", Incentive);

            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-GB", false);
            Console.WriteLine("The agreed incentive in GBP is {0:C} ", Incentive);</pre>
<div><a href="http://4.bp.blogspot.com/_s2jU7girbyM/S-USWy-l7qI/AAAAAAAAChA/JvEM51Et7mE/s1600/Euro+-+Pound+Currency+in+Vb.NET_CSharp_C%23_Writeline.PNG"><img src="http://4.bp.blogspot.com/_s2jU7girbyM/S-USWy-l7qI/AAAAAAAAChA/JvEM51Et7mE/s640/Euro+-+Pound+Currency+in+Vb.NET_CSharp_C%23_Writeline.PNG" border="0" alt="" width="640" height="324" /></a></div>
<p>The above code needs the following directives</p>
<div>
<div>
<div><a href="http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html#">view  plain</a><a href="http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html#">print</a><a href="http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html#">?</a></div>
</div>
<ol>
<li>using System.Threading;</li>
<li>using System.Globalization;</li>
</ol>
</div>
<pre>using System.Threading;
using System.Globalization;</pre>
<p><a href="http://digg.com/submit?phase=2&amp;url=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html&amp;title=How%20to%20format%20Currency%20%28Pound/Dollar/Euro%20etc%29%20using%20C#/VB.NET/Csharp%20Writeline%20function" target="_blank"><img title="Digg" src="http://benny.ayong.googlepages.com/digg.png" border="0" alt="Digg" /></a> <a href="http://technorati.com/faves?add=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html" target="_blank"><img title="Technorati" src="http://benny.ayong.googlepages.com/technorati.png" border="0" alt="Technorati" /></a> <a href="http://del.icio.us/post?url=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html&amp;title=How%20to%20format%20Currency%20%28Pound/Dollar/Euro%20etc%29%20using%20C#/VB.NET/Csharp%20Writeline%20function" target="_blank"><img title="Del.icio.us" src="http://benny.ayong.googlepages.com/delicious.png" border="0" alt="Delicious" /></a> <a href="http://www.stumbleupon.com/submit?url=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html&amp;title=How%20to%20format%20Currency%20%28Pound/Dollar/Euro%20etc%29%20using%20C#/VB.NET/Csharp%20Writeline%20function" target="_blank"><img title="Stumble  Upon" src="http://benny.ayong.googlepages.com/stumbleupon.png" border="0" alt="StumbleUpon" /></a> <a href="http://reddit.com/submit?url=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html&amp;title=How%20to%20format%20Currency%20%28Pound/Dollar/Euro%20etc%29%20using%20C#/VB.NET/Csharp%20Writeline%20function" target="_blank"><img title="reddit" src="http://benny.ayong.googlepages.com/reddit.png" border="0" alt="Reddit" /></a> <a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html&amp;Title=How%20to%20format%20Currency%20%28Pound/Dollar/Euro%20etc%29%20using%20C#/VB.NET/Csharp%20Writeline%20function" target="_blank"><img title="BlinkList" src="http://benny.ayong.googlepages.com/blinklist.png" border="0" alt="BlinkList" /></a> <a href="http://www.furl.net/storeIt.jsp?t=How%20to%20format%20Currency%20%28Pound/Dollar/Euro%20etc%29%20using%20C#/VB.NET/Csharp%20Writeline%20function&amp;u=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html" target="_blank"><img title="Furl" src="http://benny.ayong.googlepages.com/furl.png" border="0" alt="Furl" /></a> <a href="http://www.mixx.com/submit?page_url=How%20to%20format%20Currency%20%28Pound/Dollar/Euro%20etc%29%20using%20C#/VB.NET/Csharp%20Writeline%20function&amp;u=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html" target="_blank"><img title="Mixx" src="http://benny.ayong.googlepages.com/mixx.png" border="0" alt="Mixx" /></a> <a href="http://www.facebook.com/sharer.php?t=How%20to%20format%20Currency%20%28Pound/Dollar/Euro%20etc%29%20using%20C#/VB.NET/Csharp%20Writeline%20function&amp;u=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html" target="_blank"><img title="facebook" src="http://benny.ayong.googlepages.com/facebook.png" border="0" alt="Facebook" /></a> <a title="Google Bookmark" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html&amp;title=How%20to%20format%20Currency%20%28Pound/Dollar/Euro%20etc%29%20using%20C#/VB.NET/Csharp%20Writeline%20function" target="_blank"><img src="http://benny.ayong.googlepages.com/googlebookmark.png" border="0" alt="Google Bookmark" /></a> <a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=How%20to%20format%20Currency%20%28Pound/Dollar/Euro%20etc%29%20using%20C#/VB.NET/Csharp%20Writeline%20function&amp;u=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html" target="_blank"><img title="Yahoo  Myweb" src="http://benny.ayong.googlepages.com/yahoomyweb.png" border="0" alt="Yahoo" /></a><br />
<a title="ma.gnolia" href="http://ma.gnolia.com/bookmarklet/add?url=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html&amp;title=How%20to%20format%20Currency%20%28Pound/Dollar/Euro%20etc%29%20using%20C#/VB.NET/Csharp%20Writeline%20function" target="_blank"><img src="http://benny.ayong.googlepages.com/magnolia.png" border="0" alt="ma.gnolia" /></a> <a title="squidoo" href="http://www.squidoo.com/lensmaster/bookmark?=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html" target="_blank"><img src="http://benny.ayong.googlepages.com/squidoo.png" border="0" alt="squidoo" /></a> <a title="newsvine" href="http://www.newsvine.com/_wine/save?u=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html&amp;h=How%20to%20format%20Currency%20%28Pound/Dollar/Euro%20etc%29%20using%20C#/VB.NET/Csharp%20Writeline%20function" target="_blank"><img src="http://benny.ayong.googlepages.com/newsvine.png" border="0" alt="newsvine" /></a> <a title="live" href="https://favorites.live.com/quickadd.aspx?url=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html&amp;title=How%20to%20format%20Currency%20%28Pound/Dollar/Euro%20etc%29%20using%20C#/VB.NET/Csharp%20Writeline%20function" target="_blank"><img src="http://benny.ayong.googlepages.com/live.png" border="0" alt="live" /></a> <a title="netscape" href="http://www.netscape.com/submit/?U=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html&amp;T=How%20to%20format%20Currency%20%28Pound/Dollar/Euro%20etc%29%20using%20C#/VB.NET/Csharp%20Writeline%20function" target="_blank"><img src="http://benny.ayong.googlepages.com/netscape.gif" border="0" alt="netscape" /></a> <a title="tailrank" href="http://tailrank.com/share/?text=&amp;link_href=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html&amp;title=How%20to%20format%20Currency%20%28Pound/Dollar/Euro%20etc%29%20using%20C#/VB.NET/Csharp%20Writeline%20function" target="_blank"><img src="http://benny.ayong.googlepages.com/tailrank.png" border="0" alt="tailrank" /></a> <a title="mister-wong" href="http://www.mister-wong.com/addurl/?bm_url=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html&amp;bm_description=How%20to%20format%20Currency%20%28Pound/Dollar/Euro%20etc%29%20using%20C#/VB.NET/Csharp%20Writeline%20function" target="_blank"><img src="http://benny.ayong.googlepages.com/misterwong.gif" border="0" alt="mister-wong" /></a> <a title="blogmarks" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html&amp;title=How%20to%20format%20Currency%20%28Pound/Dollar/Euro%20etc%29%20using%20C#/VB.NET/Csharp%20Writeline%20function" target="_blank"><img src="http://benny.ayong.googlepages.com/blogmarks.png" border="0" alt="blogmarks" /></a> <a title="slashdot" href="http://slashdot.org/bookmark.pl?title=How%20to%20format%20Currency%20%28Pound/Dollar/Euro%20etc%29%20using%20C#/VB.NET/Csharp%20Writeline%20function&amp;url=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html" target="_blank"><img src="http://benny.ayong.googlepages.com/slashdot.png" border="0" alt="slashdot" /></a> <a title="spurl" href="http://www.spurl.net/spurl.php?url=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html&amp;title=How%20to%20format%20Currency%20%28Pound/Dollar/Euro%20etc%29%20using%20C#/VB.NET/Csharp%20Writeline%20function" target="_blank"><img src="http://benny.ayong.googlepages.com/spurl.png" border="0" alt="spurl" /></a> //   <a href="http://www.stumbleupon.com/submit?url=http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html"><img src="http://www.stumbleupon.com/images/stumble7.gif" border="0" alt="StumbleUpon" /> </a></div>
<div>Posted by Shasur   at <a title="permanent link" rel="bookmark" href="http://dotnetdud.blogspot.com/2010/05/how-to-format-currency-pounddollareuro.html"><abbr title="2010-05-08T00:37:00-07:00">12:37 AM</abbr></a> <a title="Edit Post" href="http://www.blogger.com/post-edit.g?blogID=6497434045878013201&amp;postID=1760957358164882588"> <img src="http://img2.blogblog.com/img/icon18_edit_allbkg.gif" alt="" width="18" height="18" /> </a></div>
<div>Labels: <a rel="tag" href="http://dotnetdud.blogspot.com/search/label/Format%20Currency%20to%20Pound%2FEuro%20using%20C%23%2FVB.NET">Format Currency to Pound/Euro using C#/VB.NET</a>, <a rel="tag" href="http://dotnetdud.blogspot.com/search/label/Reset%20Currency%20using%20C%23%2FVB.NET">Reset Currency using C#/VB.NET</a>, <a rel="tag" href="http://dotnetdud.blogspot.com/search/label/VB.NET%20Format%20Currency%20to%20Pound%2FEuro%2Fdollar">VB.NET Format Currency to Pound/Euro/dollar</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdud.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdud.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdud.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdud.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdud.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdud.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdud.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdud.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdud.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdud.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdud.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdud.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdud.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdud.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=21&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdud.wordpress.com/2010/05/30/formatting-currency-in-cvb-netcsharp-writeline-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>

		<media:content url="http://4.bp.blogspot.com/_s2jU7girbyM/S-USWy-l7qI/AAAAAAAAChA/JvEM51Et7mE/s640/Euro+-+Pound+Currency+in+Vb.NET_CSharp_C%23_Writeline.PNG" medium="image" />

		<media:content url="http://benny.ayong.googlepages.com/digg.png" medium="image">
			<media:title type="html">Digg</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/technorati.png" medium="image">
			<media:title type="html">Technorati</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/delicious.png" medium="image">
			<media:title type="html">Del.icio.us</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/stumbleupon.png" medium="image">
			<media:title type="html">Stumble  Upon</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/reddit.png" medium="image">
			<media:title type="html">reddit</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/blinklist.png" medium="image">
			<media:title type="html">BlinkList</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/furl.png" medium="image">
			<media:title type="html">Furl</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/mixx.png" medium="image">
			<media:title type="html">Mixx</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/facebook.png" medium="image">
			<media:title type="html">facebook</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/googlebookmark.png" medium="image">
			<media:title type="html">Google Bookmark</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/yahoomyweb.png" medium="image">
			<media:title type="html">Yahoo  Myweb</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/magnolia.png" medium="image">
			<media:title type="html">ma.gnolia</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/squidoo.png" medium="image">
			<media:title type="html">squidoo</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/newsvine.png" medium="image">
			<media:title type="html">newsvine</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/live.png" medium="image">
			<media:title type="html">live</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/netscape.gif" medium="image">
			<media:title type="html">netscape</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/tailrank.png" medium="image">
			<media:title type="html">tailrank</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/misterwong.gif" medium="image">
			<media:title type="html">mister-wong</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/blogmarks.png" medium="image">
			<media:title type="html">blogmarks</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/slashdot.png" medium="image">
			<media:title type="html">slashdot</media:title>
		</media:content>

		<media:content url="http://benny.ayong.googlepages.com/spurl.png" medium="image">
			<media:title type="html">spurl</media:title>
		</media:content>

		<media:content url="http://www.stumbleupon.com/images/stumble7.gif" medium="image">
			<media:title type="html">StumbleUpon</media:title>
		</media:content>

		<media:content url="http://img2.blogblog.com/img/icon18_edit_allbkg.gif" medium="image" />
	</item>
		<item>
		<title>Building an Electronic Clock in VB.Net using timer class</title>
		<link>http://dotnetdud.wordpress.com/2008/04/27/building-an-electronic-clock-in-vbnet-using-timer-class/</link>
		<comments>http://dotnetdud.wordpress.com/2008/04/27/building-an-electronic-clock-in-vbnet-using-timer-class/#comments</comments>
		<pubDate>Sun, 27 Apr 2008 16:01:25 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Timer Class in .NET]]></category>

		<guid isPermaLink="false">http://dotnetdud.wordpress.com/?p=19</guid>
		<description><![CDATA[Using Timer in VB.Net Building an Electronic Clock in VB.Net using timer class (VB.NET ProgressBar using Timer) Public Class Form1 Dim t As New Timer Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load t.Interval = 1000 AddHandler t.Tick, AddressOf Me.t_ShowProgress AddHandler t.Tick, AddressOf Me.t_ShowTime t.Start() End Sub Private Sub t_ShowProgress() ProgressBar1.Value [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=19&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3 class="post-title entry-title"><a href="http://dotnetdud.blogspot.com/2008/04/using-timer-in-vbnet.html">Using Timer in VB.Net</a></h3>
<div class="post-body entry-content">
<p><span style="font-size:100%;"><a href="http://bp2.blogger.com/_s2jU7girbyM/SBSciaef-ZI/AAAAAAAAAaE/8p3nfuyvzXk/s1600-h/DND_TimerExample.JPG"><img style="float:right;cursor:pointer;margin:0 0 10px 10px;" src="http://bp2.blogger.com/_s2jU7girbyM/SBSciaef-ZI/AAAAAAAAAaE/8p3nfuyvzXk/s400/DND_TimerExample.JPG" border="0" alt="" /></a><span style="font-size:130%;"><br />
</span></span><span style="color:#ff6600;font-weight:bold;font-size:130%;">Building an Electronic Clock in VB.Net using timer class</p>
<p>(VB.NET ProgressBar using Timer)<br />
</span></p>
<p class="MsoNormal"><span style="font-size:100%;"> </span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span>Public</span><span> <span style="color:blue;">Class</span> Form1</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span><span> </span><span style="color:blue;">Dim</span> t <span style="color:blue;">As</span> <span style="color:blue;">New</span> Timer</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span> </span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span><span> </span><span style="color:blue;">Private</span> <span style="color:blue;">Sub</span> Form1_Load(<span style="color:blue;">ByVal</span> sender <span style="color:blue;">As</span> System.Object, <span style="color:blue;">ByVal</span> e <span style="color:blue;">As</span> System.EventArgs) <span style="color:blue;">Handles</span> <span style="color:blue;">MyBase</span>.Load</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span><span> </span>t.Interval = 1000</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span><span> </span><span style="color:blue;">AddHandler</span> t.Tick, <span style="color:blue;">AddressOf</span> <span style="color:blue;">Me</span>.t_ShowProgress</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span><span> </span><span style="color:blue;">AddHandler</span> t.Tick, <span style="color:blue;">AddressOf</span> <span style="color:blue;">Me</span>.t_ShowTime</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span><span> </span>t.Start()</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span><span> </span><span style="color:blue;">End</span> <span style="color:blue;">Sub</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span><span> </span><span style="color:blue;">Private</span> <span style="color:blue;">Sub</span> t_ShowProgress()</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span><span> </span>ProgressBar1.Value += 10</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span><span> </span><span style="color:blue;">If</span> ProgressBar1.Value = 100 <span style="color:blue;">Then</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span><span> </span><span> </span>ProgressBar1.Value = 0</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span><span> </span><span style="color:blue;">End</span> <span style="color:blue;">If</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span><span> </span><span style="color:blue;">End</span> <span style="color:blue;">Sub</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span><span> </span><span style="color:blue;">Private</span> <span style="color:blue;">Sub</span> t_ShowTime()</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span><span> </span>Label1.Text = Now</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span><span> </span><span style="color:blue;">End</span> <span style="color:blue;">Sub</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span>End</span><span> <span style="color:blue;">Class</span></span></p>
<p class="MsoNormal"><span style="font-size:100%;"> </span></p>
<p class="MsoNormal"><span style="line-height:115%;font-family:Verdana;font-size:100%;color:black;">Add Handler &#8211; Associates an event with an event handler at run time. The <span class="keyword">Handles</span> keyword and the <span class="keyword">AddHandler</span> statement both allow you to specify that particular procedures handle particular events, but there are differences. The <span class="keyword">AddHandler</span> statement connects procedures to events at run time. Use the <span class="keyword">Handles</span> keyword when defining a procedure to specify that it handles a particular event.</span></p>
<p class="MsoNormal"><span style="line-height:115%;font-family:Verdana;font-size:100%;color:black;">The <span style="font-weight:bold;color:#ff0000;">Tick event (this is similar to Visual Basic Timer1_Timer event)</span> occurs when the specified timer interval has elapsed and the timer is enabled. This is based on the interval set for the Timer (1000 ms or 1 sec here)</span></p>
<p class="MsoNormal"><span style="line-height:115%;font-family:Verdana;font-size:100%;color:black;">The <a id="KonaLink4" class="kLink" href="http://dotnetdud.blogspot.com/#" target="_top"><span style="color:blue !important;font-weight:400;font-size:12.6px;position:static;"><span class="kLink" style="color:blue !important;font-family:Verdana;font-weight:400;font-size:12.6px;position:static;">progress </span><span class="kLink" style="color:blue !important;font-family:Verdana;font-weight:400;font-size:12.6px;position:static;">bar</span></span></a> will be reset after it reaches 100. The timer will run till the form is closed. Since the process is synchronous only the timer event will be executed or the label will be updated. The same can also be achieved async </span></p>
</div>
<div class="post-footer">
<div class="post-footer-line post-footer-line-1"><span class="post-author vcard"> Posted by <span class="fn">Shasur</span> </span> <span class="post-timestamp"> at <a class="timestamp-link" title="permanent link" rel="bookmark" href="http://dotnetdud.blogspot.com/2008/04/using-timer-in-vbnet.html"><abbr class="published" title="00">8:29 AM</abbr></a> </span> <span class="post-comment-link"> <a class="comment-link" href="http://www.blogger.com/comment.g?blogID=6497434045878013201&amp;postID=1238823188428556419">0 comments</a> </span> <span class="post-backlinks post-comment-link"> </span> <span class="post-icons"> <span class="item-control blog-admin pid-24239361"> <a title="Edit Post" href="http://www.blogger.com/post-edit.g?blogID=6497434045878013201&amp;postID=1238823188428556419"> <img class="icon-action" src="http://www.blogger.com/img/icon18_edit_allbkg.gif" alt="" /> </a> </span> </span></div>
<div class="post-footer-line post-footer-line-2"><span class="post-labels"> Labels: <a rel="tag" href="http://dotnetdud.blogspot.com/search/label/Add%20Handler%20in%20VB.NET">Add Handler in VB.NET</a>, <a rel="tag" href="http://dotnetdud.blogspot.com/search/label/Electronic%20Clock%20in%20VB.Net">Electronic Clock in VB.Net</a>, <a rel="tag" href="http://dotnetdud.blogspot.com/search/label/Timer%20Event%20in%20VB.NET">Timer Event in VB.NET</a>, <a rel="tag" href="http://dotnetdud.blogspot.com/search/label/VB.NET%20Progress%20Bars">VB.NET Progress Bars</a>, <a rel="tag" href="http://dotnetdud.blogspot.com/search/label/VB.NET%20Timer%20Tick%20event">VB.NET Timer Tick event</a> </span></div>
</div>
<p><a name="6723476769223947514"></a></p>
<h3 class="post-title entry-title"><a href="http://dotnetdud.blogspot.com/2008/04/regular-expressions-in-dot-net-net.html">Regular Expressions in Dot Net (.NET)</a></h3>
<div class="post-body entry-content">
<p><span style="font-weight:bold;color:#ff6600;">Finding Duplicate Words in a String using .NET Regular Expressions</span></p>
<p><span style="font-weight:bold;color:#ff0000;">Regular Expressions (REGEX) </span>does wonders in programming. Here is a simple Regex code that identifies duplicate words like &#8216;the the&#8217;, &#8216;something something&#8217; etc. Probably copyeditors can use this code to do the work that <a id="KonaLink5" class="kLink" href="http://dotnetdud.blogspot.com/#" target="_top"><span style="color:blue !important;font-weight:400;font-size:12.6px;position:static;"><span class="kLink" style="color:blue !important;font-family:&quot;font-weight:400;font-size:12.6px;position:static;">Microsoft</span></span></a> Spell check does</p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:blue;">Sub</span> Regex_Checker_Duplicate_Words()</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:blue;">Dim</span> oRegex <span style="color:blue;">As</span> Regex</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:blue;">Dim</span> sPattern <span style="color:blue;">As</span> <span style="color:blue;">String</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:blue;">Dim</span> oMatches <span style="color:blue;">As</span> Match</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:blue;">Dim</span> sText <span style="color:blue;">As</span> <span style="color:blue;">String</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:blue;"> </span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span>sText = <span style="color:#a31515;">&#8221; the the category catastropic cat cat and rat b b &#8220;</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span>sPattern = <span style="color:#a31515;">&#8220;\b([a-zA-Z]+)\s+\1&#8243;</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span>oRegex = <span style="color:blue;">New</span> Regex(sPattern)</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span>oMatches = oRegex.Match(sText, sPattern)</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:blue;">While</span> oMatches.Success</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span>MsgBox(oMatches.Groups(0).Value.ToString)</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span>oMatches = oMatches.NextMatch</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:blue;">End</span> <span style="color:blue;">While</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:blue;"> </span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:blue;"> </span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:blue;">End</span> <span style="color:blue;">Sub</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:blue;"> </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 2.9pt 0.5in;"><span style="font-size:8.5pt;font-family:Verdana;color:black;">Returns a new </span><strong><span style="font-size:8.5pt;font-family:Verdana;color:black;">Match</span></strong><span style="font-size:8.5pt;font-family:Verdana;color:black;"> with the results for the next match, starting at the position at which the last match ended (at the character beyond the last matched character).</span></p>
<p class="MsoNormal"><strong><span> </span></strong></p>
<p class="MsoNormal"><strong><span> </span></strong></p>
<p class="MsoNormal"><strong><span> </span></strong></p>
</div>
<div class="post-footer-line post-footer-line-1"><span class="post-author vcard"> Posted by <span class="fn">Shasur</span> </span> <span class="post-timestamp"> at <a class="timestamp-link" title="permanent link" rel="bookmark" href="http://dotnetdud.blogspot.com/2008/04/regular-expressions-in-dot-net-net.html"><abbr class="published" title="00">7:04 AM</abbr></a> </span> <span class="post-comment-link"> <a class="comment-link" href="http://www.blogger.com/comment.g?blogID=6497434045878013201&amp;postID=6723476769223947514">0 comments</a> </span> <span class="post-backlinks post-comment-link"> </span> <span class="post-icons"> <span class="item-control blog-admin pid-24239361"> <a title="Edit Post" href="http://www.blogger.com/post-edit.g?blogID=6497434045878013201&amp;postID=6723476769223947514"> <img class="icon-action" src="http://www.blogger.com/img/icon18_edit_allbkg.gif" alt="" /> </a> </span> </span></div>
<div class="post-footer-line post-footer-line-2"><span class="post-labels"> Labels: <a rel="tag" href="http://dotnetdud.blogspot.com/search/label/Dot%20NEt%20REgular%20Expressions">Dot NEt REgular Expressions</a>, <a rel="tag" href="http://dotnetdud.blogspot.com/search/label/Regular%20Expressions%20in%20.NET">Regular Expressions in .NET</a>, <a rel="tag" href="http://dotnetdud.blogspot.com/search/label/VB.NET%20REgex">VB.NET REgex</a>, <a rel="tag" href="http://dotnetdud.blogspot.com/search/label/VB.NEt%20REgular%20Expressions">VB.NEt REgular Expressions</a> </span></div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetdud.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetdud.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdud.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdud.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdud.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdud.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdud.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdud.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdud.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdud.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdud.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdud.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdud.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdud.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdud.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdud.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=19&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdud.wordpress.com/2008/04/27/building-an-electronic-clock-in-vbnet-using-timer-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>

		<media:content url="http://bp2.blogger.com/_s2jU7girbyM/SBSciaef-ZI/AAAAAAAAAaE/8p3nfuyvzXk/s400/DND_TimerExample.JPG" medium="image" />

		<media:content url="http://www.blogger.com/img/icon18_edit_allbkg.gif" medium="image" />

		<media:content url="http://www.blogger.com/img/icon18_edit_allbkg.gif" medium="image" />
	</item>
		<item>
		<title>Get Computer Name in .Net</title>
		<link>http://dotnetdud.wordpress.com/2007/12/25/get-computer-name-in-net/</link>
		<comments>http://dotnetdud.wordpress.com/2007/12/25/get-computer-name-in-net/#comments</comments>
		<pubDate>Tue, 25 Dec 2007 02:09:28 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://dotnetdud.wordpress.com/2007/12/25/get-computer-name-in-net/</guid>
		<description><![CDATA[Get Computer Name in .Net Use the My object to get the name of the computer &#8216; Returns Name of the Computer Function Get_Comp_Name() As String Return My.Computer.Name.ToString End Function The VBA/Visual Basic function to do the same is : http://vbadud.blogspot.com/2007/05/get-computer-name.html The SQL Statement to get the computer name is : http://sqldud.blogspot.com/2007/04/get-computer-name-from-sql-query.html Changing LINKS Posted [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=18&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="post hentry uncustomized-post-template"><a name="8078166210201787315"></a></p>
<h3 class="post-title entry-title"><a href="http://dotnetdud.blogspot.com/2007/06/get-computer-name-in-net.html">Get  Computer Name in .Net</a></h3>
<div class="post-body entry-content">Use the My object to get the name of the computer</p>
<p>&#8216; Returns Name of  the Computer</p>
<p>Function Get_Comp_Name() As String</p>
<p>Return  My.Computer.Name.ToString</p>
<p>End Function</p>
<p>The VBA/Visual Basic  function to do the same is :<br />
<a href="http://vbadud.blogspot.com/2007/05/get-computer-name.html">http://vbadud.blogspot.com/2007/05/get-computer-name.html</a></p>
<p>The  SQL Statement to get the computer name is :<br />
<a href="http://sqldud.blogspot.com/2007/04/get-computer-name-from-sql-query.html">http://sqldud.blogspot.com/2007/04/get-computer-name-from-sql-query.html</a></p>
<p><a href="http://www.programmersheaven.com/"><img src="http://www.programmersheaven.com/images/minibanner.gif" height="20" width="60" /></a></p>
<p><a href="http://www.changinglinks.com/">Changing LINKS</a></div>
<div class="post-footer">
<p class="post-footer-line post-footer-line-1"><span class="post-author vcard">Posted by <span class="fn">Shasur</span> </span><span class="post-timestamp">at <a href="http://dotnetdud.blogspot.com/2007/06/get-computer-name-in-net.html" class="timestamp-link" title="permanent link" rel="bookmark"><abbr title="2007-06-07T19:43:00-07:00">7:43  PM</abbr></a> </span><span class="post-comment-link"><a href="http://www.blogger.com/comment.g?blogID=6497434045878013201&amp;postID=8078166210201787315" class="comment-link">0  comments</a> </span><span class="post-backlinks post-comment-link"></span><span class="post-icons"><span class="item-control blog-admin pid-24239361"><a href="http://www.blogger.com/post-edit.g?blogID=6497434045878013201&amp;postID=8078166210201787315" title="Edit Post"><img src="http://www.blogger.com/img/icon18_edit_allbkg.gif" class="icon-action" /> </a></span></span></p>
<p class="post-footer-line post-footer-line-2"><span class="post-labels">Labels:  <a href="http://dotnetdud.blogspot.com/search/label/.Net" rel="tag">.Net</a>, <a href="http://dotnetdud.blogspot.com/search/label/.Net%20Get%20Computer%20Name" rel="tag">.Net Get Computer Name</a>, <a href="http://dotnetdud.blogspot.com/search/label/Computer%20Name%20in%20.Net" rel="tag">Computer Name in .Net</a>, <a href="http://dotnetdud.blogspot.com/search/label/Computer%20Name%20in%20ASP.Net" rel="tag">Computer Name in ASP.Net</a>, <a href="http://dotnetdud.blogspot.com/search/label/Dot%20Net" rel="tag">Dot Net</a>  </span></p>
<p class="post-footer-line post-footer-line-3">&nbsp;</p>
</div>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetdud.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetdud.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdud.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdud.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdud.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdud.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdud.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdud.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdud.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdud.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdud.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdud.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdud.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdud.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdud.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdud.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=18&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdud.wordpress.com/2007/12/25/get-computer-name-in-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>

		<media:content url="http://www.programmersheaven.com/images/minibanner.gif" medium="image" />

		<media:content url="http://www.blogger.com/img/icon18_edit_allbkg.gif" medium="image" />
	</item>
		<item>
		<title>ASP.Net Get User / .Net Get User</title>
		<link>http://dotnetdud.wordpress.com/2007/12/25/aspnet-get-user-net-get-user/</link>
		<comments>http://dotnetdud.wordpress.com/2007/12/25/aspnet-get-user-net-get-user/#comments</comments>
		<pubDate>Tue, 25 Dec 2007 02:09:07 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://dotnetdud.wordpress.com/2007/12/25/aspnet-get-user-net-get-user/</guid>
		<description><![CDATA[ASP.Net Get User / .Net Get User User names are the most important ones. Whether to write in logs or display a warm hello message, it is there throughout Here let us look at the way to get the user of the system. Webdevelopemt will have different &#8216;users&#8217;. Function Get_User_Name() As String Return My.User.Name End [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=17&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3 class="post-title entry-title"><a href="http://dotnetdud.blogspot.com/2007/06/aspnet-get-user-net-get-user.html">ASP.Net  Get User / .Net Get User</a></h3>
<div class="post-body entry-content">User names are the most important ones. Whether to write in logs or display a  warm hello message, it is there throughout</p>
<p>Here let us look at the way to  get the user of the system. Webdevelopemt will have different  &#8216;users&#8217;.</p>
<p>Function Get_User_Name() As String</p>
<p>Return  My.User.Name</p>
<p>End Function</p>
<p><a href="http://www.blogrankings.com/" title="Blogrankings.com a directory of blog sites"><b>BlogRankings.com</b></a></p>
<p>Again  the My namespace comes in handy</p>
<p>The same can be done using VBA :<br />
<a href="http://vbadud.blogspot.com/2007/05/get-computer-name.html">http://vbadud.blogspot.com/2007/05/get-computer-name.html</a></p>
<p>For  knowing the user using SQL select statement please refer :</p></div>
<div class="post-footer">
<p class="post-footer-line post-footer-line-1"><span class="post-author vcard">Posted by <span class="fn">Shasur</span> </span><span class="post-timestamp">at <a href="http://dotnetdud.blogspot.com/2007/06/aspnet-get-user-net-get-user.html" class="timestamp-link" title="permanent link" rel="bookmark"><abbr title="2007-06-07T19:45:00-07:00">7:45  PM</abbr></a> </span><span class="post-comment-link"><a href="http://www.blogger.com/comment.g?blogID=6497434045878013201&amp;postID=9006781340540356815" class="comment-link">0  comments</a> </span><span class="post-backlinks post-comment-link"></span><span class="post-icons"><span class="item-control blog-admin pid-24239361"><a href="http://www.blogger.com/post-edit.g?blogID=6497434045878013201&amp;postID=9006781340540356815" title="Edit Post"><img src="http://www.blogger.com/img/icon18_edit_allbkg.gif" class="icon-action" /> </a></span></span></p>
<p class="post-footer-line post-footer-line-2"><span class="post-labels">Labels:  <a href="http://dotnetdud.blogspot.com/search/label/.Net" rel="tag">.Net</a>, <a href="http://dotnetdud.blogspot.com/search/label/.Net%20Get%20User%20Name" rel="tag">.Net Get User Name</a>, <a href="http://dotnetdud.blogspot.com/search/label/ASP.Net%20Get%20User%20Name" rel="tag">ASP.Net Get User Name</a>, <a href="http://dotnetdud.blogspot.com/search/label/Dot%20Net" rel="tag">Dot Net</a>  </span></p>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetdud.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetdud.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdud.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdud.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdud.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdud.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdud.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdud.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdud.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdud.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdud.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdud.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdud.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdud.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdud.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdud.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=17&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdud.wordpress.com/2007/12/25/aspnet-get-user-net-get-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>

		<media:content url="http://www.blogger.com/img/icon18_edit_allbkg.gif" medium="image" />
	</item>
		<item>
		<title>Opening &amp; Closing Forms in .Net</title>
		<link>http://dotnetdud.wordpress.com/2007/12/25/opening-closing-forms-in-net/</link>
		<comments>http://dotnetdud.wordpress.com/2007/12/25/opening-closing-forms-in-net/#comments</comments>
		<pubDate>Tue, 25 Dec 2007 02:08:48 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://dotnetdud.wordpress.com/2007/12/25/opening-closing-forms-in-net/</guid>
		<description><![CDATA[Opening &#38; Closing Forms in .Net Opening &#38; Closing the forms have changed from Visual Basic 6.0 to VB.Net The Form object in Visual Basic 6.0 is replaced by the Form class in Visual Basic 2005. The names of some properties, methods, events, and constants are different, and in some cases there are differences in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=16&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="post hentry uncustomized-post-template"><a name="1447614779854094143"></a></p>
<h3 class="post-title entry-title"><a href="http://dotnetdud.blogspot.com/2007/06/opening-closing-forms-in-net.html">Opening  &amp; Closing Forms in .Net</a></h3>
<div class="post-body entry-content">Opening &amp; Closing the forms have changed from Visual Basic 6.0 to  VB.Net</p>
<p>The <b>Form</b> object in Visual Basic 6.0 is replaced by the  Form class in Visual Basic  2005. The names of some properties, methods, events, and constants are  different, and in some cases there are differences in  behavior</p>
<p>Form1.Show Modal=True in VB 6.0 is replaced with the  ShowDialog</p>
<p><code></p>
<p>Sub Show_Form_Modal()</p>
<p>Form1.ShowDialog()  ' Modal</p>
<p>End Sub</p>
<p>Sub Show_Form_Modeless()</p>
<p>Form1.Show() '  Modeless</p>
<p>End Sub</p>
<p>Closing which was done by  Unload(Me)</p>
<p>Private Sub Button1_Click(ByVal sender As System.Object, ByVal  e As System.EventArgs) Handles Button1.Click</p>
<p>Me.Close()</p>
<p>End  Sub<br />
</code></p>
<p><!-- TopBlogArea.com START --><a href="http://www.topblogarea.com/computers/" title="Computers blogs"><img src="http://www.topblogarea.com/tracker.php?do=in&amp;id=11792" alt="Top Computers blogs" border="0" /></a><!-- TopBlogArea.com END --></div>
<div class="post-footer">
<p class="post-footer-line post-footer-line-1"><span class="post-author vcard">Posted by <span class="fn">Shasur</span> </span><span class="post-timestamp">at <a href="http://dotnetdud.blogspot.com/2007/06/opening-closing-forms-in-net.html" class="timestamp-link" title="permanent link" rel="bookmark"><abbr title="2007-06-08T18:51:00-07:00">6:51  PM</abbr></a> </span><span class="post-comment-link"><a href="http://www.blogger.com/comment.g?blogID=6497434045878013201&amp;postID=1447614779854094143" class="comment-link">0  comments</a> </span><span class="post-backlinks post-comment-link"></span><span class="post-icons"><span class="item-control blog-admin pid-24239361"><a href="http://www.blogger.com/post-edit.g?blogID=6497434045878013201&amp;postID=1447614779854094143" title="Edit Post"><img src="http://www.blogger.com/img/icon18_edit_allbkg.gif" class="icon-action" /> </a></span></span></p>
<p class="post-footer-line post-footer-line-2"><span class="post-labels">Labels:  <a href="http://dotnetdud.blogspot.com/search/label/Closing%20Forms%20in%20.Net" rel="tag">Closing Forms in .Net</a>, <a href="http://dotnetdud.blogspot.com/search/label/Dot%20Net" rel="tag">Dot Net</a>,  <a href="http://dotnetdud.blogspot.com/search/label/Form%20Close%20MEthod" rel="tag">Form Close MEthod</a>, <a href="http://dotnetdud.blogspot.com/search/label/Form%20ShowDialog" rel="tag">Form  ShowDialog</a>, <a href="http://dotnetdud.blogspot.com/search/label/Modal%20Forms%20in%20.Net" rel="tag">Modal Forms in .Net</a>, <a href="http://dotnetdud.blogspot.com/search/label/Modeless%20forms%20in%20.Net" rel="tag">Modeless forms in .Net</a>, <a href="http://dotnetdud.blogspot.com/search/label/Unloading%20Forms%20in%20.Net" rel="tag">Unloading Forms in .Net</a>, <a href="http://dotnetdud.blogspot.com/search/label/VB.Net" rel="tag">VB.Net</a>  </span></p>
<p class="post-footer-line post-footer-line-3">&nbsp;</p>
</div>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetdud.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetdud.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdud.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdud.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdud.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdud.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdud.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdud.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdud.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdud.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdud.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdud.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdud.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdud.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdud.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdud.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=16&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdud.wordpress.com/2007/12/25/opening-closing-forms-in-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>

		<media:content url="http://www.topblogarea.com/tracker.php?do=in&#38;id=11792" medium="image">
			<media:title type="html">Top Computers blogs</media:title>
		</media:content>

		<media:content url="http://www.blogger.com/img/icon18_edit_allbkg.gif" medium="image" />
	</item>
		<item>
		<title>VB.Net Form Close vs Form Dispose</title>
		<link>http://dotnetdud.wordpress.com/2007/12/25/vbnet-form-close-vs-form-dispose/</link>
		<comments>http://dotnetdud.wordpress.com/2007/12/25/vbnet-form-close-vs-form-dispose/#comments</comments>
		<pubDate>Tue, 25 Dec 2007 02:08:29 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://dotnetdud.wordpress.com/2007/12/25/vbnet-form-close-vs-form-dispose/</guid>
		<description><![CDATA[VB.Net Form Close vs Form Dispose Two methods doing some identical jobs always create some confusion. What to use to &#8216;unload&#8217; the form Form.Close or Form.Dispose Form.Close should be the answer as going by Microsoft Form.Close disposes the form as well if the form Modeless . One more advantage you get from this method is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=15&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="post hentry uncustomized-post-template"><a name="6267886998514092324"></a></p>
<h3 class="post-title entry-title"><a href="http://dotnetdud.blogspot.com/2007/06/vbnet-form-close-vs-form-dispose.html">VB.Net  Form Close vs Form Dispose</a></h3>
<div class="post-body entry-content">Two methods doing some identical jobs always create some confusion. What to  use to &#8216;unload&#8217; the form Form.Close or Form.Dispose</p>
<p>Form.Close should be  the answer as going by Microsoft Form.Close disposes the form as well if the  form Modeless .</p>
<p>One more advantage you get from this method is from the  events that are associated with the form</p>
<p>You can prevent the closing of a  form at run time by handling the <a href="http://dotnetdud.blogspot.com/E_System_Windows_Forms_Form_Closing.htm">Closing</a>  event and setting the Cancel  property of the CancelEventArgs  passed as a parameter to your event handler.</p>
<p>Private Sub  Form1_FormClosing(ByVal sender As Object, ByVal e As  System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing<br />
If  MessageBox.Show(&#8220;Form is closing&#8221;, &#8220;Form Close&#8221;, MessageBoxButtons.YesNo,  MessageBoxIcon.Hand) = Windows.Forms.DialogResult.No Then<br />
e.Cancel =  True<br />
End If<br />
End Sub</p>
<p>The above prevents the form being  closed</p>
<p>When the form is opened as Modal form (using Showdialog) you can  dispose the form explicitly</p>
<p><!-- begin RSS Feeds Submission Directory link --><br />
<a href="http://rss-feeds-submission.com/" title="RSS Feeds Submission Directory"></a></div>
<div class="post-footer">
<p class="post-footer-line post-footer-line-2"><span class="post-labels">Labels:  <a href="http://dotnetdud.blogspot.com/search/label/Form%20Close%20MEthod" rel="tag">Form Close MEthod</a>, <a href="http://dotnetdud.blogspot.com/search/label/Form%20Dialog%20Method" rel="tag">Form Dialog Method</a>, <a href="http://dotnetdud.blogspot.com/search/label/FormClosing%20Event" rel="tag">FormClosing Event</a>, <a href="http://dotnetdud.blogspot.com/search/label/VB.Net%20Form%20Close%20vs%20Form%20Dispose" rel="tag">VB.Net Form Close vs Form Dispose</a>, <a href="http://dotnetdud.blogspot.com/search/label/VB.Net%20Prevent%20form%20closing" rel="tag">VB.Net Prevent form closing</a> </span></p>
<p class="post-footer-line post-footer-line-3">&nbsp;</p>
</div>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetdud.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetdud.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdud.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdud.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdud.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdud.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdud.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdud.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdud.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdud.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdud.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdud.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdud.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdud.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdud.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdud.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=15&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdud.wordpress.com/2007/12/25/vbnet-form-close-vs-form-dispose/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting Default &amp; Cancel Buttons in Visual Basic.Net Form</title>
		<link>http://dotnetdud.wordpress.com/2007/12/25/setting-default-cancel-buttons-in-visual-basicnet-form/</link>
		<comments>http://dotnetdud.wordpress.com/2007/12/25/setting-default-cancel-buttons-in-visual-basicnet-form/#comments</comments>
		<pubDate>Tue, 25 Dec 2007 02:08:05 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://dotnetdud.wordpress.com/2007/12/25/setting-default-cancel-buttons-in-visual-basicnet-form/</guid>
		<description><![CDATA[VB.Net Setting Default &#38; Cancel Buttons Setting Default &#38; Cancel Buttons in Visual Basic.Net Form Default button is in VB.NEt with a different name &#8211; AcceptButton. However, cancel button retains its name: Here is a way you can set them Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load &#8216;Sets cmdOK as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=14&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="post hentry uncustomized-post-template"><a name="209431612613981791"></a></p>
<h3 class="post-title entry-title"><a href="http://dotnetdud.blogspot.com/2007/06/vbnet-setting-default-cancel-buttons.html">VB.Net  Setting Default &amp; Cancel Buttons</a></h3>
<div class="post-body entry-content">Setting Default &amp; Cancel Buttons in Visual Basic.Net Form</p>
<p>Default  button is in VB.NEt with a different name &#8211; AcceptButton. However, cancel button  retains its name:</p>
<p>Here is a way you can set them</p>
<p>Private Sub  Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles  Me.Load</p>
<p>&#8216;Sets cmdOK as the button control that is clicked when the user  presses the Enter key.<br />
Me.AcceptButton = cmdOK</p>
<p>&#8216;Sets cmdCancel as the  button control that is clicked when the user presses the ESC  key.<br />
Me.CancelButton = cmdCancel</p>
<p>End Sub</p>
<p><a href="http://www.blogdigger.com/"><img src="http://www.blogdigger.com/images/blogdigger2.gif" border="0" /></a></p>
<p>For  setting the same in VBA/VB refer : <a href="http://vbadud.blogspot.com/2007/06/setting-default-cancel-buttons-in.html">http://vbadud.blogspot.com/2007/06/setting-default-cancel-buttons-in.html</a></div>
<div class="post-footer">
<p class="post-footer-line post-footer-line-1"><span class="post-author vcard">Posted by <span class="fn">Shasur</span> </span><span class="post-timestamp">at <a href="http://dotnetdud.blogspot.com/2007/06/vbnet-setting-default-cancel-buttons.html" class="timestamp-link" title="permanent link" rel="bookmark"><abbr title="2007-06-08T19:56:00-07:00">7:56  PM</abbr></a> </span><span class="post-comment-link"><a href="http://www.blogger.com/comment.g?blogID=6497434045878013201&amp;postID=209431612613981791" class="comment-link">0  comments</a> </span><span class="post-backlinks post-comment-link"></span><span class="post-icons"><span class="item-control blog-admin pid-24239361"><a href="http://www.blogger.com/post-edit.g?blogID=6497434045878013201&amp;postID=209431612613981791" title="Edit Post"><img src="http://www.blogger.com/img/icon18_edit_allbkg.gif" class="icon-action" /> </a></span></span></p>
<p class="post-footer-line post-footer-line-2"><span class="post-labels">Labels:  <a href="http://dotnetdud.blogspot.com/search/label/Setting%20%20Cancel%20Buttons%20in%20Visual%20Basic.Net" rel="tag">Setting Cancel Buttons in Visual Basic.Net</a>, <a href="http://dotnetdud.blogspot.com/search/label/Setting%20Default%20Buttons%20in%20Visual%20Basic.Net" rel="tag">Setting Default Buttons in Visual Basic.Net</a> </span></p>
<p class="post-footer-line post-footer-line-3">&nbsp;</p>
</div>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetdud.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetdud.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdud.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdud.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdud.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdud.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdud.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdud.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdud.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdud.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdud.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdud.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdud.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdud.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdud.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdud.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=14&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdud.wordpress.com/2007/12/25/setting-default-cancel-buttons-in-visual-basicnet-form/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>

		<media:content url="http://www.blogdigger.com/images/blogdigger2.gif" medium="image" />

		<media:content url="http://www.blogger.com/img/icon18_edit_allbkg.gif" medium="image" />
	</item>
		<item>
		<title>Get Folder Size using .Net</title>
		<link>http://dotnetdud.wordpress.com/2007/12/25/get-folder-size-using-net/</link>
		<comments>http://dotnetdud.wordpress.com/2007/12/25/get-folder-size-using-net/#comments</comments>
		<pubDate>Tue, 25 Dec 2007 02:07:39 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://dotnetdud.wordpress.com/2007/12/25/get-folder-size-using-net/</guid>
		<description><![CDATA[Directory Size using VB.Net For getting the size of each directory in Vb.Net, you need to add up the size of each file in the directory. This function gets the size of each directory including sub-directories and writes to a text file Imports System.IO Dim oBuffer As System.IO.TextWriter Function Get_Directory_Size(ByVal sDirPath As String) Dim lDirSize [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=13&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="post hentry uncustomized-post-template"><a name="6391010272835505748"></a></p>
<h3 class="post-title entry-title"><a href="http://dotnetdud.blogspot.com/2007/06/directory-size-using-vbnet.html">Directory  Size using VB.Net</a></h3>
<div class="post-body entry-content"><span style="font-weight:bold;color:#ff6600;"></span></p>
<p>For getting the size of each directory in Vb.Net, you need to  add up the size of each file in the directory.</p>
<p>This function gets the  size of each directory including sub-directories and writes to a text  file</p>
<p>Imports System.IO</p>
<p>Dim oBuffer As  System.IO.TextWriter</p>
<p>Function Get_Directory_Size(ByVal sDirPath As  String)</p>
<p>Dim lDirSize As Long<br />
Dim oDir As DirectoryInfo<br />
Dim sDir As  DirectoryInfo<br />
Dim sFiles As FileInfo<br />
Dim iFN As Short &#8216;* File  Number<br />
Dim sPath As String &#8216;* Saving Path</p>
<p>&#8216;Dim oFSW As  System.IO.FileSystemWatcher</p>
<p>oDir = New DirectoryInfo(sDirPath)</p>
<p>Dim  oDirs As DirectoryInfo() = oDir.GetDirectories()</p>
<p>For Each sDir In  oDirs</p>
<p>lDirSize = 0</p>
<p>For Each sFiles In  sDir.GetFiles(&#8220;*.*&#8221;)<br />
lDirSize +=  sFiles.Length<br />
Next</p>
<p>&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&#8216;  Coded by Shasur for  http://dotnetdud.blogspot.com/<br />
&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>&#8216;MsgBox(&#8220;Size  of Directory &#8221; &amp; sDir.Name &amp; &#8221; is &#8221; &amp;  lDirSize)<br />
oBuffer.WriteLine(sDir.FullName &amp; vbTab &amp;  lDirSize)</p>
<p>Get_Directory_Size(sDirPath &amp; sDir.Name &amp;  &#8220;\&#8221;)</p>
<p>Next</p>
<p>End Function</p>
<p>The procedure below uses  WriteLine function of the StreamWriter class</p>
<p>Sub  Store_Size_Of_Directory</p>
<p>Dim sOPFile As String</p>
<p>sOPFile =  c:\SystemDirSize.log&#8221;</p>
<p>&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&#8216;  Coded by Shasur for  http://dotnetdud.blogspot.com/<br />
&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>oBuffer  = New  System.IO.StreamWriter(sOPFile)<br />
oBuffer.WriteLine(Now())</p>
<p>Get_Directory_Size(&#8220;c:\&#8221;)</p>
<p>oBuffer.Close()<br />
End  Sub</p></div>
<div class="post-footer">
<p class="post-footer-line post-footer-line-1"><span class="post-author vcard">Posted by <span class="fn">Shasur</span> </span><span class="post-timestamp">at <a href="http://dotnetdud.blogspot.com/2007/06/directory-size-using-vbnet.html" class="timestamp-link" title="permanent link" rel="bookmark"><abbr title="2007-06-15T18:33:00-07:00">6:33  PM</abbr></a> </span><span class="post-comment-link"><a href="http://www.blogger.com/comment.g?blogID=6497434045878013201&amp;postID=6391010272835505748" class="comment-link">0  comments</a> </span><span class="post-backlinks post-comment-link"></span><span class="post-icons"><span class="item-control blog-admin pid-24239361"><a href="http://www.blogger.com/post-edit.g?blogID=6497434045878013201&amp;postID=6391010272835505748" title="Edit Post"><img src="http://www.blogger.com/img/icon18_edit_allbkg.gif" class="icon-action" /> </a></span></span></p>
<p class="post-footer-line post-footer-line-2"><span class="post-labels">Labels:  <a href="http://dotnetdud.blogspot.com/search/label/.Net%20Get%20Subdirectories" rel="tag">.Net Get Subdirectories</a>, <a href="http://dotnetdud.blogspot.com/search/label/.Net%20StreamWriter" rel="tag">.Net StreamWriter</a>, <a href="http://dotnetdud.blogspot.com/search/label/Get%20Directory%20Size%20using.Net" rel="tag">Get Directory Size using.Net</a>, <a href="http://dotnetdud.blogspot.com/search/label/Get%20Folder%20Size%20using.Net" rel="tag">Get Folder Size using.Net</a>, <a href="http://dotnetdud.blogspot.com/search/label/VB.Net" rel="tag">VB.Net</a>, <a href="http://dotnetdud.blogspot.com/search/label/Write%20to%20Text%20File%20using%20.Net" rel="tag">Write to Text File using .Net</a> </span></p>
<p class="post-footer-line post-footer-line-3">&nbsp;</p>
</div>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetdud.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetdud.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdud.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdud.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdud.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdud.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdud.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdud.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdud.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdud.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdud.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdud.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdud.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdud.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdud.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdud.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=13&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdud.wordpress.com/2007/12/25/get-folder-size-using-net/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>

		<media:content url="http://www.blogger.com/img/icon18_edit_allbkg.gif" medium="image" />
	</item>
		<item>
		<title>Directory Selection in Windows Forms using VB.Net</title>
		<link>http://dotnetdud.wordpress.com/2007/12/25/directory-selection-in-windows-forms-using-vbnet/</link>
		<comments>http://dotnetdud.wordpress.com/2007/12/25/directory-selection-in-windows-forms-using-vbnet/#comments</comments>
		<pubDate>Tue, 25 Dec 2007 02:07:19 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://dotnetdud.wordpress.com/2007/12/25/directory-selection-in-windows-forms-using-vbnet/</guid>
		<description><![CDATA[Selecting a Folder in VB.Net The Visual Basic 6.0 DirListBox control has been rendered obsolete by the OpenFileDialog and SaveFileDialog components in Visual Basic 2005. If you want to select a directory FolderBrowser Dialog will be the one you need to use For this example, Let us have a form with a TextBox and a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=12&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="post hentry uncustomized-post-template"><a name="7109791507114096914"></a></p>
<h3 class="post-title entry-title"><a href="http://dotnetdud.blogspot.com/2007/06/selecting-folder-in-vbnet.html">Selecting  a Folder in VB.Net</a></h3>
<div class="post-body entry-content"><span style="font-weight:bold;color:#ff6600;"></span></p>
<p>The Visual Basic 6.0 DirListBox control  has been rendered obsolete by the OpenFileDialog and SaveFileDialog components  in Visual Basic 2005. If you want to select a directory FolderBrowser Dialog  will be the one you need to use</p>
<p>For this example, Let us have a form with  a TextBox and a command button. When the command buton is pressed, the  folderdialog is shown and then the selected folder is displayed in the  textbox</p>
<p>Sample Form:</p>
<p><a href="http://bp0.blogger.com/_s2jU7girbyM/Rn3gfbusYjI/AAAAAAAAABY/K-iw2YBsaUA/s1600-h/Form.gif"><img src="http://bp0.blogger.com/_s2jU7girbyM/Rn3gfbusYjI/AAAAAAAAABY/K-iw2YBsaUA/s400/Form.gif" style="cursor:pointer;" border="0" /></a></p>
<p>Add the FolderBrowser Dialog to the form from the  Dialogs Collection (see below).</p>
<p><a href="http://bp2.blogger.com/_s2jU7girbyM/Rn3gk7usYkI/AAAAAAAAABg/FbeqMsWYbkg/s1600-h/Dialogs.gif"><img src="http://bp2.blogger.com/_s2jU7girbyM/Rn3gk7usYkI/AAAAAAAAABg/FbeqMsWYbkg/s400/Dialogs.gif" style="cursor:pointer;" border="0" /></a></p>
<p>This control will not be placed on the form but on a  separate tray at the bottom of the Windows Forms Designer. (see below)</p>
<p><a href="http://bp1.blogger.com/_s2jU7girbyM/Rn3gprusYlI/AAAAAAAAABo/jL1ZKDF0kJ8/s1600-h/Tray.gif"><img src="http://bp1.blogger.com/_s2jU7girbyM/Rn3gprusYlI/AAAAAAAAABo/jL1ZKDF0kJ8/s400/Tray.gif" style="cursor:pointer;" border="0" /></a></p>
<p>Now in the click event for the Button have the  following code:</p>
<p><span style="color:#3333ff;">Private Sub  BtnFolder_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)  Handles BtnFolder.Click</span></p>
<p><span style="color:#3333ff;">Dim  MyFolderBrowser As New  System.Windows.Forms.FolderBrowserDialog</span></p>
<p><span style="color:#3333ff;">&#8216; Descriptive text displayed above the tree view  control in the dialog box</span><br />
<span style="color:#3333ff;">MyFolderBrowser.Description = &#8220;Select the  Folder&#8221;</span></p>
<p><span style="color:#3333ff;">&#8216; Sets the root folder  where the browsing starts from</span><br />
<span style="color:#3333ff;">&#8216;MyFolderBrowser.RootFolder =  Environment.SpecialFolder.MyDocuments</span></p>
<p><span style="color:#3333ff;">&#8216; Do not show the button for new  folder</span><br />
<span style="color:#3333ff;">MyFolderBrowser.ShowNewFolderButton =  False</span></p>
<p><span style="color:#3333ff;">Dim dlgResult As  DialogResult = MyFolderBrowser.ShowDialog()</span></p>
<p><span style="color:#3333ff;">If dlgResult = Windows.Forms.DialogResult.OK  Then</span><br />
<span style="color:#3333ff;">txt_watchpath.Text =  MyFolderBrowser.SelectedPath</span><br />
<span style="color:#3333ff;">End  If</span></p>
<p><span style="color:#3333ff;">End  Sub</span></p>
<p>The FolderBrowserDialog component is displayed at run time  using the ShowDialog method. Set the RootFolder property to determine the  top-most folder and any subfolders that will appear within the tree view of the  dialog box. Once the dialog box has been shown, you can use the SelectedPath  property to get the path of the folder that was selected</p>
<p>For similar  functionality in VB6.0 refer <a href="http://vbadud.blogspot.com/2007/04/browse-folder-select-folder-thru-shell.html">http://vbadud.blogspot.com/2007/04/browse-folder-select-folder-thru-shell.html</a></p>
<p>When  a Visual Basic 6.0 application is upgraded to Visual Basic 2005, any existing  DirListBox controls are upgraded to the VB6.DirListBox control that is provided  as a part of the compatibility library  (Microsoft.VisualBasic.Compatibility).</p></div>
<div class="post-footer">
<p class="post-footer-line post-footer-line-1"><span class="post-author vcard">Posted by <span class="fn">Shasur</span> </span><span class="post-timestamp">at <a href="http://dotnetdud.blogspot.com/2007/06/selecting-folder-in-vbnet.html" class="timestamp-link" title="permanent link" rel="bookmark"><abbr title="2007-06-23T20:07:00-07:00">8:07  PM</abbr></a> </span><span class="post-comment-link"><a href="http://www.blogger.com/comment.g?blogID=6497434045878013201&amp;postID=7109791507114096914" class="comment-link">1  comments</a> </span><span class="post-backlinks post-comment-link"></span><span class="post-icons"><span class="item-control blog-admin pid-24239361"><a href="http://www.blogger.com/post-edit.g?blogID=6497434045878013201&amp;postID=7109791507114096914" title="Edit Post"><img src="http://www.blogger.com/img/icon18_edit_allbkg.gif" class="icon-action" /> </a></span></span></p>
<p class="post-footer-line post-footer-line-2"><span class="post-labels">Labels:  <a href="http://dotnetdud.blogspot.com/search/label/Common%20Dialog%20in%20VB.Net" rel="tag">Common Dialog in VB.Net</a>, <a href="http://dotnetdud.blogspot.com/search/label/Dot%20Net" rel="tag">Dot Net</a>,  <a href="http://dotnetdud.blogspot.com/search/label/FolderBrowser%20Dialog" rel="tag">FolderBrowser Dialog</a>, <a href="http://dotnetdud.blogspot.com/search/label/Selecting%20a%20Folder%20in%20VB.Net" rel="tag">Selecting a Folder in VB.Net</a>, <a href="http://dotnetdud.blogspot.com/search/label/Selecting%20Directories%20in%20VB.Net" rel="tag">Selecting Directories in VB.Net</a>, <a href="http://dotnetdud.blogspot.com/search/label/VB.Net" rel="tag">VB.Net</a>  </span></p>
<p class="post-footer-line post-footer-line-3">&nbsp;</p>
</div>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetdud.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetdud.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetdud.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetdud.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetdud.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetdud.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotnetdud.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotnetdud.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotnetdud.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotnetdud.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetdud.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetdud.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetdud.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetdud.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetdud.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetdud.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetdud.wordpress.com&amp;blog=2211964&amp;post=12&amp;subd=dotnetdud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotnetdud.wordpress.com/2007/12/25/directory-selection-in-windows-forms-using-vbnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>

		<media:content url="http://bp0.blogger.com/_s2jU7girbyM/Rn3gfbusYjI/AAAAAAAAABY/K-iw2YBsaUA/s400/Form.gif" medium="image" />

		<media:content url="http://bp2.blogger.com/_s2jU7girbyM/Rn3gk7usYkI/AAAAAAAAABg/FbeqMsWYbkg/s400/Dialogs.gif" medium="image" />

		<media:content url="http://bp1.blogger.com/_s2jU7girbyM/Rn3gprusYlI/AAAAAAAAABo/jL1ZKDF0kJ8/s400/Tray.gif" medium="image" />

		<media:content url="http://www.blogger.com/img/icon18_edit_allbkg.gif" medium="image" />
	</item>
	</channel>
</rss>
