<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>IdealProgrammer.com &#187; VB.NET Code</title> <atom:link href="http://idealprogrammer.com/category/code-samples/vb-net-code/feed/" rel="self" type="application/rss+xml" /><link>http://idealprogrammer.com</link> <description>Take a Little Action each Day to Transform Yourself into the Ideal Programmer</description> <lastBuildDate>Sun, 22 Apr 2012 16:50:40 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>How to make a keygen using vb.net</title><link>http://idealprogrammer.com/net-languages/code-samples/vb-net-code/keygen-vbnet/</link> <comments>http://idealprogrammer.com/net-languages/code-samples/vb-net-code/keygen-vbnet/#comments</comments> <pubDate>Fri, 12 Nov 2010 10:30:47 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[VB.NET Code]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=2870</guid> <description><![CDATA[<p><font
color="#9400d3"><strong>How To Make a keygen using vb.net </strong></font></p><p><font
color="#9400d3"><strong>Source: coderforums </strong></font></p><p><font
color="#9400d3"><strong>For support and suggestions please visit idealprogrammer forums</strong></font></p><p><font
color="#9400d3"><strong>Description:<br
/> </strong></font><font
color="#0000cd">A <b>keygen</b> means a program that generate keys for a certain program.</font></p><p><b><font
color="#9400d3">Preparation:</font></b><font
color="#0000cd"> </font><b><font
color="#9400d3">Steps:</font></b><br
/> <font
color="#0000cd">1. Create a project</font><br
/> <font
color="#1e90ff">Open Visual Basic 8 and create a <b>Windows Form Application.</b> Name it as the keygen you want to make. In this tutorial, i will make a Windows 7 Keygen as an example.<br
/> <a
onclick="pageTracker._trackPageview ('/outgoing/http_img220_imageshack_us_img220_5807_88902635_png');" href="http://img220.imageshack.us/img220/5807/88902635.png" rel="nofollow" target="_blank"><font
color="#4594cc">http://img220.imageshack.us/img220/5807/88902635.png</font></a></font></p><p><font
color="#0000cd">2. Edit the project properties</font><br
/> <font
color="#1e90ff">When you&#039;ve done creating the project, now you have to change the project&#039;s properties. In the box at the bottom right hand side of the project, that&#039;s where you change the properties for everything. Click on the form and change the properties as below:</font><br
/> <font
color="#1e90ff">http://img213.imageshack.us/img213/3620/65636137.png</font></p><p><font
color="#0000cd">3. Adding items into your project</font><br
/> <font
color="#1e90ff">Now you should add some items into your keygen. These are the things you should contain in a keygen:</font><br
/> <font
color="#1e90ff">To add items into your keygen, look at the toolbox at the left of your project. Simply drag the item that you want and put it into your project. It will appear there, and you can put it in where you like.</font></p><p><font
color="#0000cd">4. Finding a logo</font><br
/> <font
color="#1e90ff">Now you should find a logo to put into your keygen. The logo must be related to the program of the keygen. You can google the logo of the program and add some text into it.</font></p><p><font
color="#32cd32">This is what i made for mine:<br
/> <a
onclick="pageTracker._trackPageview ('/outgoing/http_img32_imageshack_us_img32_5243_windowsicon2_png');" href="http://img32.imageshack.us/img32/5243/windowsicon2.png" rel="nofollow" target="_blank"><font
color="#4594cc">http://img32.imageshack.us/img32/5243/windowsicon2.png</font></a></font><br
/> <font
color="#1e90ff">Once you got your logo ready, insert a <b>PictureBox</b> into your project and insert the picture into it.</font></p><p><font
color="#0000cd">5. Insert the data into your project</font><br
/> <font
color="#1e90ff">Once you&#039;ve inserted your logo, you can start to put in the required data into your project. <br
/> Insert a label and change the <b>Text</b> to &#34;Select the version you want:&#34; or something like that. Once you&#039;ve done that, you can now proceed to the <b>ComboBox/RadioButton</b>. Here i will use <b>ComboBox</b> because it&#039;s much more easier to use. To change the data in the <b>ComboBox</b>, click on the <b>ComboBox</b> and click <b>Items</b> in the <b>Properties</b>.</font></p><p><font
color="#0000cd">6. Inserting your keys into the keygen</font><br
/> <font
color="#1e90ff">Now you can start inserting the keys into your keygen. These keys will be shown when you click the <b>Generate Button</b>.<br
/> Double click the <b>Generate</b> button and paste the following into the code:<br
/> </font></p><p><font
color="#0000cd">7. Finalizing and building your keygen</font><br
/> <font
color="#1e90ff">Now you have already reached the last step of building your keygen! Press <b>F5</b> and debug your project and test whether the buttons are working or not. When you&#039;re done, click <b>Build</b> on the top menu and click <b>Build {ProjectName}</b>. <br
/> <a
onclick="pageTracker._trackPageview ('/outgoing/http_img297_imageshack_us_img297_6214_67805702_png');" href="http://img297.imageshack.us/img297/6214/67805702.png" rel="nofollow" target="_blank"><font
color="#4594cc">http://img297.imageshack.us/img297/6214/67805702.png</font></a><br
/> To see your built keygen, go to <b>Documents\Visual Studio 2008\Projects\{ProjectName}\{ProjectName}\Bin\Rele ase\{ProjectName}.exe</b></font></p><p><font
color="#565656">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p>And now you&#039;re done! I&#039;ll provide you the exe for my project here&#8230;<img
class="inlineimg" title="Smile" border="0" alt="" src="http://idealprogrammer.com/images/smilies/smile.gif" width="16" height="16" /><br
/> </font><font
color="#9400d3">exe file download:</font><br
/> &#160;</p><p><a
href="http://idealprogrammer.com/net-languages/code-samples/vb-net-code/keygen-vbnet/" class="more-link">Read more on How to make a keygen using vb.net&#8230;</a></p><p><a
href="http://idealprogrammer.com/net-languages/code-samples/vb-net-code/keygen-vbnet/">How to make a keygen using vb.net</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/net-languages/programming-languages-news/' rel='bookmark' title='Permanent Link: Programming Languages News'>Programming Languages News</a> <small> Forty Years of LOGO &#8211; Slashdot 16 Oct 2007...</small></li><li><a
href='http://idealprogrammer.com/net-languages/programming-languages-news/' rel='bookmark' title='Permanent Link: Programming Languages News'>Programming Languages News</a> <small> Forty Years of LOGO &#8211; Slashdot 16 Oct 2007...</small></li><li><a
href='http://idealprogrammer.com/development_tools/idealprogrammer-html-css-tutorials/photoshop-programming/2698/' rel='bookmark' title='Permanent Link: Photoshop &#8211; create cs3 icons'>Photoshop &#8211; create cs3 icons</a> <small>Step 1 When I want to create an effect that...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p><p><a
href="http://idealprogrammer.com/net-languages/code-samples/vb-net-code/keygen-vbnet/">How to make a keygen using vb.net</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>Related posts:<ol><li><a
href='http://idealprogrammer.com/net-languages/programming-languages-news/' rel='bookmark' title='Permanent Link: Programming Languages News'>Programming Languages News</a> <small> Forty Years of LOGO &#8211; Slashdot 16 Oct 2007...</small></li><li><a
href='http://idealprogrammer.com/net-languages/programming-languages-news/' rel='bookmark' title='Permanent Link: Programming Languages News'>Programming Languages News</a> <small> Forty Years of LOGO &#8211; Slashdot 16 Oct 2007...</small></li><li><a
href='http://idealprogrammer.com/development_tools/idealprogrammer-html-css-tutorials/photoshop-programming/2698/' rel='bookmark' title='Permanent Link: Photoshop &#8211; create cs3 icons'>Photoshop &#8211; create cs3 icons</a> <small>Step 1 When I want to create an effect that...</small></li></ol>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<p><font
color="#9400d3"><strong>How To Make a keygen using vb.net </strong></font></p><p><font
color="#9400d3"><strong>Source: coderforums </strong></font></p><p><font
color="#9400d3"><strong>For support and suggestions please visit idealprogrammer forums</strong></font></p><p><font
color="#9400d3"><strong>Description:<br
/> </strong></font><font
color="#0000cd">A <b>keygen</b> means a program that generate keys for a certain program.</font></p><p><b><font
color="#9400d3">Preparation:</font></b><font
color="#0000cd"> </font><b><font
color="#9400d3">Steps:</font></b><br
/> <font
color="#0000cd">1. Create a project</font><br
/> <font
color="#1e90ff">Open Visual Basic 8 and create a <b>Windows Form Application.</b> Name it as the keygen you want to make. In this tutorial, i will make a Windows 7 Keygen as an example.<br
/> <a
onclick="pageTracker._trackPageview ('/outgoing/http_img220_imageshack_us_img220_5807_88902635_png');" href="http://img220.imageshack.us/img220/5807/88902635.png" rel="nofollow" target="_blank"><font
color="#4594cc">http://img220.imageshack.us/img220/5807/88902635.png</font></a></font></p><p><font
color="#0000cd">2. Edit the project properties</font><br
/> <font
color="#1e90ff">When you&#039;ve done creating the project, now you have to change the project&#039;s properties. In the box at the bottom right hand side of the project, that&#039;s where you change the properties for everything. Click on the form and change the properties as below:</font><br
/> <font
color="#1e90ff">http://img213.imageshack.us/img213/3620/65636137.png</font></p><p><font
color="#0000cd">3. Adding items into your project</font><br
/> <font
color="#1e90ff">Now you should add some items into your keygen. These are the things you should contain in a keygen:</font><br
/> <font
color="#1e90ff">To add items into your keygen, look at the toolbox at the left of your project. Simply drag the item that you want and put it into your project. It will appear there, and you can put it in where you like.</font></p><p><font
color="#0000cd">4. Finding a logo</font><br
/> <font
color="#1e90ff">Now you should find a logo to put into your keygen. The logo must be related to the program of the keygen. You can google the logo of the program and add some text into it.</font></p><p><font
color="#32cd32">This is what i made for mine:<br
/> <a
onclick="pageTracker._trackPageview ('/outgoing/http_img32_imageshack_us_img32_5243_windowsicon2_png');" href="http://img32.imageshack.us/img32/5243/windowsicon2.png" rel="nofollow" target="_blank"><font
color="#4594cc">http://img32.imageshack.us/img32/5243/windowsicon2.png</font></a></font><br
/> <font
color="#1e90ff">Once you got your logo ready, insert a <b>PictureBox</b> into your project and insert the picture into it.</font></p><p><font
color="#0000cd">5. Insert the data into your project</font><br
/> <font
color="#1e90ff">Once you&#039;ve inserted your logo, you can start to put in the required data into your project. <br
/> Insert a label and change the <b>Text</b> to &quot;Select the version you want:&quot; or something like that. Once you&#039;ve done that, you can now proceed to the <b>ComboBox/RadioButton</b>. Here i will use <b>ComboBox</b> because it&#039;s much more easier to use. To change the data in the <b>ComboBox</b>, click on the <b>ComboBox</b> and click <b>Items</b> in the <b>Properties</b>.</font></p><p><font
color="#0000cd">6. Inserting your keys into the keygen</font><br
/> <font
color="#1e90ff">Now you can start inserting the keys into your keygen. These keys will be shown when you click the <b>Generate Button</b>.<br
/> Double click the <b>Generate</b> button and paste the following into the code:<br
/> </font></p><p><font
color="#0000cd">7. Finalizing and building your keygen</font><br
/> <font
color="#1e90ff">Now you have already reached the last step of building your keygen! Press <b>F5</b> and debug your project and test whether the buttons are working or not. When you&#039;re done, click <b>Build</b> on the top menu and click <b>Build {ProjectName}</b>. <br
/> <a
onclick="pageTracker._trackPageview ('/outgoing/http_img297_imageshack_us_img297_6214_67805702_png');" href="http://img297.imageshack.us/img297/6214/67805702.png" rel="nofollow" target="_blank"><font
color="#4594cc">http://img297.imageshack.us/img297/6214/67805702.png</font></a><br
/> To see your built keygen, go to <b>Documents\Visual Studio 2008\Projects\{ProjectName}\{ProjectName}\Bin\Rele ase\{ProjectName}.exe</b></font></p><p><font
color="#565656">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p>And now you&#039;re done! I&#039;ll provide you the exe for my project here&#8230;<img
class="inlineimg" title="Smile" border="0" alt="" src="http://idealprogrammer.com/images/smilies/smile.gif" width="16" height="16" /><br
/> </font><font
color="#9400d3">exe file download:</font><br
/> &nbsp;</p><ol
style="list-style-type: decimal"><li>Get Visual Basic if you don&#039;t have it (<a
onclick="pageTracker._trackPageview ('/outgoing/http_www_microsoft_com_express_Downloads_2008_Visual_Basic');" href="http://www.microsoft.com/express/Downloads/#2008-Visual-Basic" rel="nofollow" target="_blank"><font
color="#4594cc">Download link</font></a>)</li><li>Think of what should your keygen be (e.g. Windows Key Generator, Kaspersky Keygen and such)</li><li>Plan on what you want to include in your keygen</li><li>Plan on what you should include in your keygen</li><li><b>[optional]</b> Getting an icon (You convert any image file to an icon file <a
onclick="pageTracker._trackPageview ('/outgoing/http_www_coolutils_com_Online_Image_Converter_php');" href="http://www.coolutils.com/Online-Image-Converter.php" rel="nofollow" target="_blank"><font
color="#4594cc">here</font></a>.</li></ol><p>&nbsp;</p><ul><li><b>Text</b> &#8211; Change it to the title of the keygen you want.</li><li><b>Icon</b> &#8211; Changing the icon can make it looks more professional. If you don&#039;t want to show an icon, turn <b>ShowIcon</b> to <b>False</b></li><li><b>FormBorderStyle</b> &#8211; You can leave it there, or change to a style you like. Usually i change it to <b>FixedSingle</b>, because people won&#039;t be able to resize the program.</li></ul><p>&nbsp;</p><ul><li><b>Button</b> &#8211; To generate the key after you clicked it</li><li><b>Textbox</b> &#8211; To show the key after you clicked the button</li><li><b>Title</b> &#8211; Some texts can be the on the top of the keygen, but adding a picture as a title will make it looks professional</li><li><b>ComboBox/RadioButton</b> &#8211; If you have multiple type of keys to generate, this is a must have.</li><li><b>Labels</b> &#8211; To tell people what is the function for.</li></ul><p>&nbsp;</p><div
style="margin: 5px 20px 20px"><div
class="smallfont" style="margin-bottom: 2px">Code:</div><p><pre dir="ltr" class="alt2" style="border-bottom: 1px inset; text-align: left; border-left: 1px inset; padding-bottom: 6px; margin: 0px; padding-left: 6px; width: 640px; padding-right: 6px; height: 258px; overflow: auto; border-top: 1px inset; border-right: 1px inset; padding-top: 6px">
TextBox1.Text = Int(Rnd() * 4)
        Select Case TextBox1.Text
            Case 0
                TextBox1.Text = &quot;XXXXX-XXXXX-XXXXX-XXXXX-XXXXX&quot;
            Case 1
                TextBox1.Text = &quot;XXXXX-XXXXX-XXXXX-XXXXX-XXXXX&quot;
            Case 2
                TextBox1.Text = &quot;XXXXX-XXXXX-XXXXX-XXXXX-XXXXX&quot;
            Case 3
                TextBox1.Text = &quot;XXXXX-XXXXX-XXXXX-XXXXX-XXXXX&quot;
            Case 4
                TextBox1.Text = &quot;XXXXX-XXXXX-XXXXX-XXXXX-XXXXX&quot;
            Case 5
                TextBox1.Text = &quot;XXXXX-XXXXX-XXXXX-XXXXX-XXXXX&quot;
        End Select
</pre></p></div><p>Replace the <b>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</b> with some random numbers and alphabets.<br
/> <a
onclick="pageTracker._trackPageview ('/outgoing/http_img213_imageshack_us_img213_1672_92874144_png');" href="http://img213.imageshack.us/img213/1672/92874144.png" rel="nofollow" target="_blank"><font
color="#4594cc">http://img213.imageshack.us/img213/1672/92874144.png</font></a></p><div
style="margin: 5px 20px 20px"><div
class="smallfont" style="margin-bottom: 2px">Code:</div><p><pre dir="ltr" class="alt2" style="border-bottom: 1px inset; text-align: left; border-left: 1px inset; padding-bottom: 6px; margin: 0px; padding-left: 6px; width: 640px; padding-right: 6px; height: 34px; overflow: auto; border-top: 1px inset; border-right: 1px inset; padding-top: 6px">
http://www.megaupload.com/?d=RO30OWNP
</pre></p></div><p><img
border="0" alt="" src="http://img69.imageshack.us/img69/3346/69824543.png" /></p><p><font
color="#9400d3">Project download:<br
/> </font></p><div
style="margin: 5px 20px 20px"><div
class="smallfont" style="margin-bottom: 2px">Code:</div><p><pre dir="ltr" class="alt2" style="border-bottom: 1px inset; text-align: left; border-left: 1px inset; padding-bottom: 6px; margin: 0px; padding-left: 6px; width: 640px; padding-right: 6px; height: 34px; overflow: auto; border-top: 1px inset; border-right: 1px inset; padding-top: 6px">
http://www.megaupload.com/?d=BO6ZVY2U
</pre></p></div><p><a
href="http://idealprogrammer.com/net-languages/code-samples/vb-net-code/keygen-vbnet/">How to make a keygen using vb.net</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/net-languages/programming-languages-news/' rel='bookmark' title='Permanent Link: Programming Languages News'>Programming Languages News</a> <small> Forty Years of LOGO &#8211; Slashdot 16 Oct 2007...</small></li><li><a
href='http://idealprogrammer.com/net-languages/programming-languages-news/' rel='bookmark' title='Permanent Link: Programming Languages News'>Programming Languages News</a> <small> Forty Years of LOGO &#8211; Slashdot 16 Oct 2007...</small></li><li><a
href='http://idealprogrammer.com/development_tools/idealprogrammer-html-css-tutorials/photoshop-programming/2698/' rel='bookmark' title='Permanent Link: Photoshop &#8211; create cs3 icons'>Photoshop &#8211; create cs3 icons</a> <small>Step 1 When I want to create an effect that...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/net-languages/code-samples/vb-net-code/keygen-vbnet/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>aero effects in .net applications</title><link>http://idealprogrammer.com/net-languages/aero-effects-net-applications/</link> <comments>http://idealprogrammer.com/net-languages/aero-effects-net-applications/#comments</comments> <pubDate>Tue, 02 Nov 2010 17:21:09 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[. NET Languages]]></category> <category><![CDATA[VB.NET Code]]></category> <category><![CDATA[Visual Basic & VB.NET]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=2809</guid> <description><![CDATA[<p>With the launch of Windows Vista, Microsoft introduces brand new UI, eye-catching aero effects (glass effects) for their new Operating System. I have seen a lot of programmers who are much concerned about the looks of their applications. So this time with the launch of Windows 7, Microsoft provides the Windows 7 API Code Pack. The Windows 7 API Code Pack not only just allows incorporating the aero glass effect, but many other features which will let you to work more conveniently with Windows 7. I will cover more of the features of Windows 7 API in my later posts. So, I am starting with a first tutorial on how to enable aero effects for the applications running on Windows 7. Create a new windows form application in Visual Studio. Design the form as normally you do as per your requirements. Now to give your form aero glass effect, we first need to add reference for the Windows API. Windows API provides a class called “GlassForm” which we are going to use in this example. When you add a new form to your project you see the following line in your code window:</p><p><a
href="http://idealprogrammer.com/net-languages/aero-effects-net-applications/" class="more-link">Read more on aero effects in .net applications&#8230;</a></p><p><a
href="http://idealprogrammer.com/net-languages/aero-effects-net-applications/">aero effects in .net applications</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/videos/architecting-desktop-applications-with-20/' rel='bookmark' title='Permanent Link: Architecting Desktop Applications with 2.0 &#8211; 15 Free Video Tutorials'>Architecting Desktop Applications with 2.0 &#8211; 15 Free Video Tutorials</a> <small>"Architecting Modern Desktop Applications in.NET" is a 15-part 25+ hour...</small></li><li><a
href='http://idealprogrammer.com/videos/soup-to-nuts-building-windows-forms-applications-with-net/' rel='bookmark' title='Permanent Link: Windows Forms Applications: C# Grid, VB NET Grid, C# Component, NET Webbrowser'>Windows Forms Applications: C# Grid, VB NET Grid, C# Component, NET Webbrowser</a> <small>Six free one-hour video tutorials on building windows forms applications...</small></li><li><a
href='http://idealprogrammer.com/videos/windows-7-21-video-tutorials-developers/' rel='bookmark' title='Permanent Link: Windows 7 (21 Video Tutorials for Developers)'>Windows 7 (21 Video Tutorials for Developers)</a> <small>Here is a collection of 21 free video tutorials on...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p><p><a
href="http://idealprogrammer.com/net-languages/aero-effects-net-applications/">aero effects in .net applications</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>Related posts:<ol><li><a
href='http://idealprogrammer.com/videos/architecting-desktop-applications-with-20/' rel='bookmark' title='Permanent Link: Architecting Desktop Applications with 2.0 &#8211; 15 Free Video Tutorials'>Architecting Desktop Applications with 2.0 &#8211; 15 Free Video Tutorials</a> <small>"Architecting Modern Desktop Applications in.NET" is a 15-part 25+ hour...</small></li><li><a
href='http://idealprogrammer.com/videos/soup-to-nuts-building-windows-forms-applications-with-net/' rel='bookmark' title='Permanent Link: Windows Forms Applications: C# Grid, VB NET Grid, C# Component, NET Webbrowser'>Windows Forms Applications: C# Grid, VB NET Grid, C# Component, NET Webbrowser</a> <small>Six free one-hour video tutorials on building windows forms applications...</small></li><li><a
href='http://idealprogrammer.com/videos/windows-7-21-video-tutorials-developers/' rel='bookmark' title='Permanent Link: Windows 7 (21 Video Tutorials for Developers)'>Windows 7 (21 Video Tutorials for Developers)</a> <small>Here is a collection of 21 free video tutorials on...</small></li></ol>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<p>With the launch of Windows Vista, Microsoft introduces brand new UI, eye-catching aero effects (glass effects) for their new Operating System. I have seen a lot of programmers who are much concerned about the looks of their applications. So this time with the launch of Windows 7, Microsoft provides the Windows 7 API Code Pack. The Windows 7 API Code Pack not only just allows incorporating the aero glass effect, but many other features which will let you to work more conveniently with Windows 7. I will cover more of the features of Windows 7 API in my later posts. So, I am starting with a first tutorial on how to enable aero effects for the applications running on Windows 7. Create a new windows form application in Visual Studio. Design the form as normally you do as per your requirements. Now to give your form aero glass effect, we first need to add reference for the Windows API. Windows API provides a class called “GlassForm” which we are going to use in this example. When you add a new form to your project you see the following line in your code window:</p><p>?1 public partial class AeroForm : Form<br
/> When you execute the code you will see a normal windows form which is obviously not we wanted. Here the “GlassForm” class comes into play. As we know we have all are forms are partial class, we have to inherit it with Form class which in turn completes our form. Now instead of using Form class use the “GlassForm” and you will see the Aero Glass Effects on your form.</p><p><img
src="http://www.midnightprogrammer.net/image.axd?picture=2010%2f2%2fNormalForm.png" alt="1" /></p><p>And your Aero form look like this:</p><p><img
src="http://www.midnightprogrammer.net/image.axd?picture=2010%2f2%2fAeroForm.png" alt="2" /></p><p><a
href="http://www.midnightprogrammer.net/file.axd?file=2010%2f2%2fWindowsAero.zip">Download: WindowsAero.zip (790.00 kb)</a></p><p>Thanks to midnightprogrammer</p><p><a
href="http://idealprogrammer.com/net-languages/aero-effects-net-applications/">aero effects in .net applications</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/videos/architecting-desktop-applications-with-20/' rel='bookmark' title='Permanent Link: Architecting Desktop Applications with 2.0 &#8211; 15 Free Video Tutorials'>Architecting Desktop Applications with 2.0 &#8211; 15 Free Video Tutorials</a> <small>"Architecting Modern Desktop Applications in.NET" is a 15-part 25+ hour...</small></li><li><a
href='http://idealprogrammer.com/videos/soup-to-nuts-building-windows-forms-applications-with-net/' rel='bookmark' title='Permanent Link: Windows Forms Applications: C# Grid, VB NET Grid, C# Component, NET Webbrowser'>Windows Forms Applications: C# Grid, VB NET Grid, C# Component, NET Webbrowser</a> <small>Six free one-hour video tutorials on building windows forms applications...</small></li><li><a
href='http://idealprogrammer.com/videos/windows-7-21-video-tutorials-developers/' rel='bookmark' title='Permanent Link: Windows 7 (21 Video Tutorials for Developers)'>Windows 7 (21 Video Tutorials for Developers)</a> <small>Here is a collection of 21 free video tutorials on...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/net-languages/aero-effects-net-applications/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Build a bluetooth Chat Application</title><link>http://idealprogrammer.com/net-languages/visual-basic-vbnet/build-bluetooth-chat-application/</link> <comments>http://idealprogrammer.com/net-languages/visual-basic-vbnet/build-bluetooth-chat-application/#comments</comments> <pubDate>Fri, 29 Oct 2010 10:27:03 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[VB.NET Code]]></category> <category><![CDATA[Visual Basic & VB.NET]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=2712</guid> <description><![CDATA[<p><img
src="http://www.devx.com/assets/articlefigs/5257.png" alt="1" /></p><p>Bluetooth is one of today&#039;s most exciting technologies. It is a short-range radio wave wireless technology operating in the 2.4 GHz frequency spectrum. With an operating range of 30 feet (10 meters) and a maximum transmission rate of a mere 1Mbps, Bluetooth is widely touted as the &#034;cable replacement&#034; solution.<br
/> Bluetooth has been around for awhile but there seem to be few developers who have experience in building applications that will run over Bluetooth. In this article, I will show how you can build a Bluetooth chat application using the .NET Compact Framework. Once you&#039;ve built a chat application using this simple example, you should have a good foundation for building any number of killer Bluetooth applications.</p><p><a
href="http://idealprogrammer.com/net-languages/visual-basic-vbnet/build-bluetooth-chat-application/" class="more-link">Read more on Build a bluetooth Chat Application&#8230;</a></p><p><a
href="http://idealprogrammer.com/net-languages/visual-basic-vbnet/build-bluetooth-chat-application/">Build a bluetooth Chat Application</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/videos/using-microsoft-web-developer-to-build-web-application-projects-16-free-video-tutorials/' rel='bookmark' title='Permanent Link: Using Microsoft Web Developer to Build Web Application Projects &#8211; (16 Free Video Tutorials)'>Using Microsoft Web Developer to Build Web Application Projects &#8211; (16 Free Video Tutorials)</a> <small>Here is a table with links to 16 free video...</small></li><li><a
href='http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-screen-capture/' rel='bookmark' title='Permanent Link: vb.net screen capture'>vb.net screen capture</a> <small>Do you want to make a vb.net app that can...</small></li><li><a
href='http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-webcam-integration/' rel='bookmark' title='Permanent Link: vb.net webcam integration'>vb.net webcam integration</a> <small> One of the nice things about these older Logitech...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p><p><a
href="http://idealprogrammer.com/net-languages/visual-basic-vbnet/build-bluetooth-chat-application/">Build a bluetooth Chat Application</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>Related posts:<ol><li><a
href='http://idealprogrammer.com/videos/using-microsoft-web-developer-to-build-web-application-projects-16-free-video-tutorials/' rel='bookmark' title='Permanent Link: Using Microsoft Web Developer to Build Web Application Projects &#8211; (16 Free Video Tutorials)'>Using Microsoft Web Developer to Build Web Application Projects &#8211; (16 Free Video Tutorials)</a> <small>Here is a table with links to 16 free video...</small></li><li><a
href='http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-screen-capture/' rel='bookmark' title='Permanent Link: vb.net screen capture'>vb.net screen capture</a> <small>Do you want to make a vb.net app that can...</small></li><li><a
href='http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-webcam-integration/' rel='bookmark' title='Permanent Link: vb.net webcam integration'>vb.net webcam integration</a> <small> One of the nice things about these older Logitech...</small></li></ol>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<p><img
src="http://www.devx.com/assets/articlefigs/5257.png" alt="1" /></p><p>Bluetooth is one of today&#039;s most exciting technologies. It is a short-range radio wave wireless technology operating in the 2.4 GHz frequency spectrum. With an operating range of 30 feet (10 meters) and a maximum transmission rate of a mere 1Mbps, Bluetooth is widely touted as the &#034;cable replacement&#034; solution.<br
/> Bluetooth has been around for awhile but there seem to be few developers who have experience in building applications that will run over Bluetooth. In this article, I will show how you can build a Bluetooth chat application using the .NET Compact Framework. Once you&#039;ve built a chat application using this simple example, you should have a good foundation for building any number of killer Bluetooth applications.</p><p>The chat application enables two users with Bluetooth-enabled Pocket PCs to communicate with each other so long as they are within the 30-foot range of Bluetooth. It is useful as a communication tool during meetings, where private conversations can take place without affecting the meeting or as a mobile substitute for instant messenger.</p><p>What You Need<br
/> •Visual Studio .NET 2003 Final Beta (available now to MSDN subscribers)<br
/> •Two Pocket PCs with Bluetooth capabilities. (Most new Pocket PCs today ship with Bluetooth capability. For Pocket PCs without built-in Bluetooth, you can purchase Bluetooth expansion jackets/cards from the respective vendors.)<br
/> •Microsoft ActiveSync 3.6</p><p>Figure 1: Two Pocket PCs. To build and test the chat application I used two Pocket PC devices from Compaq: an iPaq 3870 (with Bluetooth built-in) and an iPaq 3630 (with the Bluetooth Expansion Pack for the iPaq 3630).</p><p>The Pocket PCs I used in preparing this article are shown in Figure 1.</p><p>Building the User Interface><br
/> To create the sample application, start Visual Studio .NET 2003 and create a new Smart Device Application Project.</p><p>Figure 2: Build Form1 for the Main UI. Form1 is populated with three controls—a TextBox, a Button, and a MainMenu.</p><p>Let&#039;s first populate the default Form1 with the following controls:</p><p>•TextBox (for entering the text of a chat message)<br
/> •Button (for sending the text)<br
/> •MainMenu<br
/> The populated Form1 is shown in Figure 2.</p><p>Communicating using Bluetooth<br
/> Windows CE 3.0—the operating system for Pocket PC devices—does not come with any API for Bluetooth communication. As such, you have to use other methods, such as platform invoke, to communicate using Bluetooth. The lack of an API for Bluetooth means that you are not able to program Bluetooth communications in the same way you use sockets for TCP/IP communications. Instead, Bluetooth is just another serial port. And so, Bluetooth communication is actually done via serial connections. You can see for yourself by going to Bluetooth Manager—>Tools—>Settings for All Devices—>Serial Port in your Pocket PC&#039;s main menu (see Figure 3).</p><p>Figure 3: Serial Connections. The Bluetooth connection is just another pair of serial ports, in this case ports 7 and 8.</p><p>The Bluetooth connection is actually mapped to two COM ports—one for incoming and one for outgoing traffic. On my test device the incoming port is COM7 and the outgoing port is COM8 (see Figure 3). We will program the Bluetooth application using serial communication techniques.<br
/> Unfortunately, the .NET Compact Framework class library does not contain managed classes for serial communication. You have to rely on the operating system calls to provide that. In particular, we need to make use of functions provided by Windows CE 3.0&#039;s &#034;coredll.dll&#034; library.</p><p>In the .NET CF, use the <dllimport
()> attribute to import the library that you want to use. In our case, I have imported four functions from the coredll.dll library. They are:</p><p>•CreateFile()—Opens a connection to a COM port.<br
/> •ReadFile()—Reads data from a COM port.<br
/> •WriteFile()—Writes data to a COM port.<br
/> •CloseHandle()—Closes a COM port.</p><p>Now that you have the functions that you&#039;ll need, you can begin building the applications. Start by declaring some global variables:</p><p> Dim infileHandler As Long<br
/> Dim outfileHandler As Long<br
/> Dim numReadWrite As Integer<br
/> Dim t1 As System.Threading.Thread<br
/> Dim stopThread As Boolean = False<br
/> We need to create a Connect menu item that, when tapped, will call the connect() method to open the serial connections. We need to open the connections to the inbound and outbound port so that data can be both received and sent. The code below handles the Connect menu selection:</p><p> Private Sub MenuItem2_Click(ByVal sender As System.Object, _<br
/> ByVal e As System.EventArgs) _<br
/> Handles MenuItem2.Click<br
/> connect()<br
/> MenuItem2.Enabled = False &#039;&#8212;disable the Connect item<br
/> MenuItem3.Enabled = True &#039;&#8212;enable the Disconnect item<br
/> End Sub<br
/> The method we are using for reading incoming messages, ReadFile() is a blocking one. Therefore, we need to invoke a thread to continuously poll for incoming data while allowing our application to be responsive to users&#039; input at the same time.</p><p> Public Sub connect()<br
/> &#039;&#8212;port number for Bluetooth connection<br
/> Dim inPort As Short = 7<br
/> Dim outPort As Short = 8</p><p> &#039;&#8212;Opens the port for Bluetooth<br
/> infileHandler = CreateFile(&#034;COM&#034; &#038; inPort &#038; &#034;:&#034;, _<br
/> &#038;HC0000000, 0, 0, 3, 0, 0)<br
/> Application.DoEvents()<br
/> outfileHandler = CreateFile(&#034;COM&#034; &#038; outPort &#038; &#034;:&#034;, _<br
/> &#038;HC0000000, 0, 0, 3, 0, 0)<br
/> Application.DoEvents()</p><p> &#039;&#8212;invoke the thread to receive incoming messages<br
/> stopThread = False<br
/> t1 = New Threading.Thread(AddressOf receiveLoop)<br
/> t1.Start()<br
/> End Sub<br
/> The send() method writes a message to the COM port using the WriteFile() method. After a message is sent, a copy of the message is added to the TextBox control:</p><p> Public Function send(ByVal message As String) As Integer<br
/> &#039;&#8212;send the message through the serial port<br
/> Dim value As String = message &#038; vbCrLf<br
/> Dim retCode As Integer = WriteFile(outfileHandler, _<br
/> stringToByteArray(value), _<br
/> value.Length(), _<br
/> numReadWrite, _<br
/> 0)<br
/> txtMessageLog.Text += value<br
/> Return retCode<br
/> End Function<br
/> The receiveLoop() method continuously polls for incoming messages. As Windows controls are not thread-safe, accessing Windows controls within a thread will have unpredictable results. As such, you need to use a delegate method to call the updateMessage() method to update the TextBox control with the received message.</p><p> Public Sub receiveLoop()<br
/> &#039;&#8212;receive the message through the serial port<br
/> Dim inbuff(300) As Byte<br
/> Dim retCode As Integer = ReadFile(infileHandler, _<br
/> inbuff, _<br
/> inbuff.Length, _<br
/> numReadWrite, _<br
/> 0)<br
/> Application.DoEvents()<br
/> While True<br
/> If retCode = 0 Or stopThread Then<br
/> &#039;&#8212;either error or stop is requested<br
/> Exit While<br
/> Else<br
/> Dim updateDelegate As New _<br
/> myDelegate(AddressOf updateMessageLog)</p><p> updateDelegate.Invoke(byteArrayToString(inbuff))<br
/> ReDim inbuff(300)<br
/> retCode = ReadFile(infileHandler, _<br
/> inbuff, _<br
/> inbuff.Length, _<br
/> numReadWrite, _<br
/> 0)<br
/> Application.DoEvents()<br
/> End If<br
/> End While<br
/> End Sub<br
/> The myDelegate() method has the same signature as the updateMessageLog() method. myDelegate() is called when updating the TextBox control. You should not directly call the updateMessageLog() within the thread; only the main thread can directly call it.</p><p> Public Delegate Sub myDelegate(ByVal str As String)<br
/> Public Sub updateMessageLog(ByVal str As String)<br
/> If str.Length > 0 Then<br
/> txtMessageLog.Text += &#034;&#8211;>&#034; &#038; str<br
/> End If<br
/> End Sub<br
/> Clicking the Send button invokes the send() method:</p><p> Private Sub Button1_Click(ByVal sender As System.Object, _<br
/> ByVal e As System.EventArgs) _<br
/> Handles Button1.Click<br
/> If send(txtMessage.Text) = 0 Then<br
/> MsgBox(&#034;Error sending message.&#034;)<br
/> End If<br
/> End Sub<br
/> Finally, clicking on the Disconnect menu item invokes the disconnect() method:</p><p> Private Sub MenuItem3_Click(ByVal sender As System.Object, _<br
/> ByVal e As System.EventArgs) _<br
/> Handles MenuItem3.Click<br
/> disconnect()<br
/> MenuItem2.Enabled = True &#039;&#8212;enable the Connect button<br
/> MenuItem3.Enabled = False &#039;&#8212;disable the Connect button<br
/> End Sub<br
/> The disconnect() method will set a global flag for the thread to stop receiving incoming messages. It will also close the two open ports:</p><p> Public Sub disconnect()<br
/> stopThread = True<br
/> CloseHandle(infileHandler)<br
/> CloseHandle(outfileHandler)<br
/> End Sub<br
/> Byte to String and Back Again<br
/> Throughout this application, we have used two supporting methods: stringToByteArray() and byteArrayToString(). These two methods are necessary as the ReadFile() and WriteFile() methods both take in a byte array containing the message to be read and sent, respectively.</p><p>The stringToByteArray() method converts a string into a byte array:</p><p> Public Function stringToByteArray(ByVal str As String) As Byte()<br
/> &#039;&#8212;e.g. &#034;abcdefg&#034; to {a,b,c,d,e,f,g}<br
/> Dim s As Char()<br
/> s = str.ToCharArray<br
/> Dim b(s.Length &#8211; 1) As Byte<br
/> Dim i As Integer<br
/> For i = 0 To s.Length &#8211; 1<br
/> b(i) = Convert.ToByte(s(i))<br
/> Next<br
/> Return b<br
/> End Function<br
/> The byteArrayToString() method converts a byte array into a string:</p><p> Function byteArrayToString(ByVal b() As Byte) As String<br
/> &#039;&#8212;e.g. {a,b,c,d,e,f,g} to &#034;abcdefg&#034;<br
/> Dim str As String<br
/> Dim enc As System.Text.ASCIIEncoding<br
/> enc = New System.Text.ASCIIEncoding<br
/> str = enc.GetString(b, 0, b.Length())<br
/> Return str<br
/> End Function<br
/> When sending a message, the message to be sent would need to be converted to a byte array, and vice versa, when a message is received as a byte array, it needs to be converted back to a string so that it can be displayed on the device.</p><p>Figure 4: Make a Connection. Use the Bluetooth Manger on the Pocket PC device connected to your development machine to make it recognize another Bluetooth device.</p><p>Testing the Application<br
/> To test the application, you need to install the sample application on both Pocket PCs. The easiest way to do this is to connect one of the Pocket PCs to your development machine and use Visual Studio .NET 2003 to deploy the application on the device. Then press F5 to automatically copy the application onto the device.<br
/> The next step is to copy the application onto the other Pocket PC. There are two steps involved here. First, you need to generate a CAB file for the application so that it can be copied and installed on the target Pocket PC. Second, you need to install the .NET Compact Framework on it (this only needs to be done once).</p><p>Figure 5: Generate a CAB. This button generates a CAB file for your application.</p><p>But before you can do either task, you need to establish a Bluetooth connection between the two Pocket PCs using the Bluetooth Manager to create a bond between them (see Figure 4.<br
/> Now that the two devices recognize each other, you can go about sending the CAB file and the framework to the remote device. To generate a CAB file for your application, click on the &#034;Build Cab File&#034; button in Visual Studio .NET 2003 (see Figure 5):</p><p>Figure 6: Pick a CAB. Visual Studio.NET will automatically generate CAB files for all platforms supported by the Compact Framework.</p><p>When the CAB file is generated, you can locate it in the &#034;Cab\Debug&#034; folder of your application. Visual Studio .NET 2003 will generate the CAB files for the various platforms that are supported by the .NET Compact Framework (see Figure 6. Make sure to identify the right one for your platform.<br
/> To copy the CAB file to your Pocket PC, connect your Pocket PC to your machine and use Microsoft ActiveSync&#039;s Explore option. Drag and drop the CAB file onto the desired directory (see Figure 7).</p><p>Figure 7: Use ActiveSynch. Copy the CAB file to your device using ActiveSync.</p><p>Once the CAB file is copied to the device, you can use Bluetooth to send the CAB file to the other Pocket PC, as shown in Figure 8.<br
/> The next step is to copy the .NET Compact Framework to the Pocket PC. You can find the CAB file for the .NET Compact Framework in the following directory on your development machine (with Visual Studio .NET 2003 installed):<br
/> C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\wce300</p><p>Figure 8: Send the CAB Across. Use the Bluetooth Manager again to transfer the CAB file from one device to the other.</p><p>Choose the appropriate platform for your Pocket PC (see Figure 9). For example, my second Pocket PC is an iPaq 3630, so I chose the &#034;arm&#034; platform as it runs on an ARM processor. (To find out the type of processor your Pocket PC is running on, go to Start—>Settings and tap on the System tab, and click on the About icon. Under the &#034;Processor&#034; category, you should see the processor type. Both my Pocket PCs runs on the ARM SA1110 processor.)<br
/> Copy the &#034;netcf.core.ppc3.arm&#034; file (or the appropriate one for your device) to the Pocket PC via ActiveSync. Again, use Bluetooth to send the file from one device to the other.</p><p>Figure 10: Install on the Second Device. Install the .NET CF and the sample application.</p><p>On the other Pocket PC, you can now install the .NET Compact Framework and the application by tapping on the two CAB files (see Figure 10). The order of installation is important—install the .NET CF first.<br
/> Once the application is installed, you should find a BluetoothChat application icon in the Programs folder (see Figure 11).</p><p>Figure 11: Launch the App. Locate the icon for the chat application in the Programs folder.</p><p>Before you load the application, make sure that you have a Bluetooth bond between the two Pocket PCs. Tap on the Settings—>Connect menu item to establish a serial connection. The other Pocket PC will receive an authorization request for the use of the serial port. Click on Accept to start chatting!</p><p>Figure 12: Chat Away. The two screens show the dialog between the two Pocket PCs using the sample chat application in this article.</p><p>In this article, you have seen how to you can program Bluetooth applications using serial communication programming. The initial release of the .NET Compact Framework is not expected to contain classes for Bluetooth communications. However, expect to see Bluetooth managed classes and APIs appearing in Windows CE .NET and the next release of the .NET Compact Framework.</dllimport><p><a
href="http://idealprogrammer.com/net-languages/visual-basic-vbnet/build-bluetooth-chat-application/">Build a bluetooth Chat Application</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/videos/using-microsoft-web-developer-to-build-web-application-projects-16-free-video-tutorials/' rel='bookmark' title='Permanent Link: Using Microsoft Web Developer to Build Web Application Projects &#8211; (16 Free Video Tutorials)'>Using Microsoft Web Developer to Build Web Application Projects &#8211; (16 Free Video Tutorials)</a> <small>Here is a table with links to 16 free video...</small></li><li><a
href='http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-screen-capture/' rel='bookmark' title='Permanent Link: vb.net screen capture'>vb.net screen capture</a> <small>Do you want to make a vb.net app that can...</small></li><li><a
href='http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-webcam-integration/' rel='bookmark' title='Permanent Link: vb.net webcam integration'>vb.net webcam integration</a> <small> One of the nice things about these older Logitech...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/net-languages/visual-basic-vbnet/build-bluetooth-chat-application/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>vb.net webcam integration</title><link>http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-webcam-integration/</link> <comments>http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-webcam-integration/#comments</comments> <pubDate>Fri, 29 Oct 2010 10:11:57 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[VB.NET Code]]></category> <category><![CDATA[Visual Basic & VB.NET]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=2707</guid> <description><![CDATA[<p><img
src="http://blogs.msdn.com/blogfiles/coding4fun/some_assembly_required/lookatme/lookatme_1.jpg" alt="1" /></p><p>One of the nice things about these older Logitech Webcams is that they don&#039;t require a driver download and they support Windows Image Acquisition (WIA) directly. WIA is an API included in Windows that aims to unify the acquisition of images from all kinds of devices, including scanners and cameras. This is a pretty low-level API and a bit of a hassle to us. However, after Windows XP SP1 the WIA Automation Layer was released with a simpler COM API meant for VB6 and ASP developers. You can download this layer from MSDN and other places as it is free for redistribution. The meat of the layer is the wiaaut.dll that should be copied into the system32 directory and registered via the command &#034;regsvr32 wiaaut.dll.&#034;</p><p><a
href="http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-webcam-integration/" class="more-link">Read more on vb.net webcam integration&#8230;</a></p><p><a
href="http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-webcam-integration/">vb.net webcam integration</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/net-languages/code-samples/compare-date-sql-server-syntax-compare-date-tsql/' rel='bookmark' title='Permanent Link: Compare Date &#8211; SQL Server Syntax Example: Compare Date &#8211; T-SQL Example'>Compare Date &#8211; SQL Server Syntax Example: Compare Date &#8211; T-SQL Example</a> <small>Compare Date - SQL Server Syntax Example: Compare Date -...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p><p><a
href="http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-webcam-integration/">vb.net webcam integration</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>Related posts:<ol><li><a
href='http://idealprogrammer.com/net-languages/code-samples/compare-date-sql-server-syntax-compare-date-tsql/' rel='bookmark' title='Permanent Link: Compare Date &#8211; SQL Server Syntax Example: Compare Date &#8211; T-SQL Example'>Compare Date &#8211; SQL Server Syntax Example: Compare Date &#8211; T-SQL Example</a> <small>Compare Date - SQL Server Syntax Example: Compare Date -...</small></li></ol>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<p><img
src="http://blogs.msdn.com/blogfiles/coding4fun/some_assembly_required/lookatme/lookatme_1.jpg" alt="1" /></p><p>One of the nice things about these older Logitech Webcams is that they don&#039;t require a driver download and they support Windows Image Acquisition (WIA) directly. WIA is an API included in Windows that aims to unify the acquisition of images from all kinds of devices, including scanners and cameras. This is a pretty low-level API and a bit of a hassle to us. However, after Windows XP SP1 the WIA Automation Layer was released with a simpler COM API meant for VB6 and ASP developers. You can download this layer from MSDN and other places as it is free for redistribution. The meat of the layer is the wiaaut.dll that should be copied into the system32 directory and registered via the command &#034;regsvr32 wiaaut.dll.&#034;</p><p>Getting to WIA from .NET<br
/> The wiaaut.dll COM automation library can be added via &#034;Add Reference&#034; from with Visual Studio.NET 2005 and a .NET wrapper will be automatically generated. Only devices whose drivers support WIA will be available via this interface. Most name-brand cameras will work just fine, but some no-name brands won&#039;t appear. If your device appears in the Control Panel&#039;s &#034;Scanners and Cameras&#034; interface, then this technique, and this program, should be able to see it.</p><p>In our code, we can add a namespace qualifying statement like using WIA in C# or imports WIA in VB.NET to name it easier to access these newly imported classes and interfaces. To start, we&#039;ll need to get a hold of a DeviceID. WIA thinks about things in terms of Devices, Commands, and Formats. Devices have types like Camera, Scanner or Video. Commands are things like &#034;Take Picture&#034; and Formats are JPEG or BMP, etc.</p><p>We&#039;ll create an instance of a CommandDialogClass (from the newly imported WIA namespace) and ask it to show us a select dialog so that we might select from any kind of device. You can show only Video devices or only Scanners by changing the WiaDeviceType enumeration that&#039;s passed in. We&#039;ll only show this select dialog when the user clicks &#034;Configure&#034; in our application, or when the application has been started with invalid configuration data.</p><p>Visual Basic</p><p>Dim class1 As CommonDialogClass = New CommonDialogClassDim d As Device = class1.ShowSelectDevice(WiaDeviceType.UnspecifiedDeviceType, true, false)If (Not (d) Is Nothing) Then    settings.DeviceID = d.DeviceID    settings.SaveEnd If</p><p>This select dialog is, fortunately, supplied completely by Windows and returns a Device. Each Device has a DeviceID that we will save into our User-specific settings class. This class was generated automatically by new features in Visual Studio .NET 2005 that make managing settings fantastically easy. I right-clicked on the Project from within the Visual Studio Solution Explorer and selected &#034;Settings.&#034; After I indicated the names and data types of the settings I needed to save, Visual Studio 2005 generated a class that exposed strongly-typed properties such as DeviceID. Settings can also be saved more easily in .NET 2.0. The DeviceID for my Webcam happened to be &#034;{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0003&#034; and is stored in my user&#039;s Documents And Settings\Local Settings\Application Data\BlogWebcam directory.</p><p>Download vb.net code &#8211; http://download.microsoft.com/download/d/4/5/d4556729-81f9-4578-936a-111721b27e49/BlogWebcam-VB.msi</p><p>Download c sharp code &#8211; http://download.microsoft.com/download/d/4/5/d4556729-81f9-4578-936a-111721b27e49/BlogWebcam-CS.msi</p><p>Taking a Picture<br
/> Once we&#039;ve stored away a DeviceID in the configuration file, we&#039;ll want to connect to our device and take a picture. We&#039;ll need to find the device via it&#039;s ID without showing the dialog, connect to it and hold on the Device instance.</p><p>Visual C#</p><p>DeviceManager manager = new DeviceManagerClass();Device d = null;foreach (DeviceInfo info in manager.DeviceInfos){    if (info.DeviceID == settings.DeviceID)    {        d = info.Connect();        break;    }}Visual Basic</p><p>Dim manager As DeviceManager = New DeviceManagerClassDim d As Device = NothingFor Each info As DeviceInfo In manager.DeviceInfos    If (info.DeviceID = settings.DeviceID) Then        d = info.Connect        Exit For    End IfNext Now we&#039;re back where we were before, with a Device instance in the variable d. We&#039;ll be connecting to the device each time our timer is started. Each device has a series of commands available to it, and these commands are well-known and identified by GUIDS both in the Registry and in the MSDN Help. We&#039;re interested in &#034;Take Picture&#034; which has the GUID string value &#034;AF933CAC-ACAD-11D2-A093-00C04F72DC3C”, but the COM interface also exposes this value in the constant CommandID.wiaCommandTakePicture. When we get a hold of our Device we can spin through its available Commands until we find this one to determine if the device supports it, or we can just call it directly via Device.ExecuteCommand.</p><p>Visual C#</p><p>Item item = device.ExecuteCommand(CommandID.wiaCommandTakePicture);Visual Basic</p><p>Dim item As Item = device.ExecuteCommand(CommandID.wiaCommandTakePicture)Once we&#039;ve called ExecuteCommand on our device an &#034;Item&#034; is returned. This isn&#039;t just any ordinary item, it&#039;s a WIA Item. Each WIA may include any number of image Formats. These formats are also well-known and appear in the registry. I look them up in the startup of the app just in case they change, rather than hard-coding them.</p><p>We spin through the available formats looking for JPEG. I could likely have hard-coded the JPEG GUID and avoided this quick spin, but I also wanted to illustrate how you can find your way around the WIA object model. Once we&#039;ve found JPEG, we call item.Transfer and an ImageFile is returned that we can save to disk.</p><p>Visual C#</p><p>Item item = device.ExecuteCommand(CommandID.wiaCommandTakePicture);foreach (string format in item.Formats){    if (format == jpegGuid)    {        WIA.ImageFile imagefile = item.Transfer(format) as WIA.ImageFile;        filename = GetFreeFileName();        if (string.IsNullOrEmpty(filename) == false)        {            imagefile.SaveFile(filename);        }        this.picLastImage.Load(filename);        return filename;    }}Visual Basic</p><p>Item item = device.ExecuteDim item As Item = device.ExecuteCommand(CommandID.wiaCommandTakePicture)For Each format As String In item.Formats    If (format = jpegGuid) Then        Dim imagefile As WIA.ImageFile = CType(item.Transfer(format),WIA.ImageFile)        filename = GetFreeFileName        If (String.IsNullOrEmpty(filename) = false) Then            imagefile.SaveFile(filename)        End If        Me.picLastImage.Load(filename)        Return filename    End IfNext Incidentally, I also load the saved image into a PictureBox on my WinForm and return it from this TakePicture() method.</p><p>Uploading the Picture to my WebLog<br
/> Now that I&#039;ve taken a picture, what am I going to do to it? Well, why not upload it to a specific filename on my blog so folks can see me and my workspace; what could be more thrilling? In the past, FTP&#039;ing a file would require a third-party library, but .NET 2.0 has extended the System.Net.WebRequest class with support for FTP.</p><p>Here we&#039;ll create an FtpWebRequest by passing an ftp:// URL to the WebRequest.Create method. For convenience I&#039;ll include the username and password in the URL like this: ftp://username:password@ftp.myurl.com/blog/webcam.jpg. Note that the URL includes the username, password, domain name and destination filename all in one string. We&#039;ll load our local file into a byte array and write it out (upload it) to the FtpWebRequest&#039;s underlying stream by retrieving it with GetRequestStream() and then Write().</p><p>Visual C#</p><p>FtpWebRequest request = (FtpWebRequest)WebRequest.Create(settings.FTPServerURL);request.Method = WebRequestMethods.Ftp.UploadFile;request.UseBinary = true;FileInfo fileInfo = new FileInfo(filename);byte[] fileContents = new byte[fileInfo.Length];using (FileStream fr = fileInfo.OpenRead()){    fr.Read(fileContents, 0, Convert.ToInt32(fileInfo.Length));}using (Stream writer = request.GetRequestStream()){    writer.Write(fileContents, 0, fileContents.Length);}using (FtpWebResponse response = (FtpWebResponse)request.GetResponse()){}    Visual Basic</p><p>Dim request As FtpWebRequest = Nothingrequest = CType(WebRequest.Create(settings.FTPServerURL),FtpWebRequest)request.Method = WebRequestMethods.Ftp.UploadFilerequest.UseBinary = trueDim fileInfo As FileInfo = New FileInfo(filename)Dim fileContents() As Byte = New Byte((fileInfo.Length) &#8211; 1) {}Using fr As FileStream = fileInfo.OpenRead    fr.Read(fileContents, 0, Convert.ToInt32(fileInfo.Length))End Using Using writer As Stream = request.GetRequestStream    writer.Write(fileContents, 0, fileContents.Length)End Using Dim response As FtpWebResponse = CType(request.GetResponse,FtpWebResponse) You may notice the use of the &#034;using&#034; statements in the code snippet above. Using &#034;using&#034; with classes that implement IDisposable will automatically cause Dispose() to be called when then using block exits. Some folks don&#039;t like the syntax and others believe that using it even if the underlying Dispose() doesn&#039;t do anything is syntactic sugar. Personally, I really like the syntax, and in this sample the using statement is closing the FileStream, the Request stream, and the FtpWebResponse.</p><p>Read Original Article : http://blogs.msdn.com/b/coding4fun/archive/2006/10/31/912546.aspx</p><p>For suggestions and comments please use idealprogrammer forums .</p><p><a
href="http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-webcam-integration/">vb.net webcam integration</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/net-languages/code-samples/compare-date-sql-server-syntax-compare-date-tsql/' rel='bookmark' title='Permanent Link: Compare Date &#8211; SQL Server Syntax Example: Compare Date &#8211; T-SQL Example'>Compare Date &#8211; SQL Server Syntax Example: Compare Date &#8211; T-SQL Example</a> <small>Compare Date - SQL Server Syntax Example: Compare Date -...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-webcam-integration/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>vb.net screen capture</title><link>http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-screen-capture/</link> <comments>http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-screen-capture/#comments</comments> <pubDate>Fri, 29 Oct 2010 09:19:18 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[VB.NET Code]]></category> <category><![CDATA[Visual Basic & VB.NET]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=2621</guid> <description><![CDATA[<p>Do you want to make a vb.net app that can capture screenshots ? Well you can do that easily with vb.net</p><p>If you have any suggestions or comments on this tutorial please visit idealprogrammer forums !</p><p><a
href="http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-screen-capture/" class="more-link">Read more on vb.net screen capture&#8230;</a></p><p><a
href="http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-screen-capture/">vb.net screen capture</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>No related posts.</p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p><p><a
href="http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-screen-capture/">vb.net screen capture</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>No related posts.Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<p>Do you want to make a vb.net app that can capture screenshots ? Well you can do that easily with vb.net</p><p>If you have any suggestions or comments on this tutorial please visit idealprogrammer forums !</p><p>This is the code you will need to capture screenshots using vb.net. It uses gdi classes and some more classes.</p><p>Thanks to mike gold of vbdotnetheaven</p><p>Private Sub PerformCapture()<br
/> &#039; turn the form invisible so you don&#039;t show it during capture<br
/> Me.Visible = False<br
/> &#039;use the GDI call and create a DC to the whole display<br
/> Dim dc1 As IntPtr = CreateDC(&#034;DISPLAY&#034;, Nothing, Nothing, CType(Nothing, IntPtr))<br
/> &#039;create a Graphics object for the screen dc<br
/> Dim g1 As Graphics = Graphics.FromHdc(dc1)<br
/> &#039; create a compatible bitmap the size of the entire screen<br
/> MyImage = New Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, g1)<br
/> &#039; use the bitmap to create another Graphics surface so we can BitBlast into the bitmap<br
/> Dim g2 As Graphics = Graphics.FromImage(MyImage)<br
/> &#039; Now go retrace our steps and get the device contexts for both the bitmap and the screen<br
/> &#039; Note: Apparently you have to do this, and can&#039;t go directly from the aquired dc or exceptions are thrown<br
/> &#039; When you try to release the dcs<br
/> dc1 = g1.GetHdc()<br
/> Dim dc2 As IntPtr = g2.GetHdc()<br
/> &#039; Bit Blast the screen into the Bitmap<br
/> BitBlt(dc2, 0, 0, Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, dc1, 0, 0, 13369376)<br
/> &#039; Remember to release the dc&#039;s, otherwise problems down the road<br
/> g1.ReleaseHdc(dc1)<br
/> g2.ReleaseHdc(dc2)<br
/> &#039; Save the image to JPEG file<br
/> MyImage.Save(&#034;c:\Captured.jpg&#034;, ImageFormat.Jpeg)<br
/> &#039; Now we can view our form again, so make it visible<br
/> Visible = True<br
/> MessageBox.Show(&#034;Finished Saving Image&#034;)<br
/> &#039; Set the Bounds of the form so that it fills the entire screen<br
/> &#039; Because in our Paint event handler we are going to draw the bitmap to the form<br
/> Me.SetBounds(0, 0, Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height)<br
/> &#039; ************** Set up functions for doing additional bitmap manipulation such as cropping a portion of<br
/> &#039; ************* the image ****************(Not required for screen capture)SetupCropping()<br
/> firstCrop = True<br
/> End Sub</p><p>This application has  a few additional functions.  One is that you can crop a piece of the image in your screen capture as shown in figure 2:</p><p>Figure 2 &#8211; Cropping a Piece of the image</p><p>This is useful for pulling things out of the screen capture that you find necessary  in your final image.  Outlining the cropping region  is performed using the MouseDown, MouseUp, and MouseMove event handlers.  You need to maintain the state in which the cropping is in in order to successfully draw the cropping region.  Below is the state diagram for tracking the drawing of the crop rectangle.</p><p>Figure 3 &#8211; UML State Chart of Cropping Drawn with WithClass 2000</p><p>Below is the code for the MouseMove event handler. As shown in the state diagram, it checks the state and condition to see if we should be doing the calculation on the cropping rectangle and if we should invalidate the rectangle.</p><p>Private Sub Form1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs)<br
/> &#039; Check the state and condition to makes sure we can draw the cropping rectangle<br
/> If (CroppingPaint AndAlso CropOn) AndAlso StartedCrop Then<br
/> &#039; calculate width of cropping rectangle<br
/> DeltaX = e.X &#8211; StartPoint.X<br
/> If DeltaX < 0 Then<br
/> DeltaX = 0<br
/> End If<br
/> DeltaY = e.Y - StartPoint.Y<br
/> If DeltaY < 0 Then<br
/> DeltaY = 0<br
/> End If<br
/> ' force the cropping rectangle to redraw<br
/> Invalidate(New Rectangle(StartPoint.X, StartPoint.Y, DeltaX + 20, DeltaY + 20))<br
/> End If<br
/> End Sub</p><p>Improvements</p><p>The cropping invalidation is a little messy, it needs to add rubber-banding functionality to the line drawing of the rectangle.  Also I had to offset the image to get the cropping to work out the first time through the capture.  Not sure if its something I'm missing or a problem, but its in there like a band-aid. <g> Some nice improvements might include an undo, to undo cropping, the ability to put the image into a specified file rather than in c:\\capture.jpg.  (Currently this is where the image is placed when its captured or saved). Additional features would be to save the image in different image formats, include a preference dialog for suffixes and prefixes to the captured image name, add a feature to enter text into the captured image.  As with other projects in .NET the sky is the limit, but its a snap to add many of these additional functions using this environment. Stay</p><p><a
href="http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-screen-capture/">vb.net screen capture</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>No related posts.</p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/net-languages/visual-basic-vbnet/vbnet-screen-capture/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>VB.NET Binary File Read Sequential &#8211; Source Code Example</title><link>http://idealprogrammer.com/net-languages/code-samples/vb-net-code/vbnet-binary-file-read-sequential-source-code/</link> <comments>http://idealprogrammer.com/net-languages/code-samples/vb-net-code/vbnet-binary-file-read-sequential-source-code/#comments</comments> <pubDate>Mon, 05 Jul 2010 19:48:57 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[VB.NET Code]]></category> <category><![CDATA[Binary File]]></category> <category><![CDATA[example]]></category> <category><![CDATA[Read Sequential]]></category> <category><![CDATA[Source code]]></category> <category><![CDATA[vb.net]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=2504</guid> <description><![CDATA[VB.NET Binary File Read Sequential - Source Code Example<p><a
href="http://idealprogrammer.com/net-languages/code-samples/vb-net-code/vbnet-binary-file-read-sequential-source-code/">VB.NET Binary File Read Sequential &#8211; Source Code Example</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>Related posts:<ol><li><a
href='http://idealprogrammer.com/net-languages/code-samples/vb-net-code/vbnet-binary-file-read-random-source-code-2/' rel='bookmark' title='Permanent Link: VB.NET Binary File Read Random &#8211; Source Code Example'>VB.NET Binary File Read Random &#8211; Source Code Example</a> <small>VB.NET Binary File Read Random - Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/net-languages/code-samples/vbnet-sql-command-update-statement-source-code/' rel='bookmark' title='Permanent Link: VB.NET Sql Command Update Statement Source Code Example'>VB.NET Sql Command Update Statement Source Code Example</a> <small>VB.NET Source Code Example shows how to use Sql Command...</small></li><li><a
href='http://idealprogrammer.com/net-languages/code-samples/vbnet-sql-command-delete-statement-source-code/' rel='bookmark' title='Permanent Link: VB.NET Sql Command Delete Statement Source Code Example'>VB.NET Sql Command Delete Statement Source Code Example</a> <small>Example illustrates using VB.NET Sql Command Delete Statement and checking...</small></li></ol>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<h1>VB.NET Binary File Read Sequential &#8211; Source Code Example</h1><p><strong>Purpose:</strong> &#8211; Illustrates the <a
rel="tag" href="https://www.google.com/#hl=en&amp;sugexp=pfwl&amp;cp=20&amp;gs_id=2c&amp;xhr=t&amp;q=VBNET+Syntax" target="_blank">VB.NET Syntax</a> for <a
rel="tag" href="https://www.google.com/#hl=en&amp;sugexp=pfwl&amp;cp=20&amp;gs_id=2c&amp;xhr=t&amp;q=Sequential+Read+Binary+File" target="_blank">Sequential Read of Binary File</a>.</p><div
style="border:thin dotted black; padding:3mm;background-color:gainsboro;"><center><strong><a
href="http://idealprogrammer.com/code-samples/vb-net-code/vbnet-source-code-samples/">View Other VB.NET Source Code Examples</a></strong></center></div><p><strong>Prerequistes:</strong></p><ol><li>Install <a
href="http://www.msdn.com/express" target="_blank">Visual Basic (Express or Standard Edition)</a></li><li>Install <a
href="http://www.msdn.com/express" target="_blank">SQL Server Express</a></li><li>Download <a
href="http://www.microsoft.com/downloads/details.aspx?familyid=06616212-0356-46a0-8da2-eebc53a68034&#038;displaylang=en" target="_blank">Northwind and pubs Database</a></li><li>Attach Northwind Database to Databases in Sql Express</li><li>Attach pubs Database to Databases in Sql Express</li></ol><p><strong>Notes:</strong></p><ul><li>Console Application is used to simplify things, but Windows Forms or Web Forms could also be used</li><li><font
color="red">You can build a library of syntax examples by using same project over and over and just commenting out what you do not want to execute in Module1.vb</font></li></ul><p><strong>Instructions:</strong></p><ol><li>Use Visual Basic 2008 Express or Standard Edition</li><li>Create new project;<ul><li>Click File/New Project</li><li>Select Console Application Template</li><li>Select Visual Basic for Language</li><li>name of project could be VBNET_Syntax.</li></ul></li><p><img
src="http://idealprogrammer.com/wp-photos/VBSyntaxFileDirectoryBinaryFileReadSequential.PNG" alt="VB Syntax File Directory Binary File Read Sequential" border="1" align="right"/></p><li>Add New folder named &#034;FileDirectory&#034;<ul><li>Right-click project name in solution explorer;</li><li>add new folder;</li><li>name of folder could be: FileDirectory</li></ul></li><li>Add Class Named clsBinaryFileReadSequential to FileDirectory  folder<ul><li>Right-click FileDirectory folder;</li><li>add new item;</li><li>Select class</li><li>Class name could be clsBinaryFileReadSequential</li></ul></li><li>Click on copy code in code below to copy code into clsBinaryFileReadSequential.vb</li><li>Click on copy code in second set of code below to copy code into Module1.vb</li><li>Click green arrow or press F5 to run program</li></ol><p><strong>Step 1: Use Copy Code to Cut-n-paste code into clsBinaryFileReadSequential.vb</strong><br
/><pre class="devcodeblock" title="Visual Basic"><div class="devcodeoverflow">
Imports System.IO
Imports System.Collections
Imports System.Runtime.Serialization.Formatters.<span style="color: #F660AB; font-weight: bold;">Binary</span>
Imports System.Runtime.Serialization
&nbsp;
<span style="color: #E56717; font-weight: bold;">Public</span> Class clsBinaryFileReadSequential
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #E56717; font-weight: bold;">Public</span> Shared <span style="color: #E56717; font-weight: bold;">Sub</span> Main()
        <span style="color: #151B8D; font-weight: bold;">Dim</span> formatter <span style="color: #151B8D; font-weight: bold;">As</span> BinaryFormatter = <span style="color: #E56717; font-weight: bold;">New</span> BinaryFormatter()
        <span style="color: #151B8D; font-weight: bold;">Dim</span> <span style="color: #151B8D; font-weight: bold;">output</span> <span style="color: #151B8D; font-weight: bold;">As</span> FileStream
&nbsp;
        <span style="color: #151B8D; font-weight: bold;">Dim</span> fileName <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span> = <span style="color: #800000;">&quot;books.dat&quot;</span>
&nbsp;
&nbsp;
&nbsp;
        Try
            <span style="color: #151B8D; font-weight: bold;">output</span> = <span style="color: #E56717; font-weight: bold;">New</span> FileStream(fileName, FileMode.OpenOrCreate, FileAccess.Write)
&nbsp;
            <span style="color: #151B8D; font-weight: bold;">Dim</span> Book <span style="color: #151B8D; font-weight: bold;">As</span> Book = <span style="color: #E56717; font-weight: bold;">New</span> Book(1, <span style="color: #800000;">&quot;The Republic&quot;</span>, <span style="color: #800000;">&quot;Plato&quot;</span>)
&nbsp;
            formatter.Serialize(<span style="color: #151B8D; font-weight: bold;">output</span>, Book)
&nbsp;
            Book = <span style="color: #E56717; font-weight: bold;">New</span> Book(2, <span style="color: #800000;">&quot;Romeo &amp; Juliet&quot;</span>, <span style="color: #800000;">&quot;Shakespeare&quot;</span>)
&nbsp;
            formatter.Serialize(<span style="color: #151B8D; font-weight: bold;">output</span>, Book)
&nbsp;
            Book = <span style="color: #E56717; font-weight: bold;">New</span> Book(3, <span style="color: #800000;">&quot;The Symposium&quot;</span>, <span style="color: #800000;">&quot;Plato&quot;</span>)
&nbsp;
            formatter.Serialize(<span style="color: #151B8D; font-weight: bold;">output</span>, Book)
&nbsp;
            <span style="color: #151B8D; font-weight: bold;">output</span>.<span style="color: #8D38C9; font-weight: bold;">Close</span>()
&nbsp;
        Catch fileException <span style="color: #151B8D; font-weight: bold;">As</span> FileNotFoundException
            Console.WriteLine(<span style="color: #800000;">&quot;File Does Not Exits&quot;</span>)
        Catch serializableException <span style="color: #151B8D; font-weight: bold;">As</span> SerializationException
            Console.WriteLine(<span style="color: #800000;">&quot;Error Writing to File&quot;</span>)
        Catch formattingException <span style="color: #151B8D; font-weight: bold;">As</span> FormatException
            Console.WriteLine(<span style="color: #800000;">&quot;Invalid Format&quot;</span>)
        Catch e <span style="color: #151B8D; font-weight: bold;">As</span> IOException
            Console.WriteLine(<span style="color: #800000;">&quot;Cannot close file&quot;</span>)
&nbsp;
        <span style="color: #8D38C9; font-weight: bold;">End</span> Try
&nbsp;
&nbsp;
&nbsp;
        <span style="color: #151B8D; font-weight: bold;">Dim</span> <span style="color: #151B8D; font-weight: bold;">input</span> <span style="color: #151B8D; font-weight: bold;">As</span> FileStream
&nbsp;
        <span style="color: #151B8D; font-weight: bold;">Dim</span> reader <span style="color: #151B8D; font-weight: bold;">As</span> BinaryFormatter = <span style="color: #E56717; font-weight: bold;">New</span> BinaryFormatter()
&nbsp;
        <span style="color: #151B8D; font-weight: bold;">input</span> = <span style="color: #E56717; font-weight: bold;">New</span> FileStream(fileName, FileMode.<span style="color: #151B8D; font-weight: bold;">Open</span>, FileAccess.Read)
        <span style="color: #151B8D; font-weight: bold;">Dim</span> intFileLength <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span> = <span style="color: #151B8D; font-weight: bold;">input</span>.Length
&nbsp;
&nbsp;
&nbsp;
&nbsp;
        <span style="color: #8D38C9; font-weight: bold;">While</span> <span style="color: #151B8D; font-weight: bold;">input</span>.Position &lt; intFileLength
            Try
                <span style="color: #151B8D; font-weight: bold;">Dim</span> myBook <span style="color: #151B8D; font-weight: bold;">As</span> Book = CType(reader.Deserialize(<span style="color: #151B8D; font-weight: bold;">input</span>), Book)
&nbsp;
                Console.WriteLine(myBook)
            Catch serializableException <span style="color: #151B8D; font-weight: bold;">As</span> SerializationException
&nbsp;
&nbsp;
                Console.WriteLine(<span style="color: #800000;">&quot;Serialization Exception&quot;</span>)
            <span style="color: #8D38C9; font-weight: bold;">End</span> Try
&nbsp;
        <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">While</span>
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
        <span style="color: #151B8D; font-weight: bold;">input</span>.<span style="color: #8D38C9; font-weight: bold;">Close</span>()
&nbsp;
        Console.WriteLine(<span style="color: #800000;">&quot;No more records in file&quot;</span>)
&nbsp;
&nbsp;
        Console.ReadLine()
    <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span>
&nbsp;
<span style="color: #8D38C9; font-weight: bold;">End</span> Class
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&lt;Serializable()&gt; <span style="color: #E56717; font-weight: bold;">Public</span> Structure Book
    <span style="color: #E56717; font-weight: bold;">Public</span> ID <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span>
    &lt;vbfixedstring (25)&gt; <span style="color: #E56717; font-weight: bold;">Public</span> BookName <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>
    &lt;/vbfixedstring&gt;&lt;vbfixedstring (25)&gt; <span style="color: #E56717; font-weight: bold;">Public</span> BookAuthor <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>
&nbsp;
    <span style="color: #E56717; font-weight: bold;">Public</span> <span style="color: #E56717; font-weight: bold;">Sub</span> <span style="color: #E56717; font-weight: bold;">New</span>(<span style="color: #151B8D; font-weight: bold;">ByVal</span> new_id <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span>, <span style="color: #151B8D; font-weight: bold;">ByVal</span> Book_name <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>, _
     <span style="color: #151B8D; font-weight: bold;">ByVal</span> Book_author <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>)
        ID = new_id
        BookName = Book_name
        BookAuthor = Book_author
    <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span>
&nbsp;
    <span style="color: #E56717; font-weight: bold;">Public</span> Overrides <span style="color: #E56717; font-weight: bold;">Function</span> ToString() <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>
        Return ID &amp; <span style="color: #800000;">&quot;: &quot;</span> &amp; BookName &amp; <span style="color: #800000;">&quot; &quot;</span> &amp; BookAuthor
    <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Function</span>
<span style="color: #8D38C9; font-weight: bold;">End</span> Structure
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&lt;/vbfixedstring&gt;</div></pre><br
/> <strong>Step 2: Use View Plain to Cut-n-paste code into Module1.vb</strong><br
/><pre class="devcodeblock" title="Visual Basic"><div class="devcodeoverflow">
Module Module1
&nbsp;
    <span style="color: #E56717; font-weight: bold;">Sub</span> Main()
        <span style="color: #008000;">'***** DataBaseADONET *************</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLConnectionConnectionString As New clsSQLConnectionConnectionString</span>
        <span style="color: #008000;">'mySQLConnectionConnectionString.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLInsert As New clsSQLInsert</span>
        <span style="color: #008000;">'mySQLInsert.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLParameters As New clsSQLParameters</span>
        <span style="color: #008000;">'mySQLParameters.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLCallStoredProcedure As New clsSQLCallStoredProcedure</span>
        <span style="color: #008000;">'mySQLCallStoredProcedure.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLSelect As New clsSQLSelect</span>
        <span style="color: #008000;">'mySQLSelect.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySqlCommandDelete As New clsSqlCommandDelete</span>
        <span style="color: #008000;">'mySqlCommandDelete.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySqlCommandUpdate As New clsSqlCommandUpdate</span>
        <span style="color: #008000;">'mySqlCommandUpdate.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySqlDataReader As New clsSqlDataReader</span>
        <span style="color: #008000;">'mySqlDataReader.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim myStringFormatDateTime As New clsStringFormatDateTime</span>
        <span style="color: #008000;">'myStringFormatDateTime.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim myStringBuilder As New clsStringBuilder</span>
        <span style="color: #008000;">'myStringBuilder.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim myString As New clsString</span>
        <span style="color: #008000;">'myString.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim myDataTableSqlDataReader As New clsDataTableSqlDataReader</span>
        <span style="color: #008000;">'myDataTableSqlDataReader.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim myBinaryFileReadRandom As New clsBinaryFileReadRandom</span>
        <span style="color: #008000;">'myBinaryFileReadRandom.Main()</span>
&nbsp;
        <span style="color: #151B8D; font-weight: bold;">Dim</span> myBinaryFileReadSequential <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #E56717; font-weight: bold;">New</span> clsBinaryFileReadSequential
        myBinaryFileReadSequential.Main()
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span>
&nbsp;
<span style="color: #8D38C9; font-weight: bold;">End</span> Module
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
</div></pre></p><p><a
href="http://idealprogrammer.com/net-languages/code-samples/vb-net-code/vbnet-binary-file-read-sequential-source-code/">VB.NET Binary File Read Sequential &#8211; Source Code Example</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/net-languages/code-samples/vb-net-code/vbnet-binary-file-read-random-source-code-2/' rel='bookmark' title='Permanent Link: VB.NET Binary File Read Random &#8211; Source Code Example'>VB.NET Binary File Read Random &#8211; Source Code Example</a> <small>VB.NET Binary File Read Random - Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/net-languages/code-samples/vbnet-sql-command-update-statement-source-code/' rel='bookmark' title='Permanent Link: VB.NET Sql Command Update Statement Source Code Example'>VB.NET Sql Command Update Statement Source Code Example</a> <small>VB.NET Source Code Example shows how to use Sql Command...</small></li><li><a
href='http://idealprogrammer.com/net-languages/code-samples/vbnet-sql-command-delete-statement-source-code/' rel='bookmark' title='Permanent Link: VB.NET Sql Command Delete Statement Source Code Example'>VB.NET Sql Command Delete Statement Source Code Example</a> <small>Example illustrates using VB.NET Sql Command Delete Statement and checking...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/net-languages/code-samples/vb-net-code/vbnet-binary-file-read-sequential-source-code/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>VB.NET Binary File Read Random &#8211; Source Code Example</title><link>http://idealprogrammer.com/net-languages/code-samples/vb-net-code/vbnet-binary-file-read-random-source-code-2/</link> <comments>http://idealprogrammer.com/net-languages/code-samples/vb-net-code/vbnet-binary-file-read-random-source-code-2/#comments</comments> <pubDate>Mon, 05 Jul 2010 19:03:31 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[VB.NET Code]]></category> <category><![CDATA[Binary File]]></category> <category><![CDATA[example]]></category> <category><![CDATA[Read Random]]></category> <category><![CDATA[Source code]]></category> <category><![CDATA[vb.net]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=2496</guid> <description><![CDATA[VB.NET Binary File Read Random - Source Code Example<p><a
href="http://idealprogrammer.com/net-languages/code-samples/vb-net-code/vbnet-binary-file-read-random-source-code-2/">VB.NET Binary File Read Random &#8211; Source Code Example</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>Related posts:<ol><li><a
href='http://idealprogrammer.com/net-languages/code-samples/vbnet-sql-command-update-statement-source-code/' rel='bookmark' title='Permanent Link: VB.NET Sql Command Update Statement Source Code Example'>VB.NET Sql Command Update Statement Source Code Example</a> <small>VB.NET Source Code Example shows how to use Sql Command...</small></li><li><a
href='http://idealprogrammer.com/net-languages/code-samples/vbnet-stringbuilder-source-code/' rel='bookmark' title='Permanent Link: VB.NET StringBuilder Source Code Example'>VB.NET StringBuilder Source Code Example</a> <small>VB.NET StringBuilder Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/net-languages/code-samples/vbnet-sql-command-delete-statement-source-code/' rel='bookmark' title='Permanent Link: VB.NET Sql Command Delete Statement Source Code Example'>VB.NET Sql Command Delete Statement Source Code Example</a> <small>Example illustrates using VB.NET Sql Command Delete Statement and checking...</small></li></ol>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<h1>VB.NET Binary File Read Random &#8211; Source Code Example</h1><p><strong>Purpose:</strong> &#8211; Illustrates the <a
rel="tag" href="https://www.google.com/#hl=en&amp;sugexp=pfwl&amp;cp=20&amp;gs_id=2c&amp;xhr=t&amp;q=VBNET+Syntax" target="_blank">VB.NET Syntax</a> for <a
rel="tag" href="https://www.google.com/#hl=en&amp;sugexp=pfwl&amp;cp=20&amp;gs_id=2c&amp;xhr=t&amp;q=Random+Read+Binary+File" target="_blank">Random Read of Binary File</a>.</p><div
style="border:thin dotted black; padding:3mm;background-color:gainsboro;"><center><strong><a
href="http://idealprogrammer.com/code-samples/vb-net-code/vbnet-source-code-samples/">View Other VB.NET Source Code Examples</a></strong></center></div><p><strong>Prerequistes:</strong></p><ol><li>Install <a
href="http://www.msdn.com/express" target="_blank">Visual Basic (Express or Standard Edition)</a></li><li>Install <a
href="http://www.msdn.com/express" target="_blank">SQL Server Express</a></li><li>Download <a
href="http://www.microsoft.com/downloads/details.aspx?familyid=06616212-0356-46a0-8da2-eebc53a68034&#038;displaylang=en" target="_blank">Northwind and pubs Database</a></li><li>Attach Northwind Database to Databases in Sql Express</li><li>Attach pubs Database to Databases in Sql Express</li></ol><p><strong>Notes:</strong></p><ul><li>Console Application is used to simplify things, but Windows Forms or Web Forms could also be used</li><li><font
color="red">You can build a library of syntax examples by using same project over and over and just commenting out what you do not want to execute in Module1.vb</font></li></ul><p><strong>Instructions:</strong></p><ol><li>Use Visual Basic 2008 Express or Standard Edition</li><li>Create new project;<ul><li>Click File/New Project</li><li>Select Console Application Template</li><li>Select Visual Basic for Language</li><li>name of project could be VBNET_Syntax.</li></ul></li><p><img
src="http://idealprogrammer.com/wp-photos/VBSyntaxFileDirectoryBinaryFileReadRandom.PNG" alt="VB Syntax File Directory Binary File Read Random" border="1" align="right"/></p><li>Add New folder named &#034;FileDirectory&#034;<ul><li>Right-click project name in solution explorer;</li><li>add new folder;</li><li>name of folder could be: FileDirectory</li></ul></li><li>Add Class Named clsBinaryFileReadRandom to FileDirectory  folder<ul><li>Right-click FileDirectory folder;</li><li>add new item;</li><li>Select class</li><li>Class name could be clsBinaryFileReadRandom</li></ul></li><li>Click on copy code in code below to copy code into clsBinaryFileReadRandom.vb</li><li>Click on copy code in second set of code below to copy code into Module1.vb</li><li>Click green arrow or press F5 to run program</li></ol><p><strong>Step 1: Use Copy Code to Cut-n-paste code into clsBinaryFileReadRandom.vb</strong><br
/><pre class="devcodeblock" title="Visual Basic"><div class="devcodeoverflow">
Imports System.IO
Imports System.Collections
Imports System.Runtime.Serialization.Formatters.<span style="color: #F660AB; font-weight: bold;">Binary</span>
Imports System.Runtime.Serialization
&nbsp;
<span style="color: #E56717; font-weight: bold;">Public</span> Class clsBinaryFileReadRandom
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #E56717; font-weight: bold;">Public</span> Shared <span style="color: #E56717; font-weight: bold;">Sub</span> Main()
        <span style="color: #151B8D; font-weight: bold;">Dim</span> formatter <span style="color: #151B8D; font-weight: bold;">As</span> BinaryFormatter = <span style="color: #E56717; font-weight: bold;">New</span> BinaryFormatter()
        <span style="color: #151B8D; font-weight: bold;">Dim</span> <span style="color: #151B8D; font-weight: bold;">output</span> <span style="color: #151B8D; font-weight: bold;">As</span> FileStream
&nbsp;
        <span style="color: #151B8D; font-weight: bold;">Dim</span> fileName <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span> = <span style="color: #800000;">&quot;books.dat&quot;</span>
&nbsp;
&nbsp;
&nbsp;
        Try
            <span style="color: #151B8D; font-weight: bold;">output</span> = <span style="color: #E56717; font-weight: bold;">New</span> FileStream(fileName, FileMode.OpenOrCreate, FileAccess.Write)
&nbsp;
            <span style="color: #151B8D; font-weight: bold;">Dim</span> Book <span style="color: #151B8D; font-weight: bold;">As</span> Book = <span style="color: #E56717; font-weight: bold;">New</span> Book(1, <span style="color: #800000;">&quot;The Republic&quot;</span>, <span style="color: #800000;">&quot;Plato&quot;</span>)
&nbsp;
            formatter.Serialize(<span style="color: #151B8D; font-weight: bold;">output</span>, Book)
&nbsp;
            Book = <span style="color: #E56717; font-weight: bold;">New</span> Book(2, <span style="color: #800000;">&quot;Romeo &amp; Juliet&quot;</span>, <span style="color: #800000;">&quot;Shakespeare&quot;</span>)
&nbsp;
            formatter.Serialize(<span style="color: #151B8D; font-weight: bold;">output</span>, Book)
&nbsp;
            Book = <span style="color: #E56717; font-weight: bold;">New</span> Book(3, <span style="color: #800000;">&quot;The Symposium&quot;</span>, <span style="color: #800000;">&quot;Plato&quot;</span>)
&nbsp;
            formatter.Serialize(<span style="color: #151B8D; font-weight: bold;">output</span>, Book)
&nbsp;
            <span style="color: #151B8D; font-weight: bold;">output</span>.<span style="color: #8D38C9; font-weight: bold;">Close</span>()
&nbsp;
        Catch fileException <span style="color: #151B8D; font-weight: bold;">As</span> FileNotFoundException
            Console.WriteLine(<span style="color: #800000;">&quot;File Does Not Exits&quot;</span>)
        Catch serializableException <span style="color: #151B8D; font-weight: bold;">As</span> SerializationException
            Console.WriteLine(<span style="color: #800000;">&quot;Error Writing to File&quot;</span>)
        Catch formattingException <span style="color: #151B8D; font-weight: bold;">As</span> FormatException
            Console.WriteLine(<span style="color: #800000;">&quot;Invalid Format&quot;</span>)
        Catch e <span style="color: #151B8D; font-weight: bold;">As</span> IOException
            Console.WriteLine(<span style="color: #800000;">&quot;Cannot close file&quot;</span>)
&nbsp;
        <span style="color: #8D38C9; font-weight: bold;">End</span> Try
&nbsp;
&nbsp;
&nbsp;
        <span style="color: #151B8D; font-weight: bold;">Dim</span> <span style="color: #151B8D; font-weight: bold;">input</span> <span style="color: #151B8D; font-weight: bold;">As</span> FileStream
&nbsp;
        <span style="color: #151B8D; font-weight: bold;">Dim</span> reader <span style="color: #151B8D; font-weight: bold;">As</span> BinaryFormatter = <span style="color: #E56717; font-weight: bold;">New</span> BinaryFormatter()
&nbsp;
        <span style="color: #151B8D; font-weight: bold;">input</span> = <span style="color: #E56717; font-weight: bold;">New</span> FileStream(fileName, FileMode.<span style="color: #151B8D; font-weight: bold;">Open</span>, FileAccess.Read)
        <span style="color: #151B8D; font-weight: bold;">Dim</span> intFileLength <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span> = <span style="color: #151B8D; font-weight: bold;">input</span>.Length
&nbsp;
&nbsp;
&nbsp;
&nbsp;
        <span style="color: #8D38C9; font-weight: bold;">While</span> <span style="color: #151B8D; font-weight: bold;">input</span>.Position &lt; intFileLength
            Try
                <span style="color: #151B8D; font-weight: bold;">Dim</span> myBook <span style="color: #151B8D; font-weight: bold;">As</span> Book = CType(reader.Deserialize(<span style="color: #151B8D; font-weight: bold;">input</span>), Book)
&nbsp;
                Console.WriteLine(myBook)
            Catch serializableException <span style="color: #151B8D; font-weight: bold;">As</span> SerializationException
&nbsp;
&nbsp;
                Console.WriteLine(<span style="color: #800000;">&quot;Serialization Exception&quot;</span>)
            <span style="color: #8D38C9; font-weight: bold;">End</span> Try
&nbsp;
        <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">While</span>
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
        <span style="color: #151B8D; font-weight: bold;">input</span>.<span style="color: #8D38C9; font-weight: bold;">Close</span>()
&nbsp;
        Console.WriteLine(<span style="color: #800000;">&quot;No more records in file&quot;</span>)
&nbsp;
&nbsp;
        Console.ReadLine()
    <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span>
&nbsp;
<span style="color: #8D38C9; font-weight: bold;">End</span> Class
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&lt;Serializable()&gt; <span style="color: #E56717; font-weight: bold;">Public</span> Structure Book
    <span style="color: #E56717; font-weight: bold;">Public</span> ID <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span>
    &lt;vbfixedstring (25)&gt; <span style="color: #E56717; font-weight: bold;">Public</span> BookName <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>
    &lt;/vbfixedstring&gt;&lt;vbfixedstring (25)&gt; <span style="color: #E56717; font-weight: bold;">Public</span> BookAuthor <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>
&nbsp;
    <span style="color: #E56717; font-weight: bold;">Public</span> <span style="color: #E56717; font-weight: bold;">Sub</span> <span style="color: #E56717; font-weight: bold;">New</span>(<span style="color: #151B8D; font-weight: bold;">ByVal</span> new_id <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span>, <span style="color: #151B8D; font-weight: bold;">ByVal</span> Book_name <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>, _
     <span style="color: #151B8D; font-weight: bold;">ByVal</span> Book_author <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>)
        ID = new_id
        BookName = Book_name
        BookAuthor = Book_author
    <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span>
&nbsp;
    <span style="color: #E56717; font-weight: bold;">Public</span> Overrides <span style="color: #E56717; font-weight: bold;">Function</span> ToString() <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>
        Return ID &amp; <span style="color: #800000;">&quot;: &quot;</span> &amp; BookName &amp; <span style="color: #800000;">&quot; &quot;</span> &amp; BookAuthor
    <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Function</span>
<span style="color: #8D38C9; font-weight: bold;">End</span> Structure
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&lt;/vbfixedstring&gt;</div></pre><br
/> <strong>Step 2: Use View Plain to Cut-n-paste code into Module1.vb</strong><br
/><pre class="devcodeblock" title="Visual Basic"><div class="devcodeoverflow">
Module Module1
&nbsp;
    <span style="color: #E56717; font-weight: bold;">Sub</span> Main()
        <span style="color: #008000;">'***** DataBaseADONET *************</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLConnectionConnectionString As New clsSQLConnectionConnectionString</span>
        <span style="color: #008000;">'mySQLConnectionConnectionString.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLInsert As New clsSQLInsert</span>
        <span style="color: #008000;">'mySQLInsert.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLParameters As New clsSQLParameters</span>
        <span style="color: #008000;">'mySQLParameters.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLCallStoredProcedure As New clsSQLCallStoredProcedure</span>
        <span style="color: #008000;">'mySQLCallStoredProcedure.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySQLSelect As New clsSQLSelect</span>
        <span style="color: #008000;">'mySQLSelect.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySqlCommandDelete As New clsSqlCommandDelete</span>
        <span style="color: #008000;">'mySqlCommandDelete.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySqlCommandUpdate As New clsSqlCommandUpdate</span>
        <span style="color: #008000;">'mySqlCommandUpdate.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim mySqlDataReader As New clsSqlDataReader</span>
        <span style="color: #008000;">'mySqlDataReader.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim myStringFormatDateTime As New clsStringFormatDateTime</span>
        <span style="color: #008000;">'myStringFormatDateTime.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim myStringBuilder As New clsStringBuilder</span>
        <span style="color: #008000;">'myStringBuilder.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim myString As New clsString</span>
        <span style="color: #008000;">'myString.Main()</span>
&nbsp;
        <span style="color: #008000;">'Dim myDataTableSqlDataReader As New clsDataTableSqlDataReader</span>
        <span style="color: #008000;">'myDataTableSqlDataReader.Main()</span>
&nbsp;
        <span style="color: #151B8D; font-weight: bold;">Dim</span> myBinaryFileReadRandom <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #E56717; font-weight: bold;">New</span> clsBinaryFileReadRandom
        myBinaryFileReadRandom.Main()
&nbsp;
        <span style="color: #008000;">'Dim myBinaryFileReadSequential As New clsBinaryFileReadSequential</span>
        <span style="color: #008000;">'myBinaryFileReadSequential.Main()</span>
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span>
&nbsp;
<span style="color: #8D38C9; font-weight: bold;">End</span> Module
&nbsp;
&nbsp;
&nbsp;
&nbsp;
</div></pre></p><p><a
href="http://idealprogrammer.com/net-languages/code-samples/vb-net-code/vbnet-binary-file-read-random-source-code-2/">VB.NET Binary File Read Random &#8211; Source Code Example</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/net-languages/code-samples/vbnet-sql-command-update-statement-source-code/' rel='bookmark' title='Permanent Link: VB.NET Sql Command Update Statement Source Code Example'>VB.NET Sql Command Update Statement Source Code Example</a> <small>VB.NET Source Code Example shows how to use Sql Command...</small></li><li><a
href='http://idealprogrammer.com/net-languages/code-samples/vbnet-stringbuilder-source-code/' rel='bookmark' title='Permanent Link: VB.NET StringBuilder Source Code Example'>VB.NET StringBuilder Source Code Example</a> <small>VB.NET StringBuilder Source Code Example...</small></li><li><a
href='http://idealprogrammer.com/net-languages/code-samples/vbnet-sql-command-delete-statement-source-code/' rel='bookmark' title='Permanent Link: VB.NET Sql Command Delete Statement Source Code Example'>VB.NET Sql Command Delete Statement Source Code Example</a> <small>Example illustrates using VB.NET Sql Command Delete Statement and checking...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/net-languages/code-samples/vb-net-code/vbnet-binary-file-read-random-source-code-2/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>VB.NET Source Code Samples</title><link>http://idealprogrammer.com/net-languages/code-samples/vb-net-code/vbnet-source-code-samples/</link> <comments>http://idealprogrammer.com/net-languages/code-samples/vb-net-code/vbnet-source-code-samples/#comments</comments> <pubDate>Thu, 03 Dec 2009 03:36:35 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[VB.NET Code]]></category> <category><![CDATA[Source code]]></category> <category><![CDATA[vb.net example]]></category> <category><![CDATA[vb.net sample]]></category> <category><![CDATA[vb.net source code]]></category> <category><![CDATA[visual basic .net]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=859</guid> <description><![CDATA[This is a library of VB.NET Source Code Samples that you can use to accelerate your learning curve.  This is a work in progress that is just beginning.<p><a
href="http://idealprogrammer.com/net-languages/code-samples/vb-net-code/vbnet-source-code-samples/">VB.NET Source Code Samples</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>No related posts.Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<h1>VB.NET Source Code Samples</h1><p>This is a library of VB.NET Source Code Samples that you can use to accelerate your learning curve. This is a work in progress that is just beginning.</p><p><center></p><h3>VB.NET Code Samples</h3><table
border="3" cellpadding="0" cellspacing="0" class="pretty" width="650"><tbody><tr><td><table
border="1" cellpadding="0" cellspacing="0" class="pretty" width="100%"><tbody><tr
align="center" style="font-weight: bold;"><td
colspan="5" style="width: 100%; text-align: center; background-color: rgb(220, 220, 220);">ADO.NET</td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/code-samples/sqlconnection-connection-string/">SQLConnection Connection String</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/code-samples/vbnet-sql-parameters-source-code-insert-statement/">SQL Insert Statement</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/code-samples/vbnet-sql-parameters-source-code-insert-statement/">SQL Parameters</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/code-samples/vbnet-sql-stored-procedure-source-code/">SQL Stored Procedure</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/code-samples/vbnet-sql-select-statement-source-code/">SQL Select</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/code-samples/vbnet-sql-command-delete-statement-source-code/">Sql Command Delete</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/code-samples/vbnet-sql-command-update-statement-source-code/">Sql Command Update</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/code-samples/vbnet-sqldatareader-source-code/">SqlDataReader</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/code-samples/vbnet-datatable-load-sqldatareader-source-code/">DataTable loaded from SqlDataReader</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr></tbody></table></td></tr><tr><td><table
border="1" cellpadding="0" cellspacing="0" class="pretty" width="100%"><tbody><tr
align="center" style="font-weight: bold;"><td
colspan="5" style="width: 100%; text-align: center; background-color: rgb(220, 220, 220);">Application</td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr></tbody></table></td></tr><tr><td><table
border="1" cellpadding="0" cellspacing="0" class="pretty" width="100%"><tbody><tr
align="center" style="font-weight: bold;"><td
colspan="6" style="width: 100%; text-align: center; background-color: rgb(220, 220, 220);">Class</td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr></tbody></table></td></tr><tr><td><table
border="1" cellpadding="0" cellspacing="0" class="pretty" width="100%"><tbody><tr
align="center" style="font-weight: bold;"><td
colspan="5" style="width: 100%; text-align: center; background-color: rgb(220, 220, 220);">Data Structure</td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr></tbody></table></td></tr><tr><td><table
border="1" cellpadding="0" cellspacing="0" class="pretty" width="100%"><tbody><tr
align="center" style="font-weight: bold;"><td
colspan="5" style="width: 100%; text-align: center; background-color: rgb(220, 220, 220);">Development</td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr></tbody></table></td></tr><tr><td><table
border="1" cellpadding="0" cellspacing="0" class="pretty" width="100%"><tbody><tr
align="center" style="font-weight: bold;"><td
colspan="5" style="width: 100%; text-align: center; background-color: rgb(220, 220, 220);">File Directory</td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-random-source-code-2/">Binary File Random Read</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/code-samples/vb-net-code/vbnet-binary-file-read-sequential-source-code/">Binary File Sequential Read</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr></tbody></table></td></tr><tr><td><table
border="1" cellpadding="0" cellspacing="0" class="pretty" width="100%"><tbody><tr
align="center" style="font-weight: bold;"><td
colspan="5" style="width: 100%; text-align: center; background-color: rgb(220, 220, 220);">Functions</td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com">Conversion Functions</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com">CType Functions</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-console-math-function-examples/">Math Functions</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">String Functions</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-aspnet-type-conversion-function-examples/">Type Conversion Functions</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr></tbody></table></td></tr><tr><td><table
border="1" cellpadding="0" cellspacing="0" class="pretty" width="100%"><tbody><tr
align="center" style="font-weight: bold;"><td
colspan="5" style="width: 100%; text-align: center; background-color: rgb(220, 220, 220);">Generics</td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr></tbody></table></td></tr><tr><td><table
border="1" cellpadding="0" cellspacing="0" class="pretty" width="100%"><tbody><tr
align="center" style="font-weight: bold;"><td
colspan="5" style="width: 100%; text-align: center; background-color: rgb(220, 220, 220);">GUI</td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr></tbody></table></td></tr><tr><td><table
border="1" cellpadding="0" cellspacing="0" class="pretty" width="100%"><tbody><tr
align="center" style="font-weight: bold;"><td
colspan="5" style="width: 100%; text-align: center; background-color: rgb(220, 220, 220);">Language Basics</td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/code-samples/vbnet-string-format-datetime-source-code/">String Format Date Time</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/code-samples/vbnet-stringbuilder-source-code/">StringBuilder</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/code-samples/vbnet-string-source-code-examples/">String</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr></tbody></table></td></tr><tr><td><table
border="1" cellpadding="0" cellspacing="0" class="pretty" width="100%"><tbody><tr
align="center" style="font-weight: bold;"><td
colspan="5" style="width: 100%; text-align: center; background-color: rgb(220, 220, 220);">Network Remote</td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr></tbody></table></td></tr><tr><td><table
border="1" cellpadding="0" cellspacing="0" class="pretty" width="100%"><tbody><tr
align="center" style="font-weight: bold;"><td
colspan="5" style="width: 100%; text-align: center; background-color: rgb(220, 220, 220);">String Manipulation</td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-asc-code-sample-syntax/">Asc()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-ascw-code-sample-syntax/">AscW()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-chars-code-sample-syntax/">Chars()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-chr-code-sample-syntax/">Chr()</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-chrw-code-sample-syntax/">ChrW()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-endswith-code-sample/">EndsWith()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-filter-code-sample-syntax/">Filter</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-format-code-sample-syntax/">Format()</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-formatcurrency-code-sample-syntax/">FormatCurrency()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-formatdatetime-code-sample-syntax/">FormatDateTime()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-formatnumber-code-sample-syntax/">FormatNumber()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-formatpercent-code-sample-syntax/">FormatPercent()</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-indexof-code-sample/">IndexOf()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-insert-code-sample/">Insert()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-instr-code-sample/">InStr()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-instrrev-code-sample/">InStrRev()</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-isnumeric-code-sample/">IsNumeric()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-join-code-sample/">Join()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-lastindexof-code-sample/">LastIndexOf()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-lcase-code-sample/">LCase()</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-string-function-left/">Left()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-len-code-sample/">Len()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-length-code-sample-syntax/">Length</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-ltrim-code-sample/">LTrim()</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-mid-code-sample/">Mid()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-optioncompare-code-sample-syntax/">Option Compare</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-padleft-code-sample/">PadLeft()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-padright-code-sample/">PadRight()</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-remove-code-sample/">Remove()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-replace-code-sample/">Replace()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-code-sample-syntax/">Right()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-rtrim-code-sample/">RTrim()</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-space-code-sample/">Space()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-split-code-sample/">Split()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-startswith-code-sample/">StartsWith()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-strcomp-code-sample-syntax/">StrComp()</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-strconv-code-sample-syntax/">StrConv()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-strdup-code-sample-syntax/">StrDup()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-stringisnullorempty/">String.IsNullorEmpty()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-strreverse-code-sample-syntax/">StrReverse()</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-substring-code-sample/">Substring()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-tolower-code-sample/">ToLower()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-toupper-code-sample-syntax/">ToUpper()</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-trim-code-sample/">Trim()</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/net-languages/code-samples/vbnet-ucase-code-sample/">UCase()</a></td></tr></tbody></table></td></tr><tr><td><table
border="1" cellpadding="0" cellspacing="0" class="pretty" width="100%"><tbody><tr
align="center" style="font-weight: bold;"><td
colspan="5" style="width: 100%; text-align: center; background-color: rgb(220, 220, 220);">Thread</td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr></tbody></table></td></tr><tr><td><table
border="1" cellpadding="0" cellspacing="0" class="pretty" width="100%"><tbody><tr
align="center" style="font-weight: bold;"><td
colspan="5" style="width: 100%; text-align: center; background-color: rgb(220, 220, 220);">XML</td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr></tbody></table></td></tr><tr><td><table
border="1" cellpadding="0" cellspacing="0" class="pretty" width="100%"><tbody><tr
align="center" style="font-weight: bold;"><td
colspan="5" style="width: 100%; text-align: center; background-color: rgb(220, 220, 220);">Windows</td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr><tr></p><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td><td
align="center" valign="top"><a
href="http://idealprogrammer.com/">Coming Soon</a></td></tr></tbody></table></td></tr></tbody></table><p></center></p><div
class="zemanta-pixie" style="height: 15px; margin-top: 10px;"><a
class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/8b82b6e8-b651-4349-af80-c62806edf822/" title="Reblog this post [with Zemanta]"><img
alt="Reblog this post [with Zemanta]" class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=8b82b6e8-b651-4349-af80-c62806edf822" style="float: right;" /></a><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></div><p><a
href="http://idealprogrammer.com/net-languages/code-samples/vb-net-code/vbnet-source-code-samples/">VB.NET Source Code Samples</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>No related posts.</p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/net-languages/code-samples/vb-net-code/vbnet-source-code-samples/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Database Caching 89/155 queries in 0.143 seconds using disk: basic
Object Caching 3246/3280 objects using disk: basic

Served from: idealprogrammer.com @ 2012-05-21 09:40:59 -->
