<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1946406147807042875</id><updated>2012-02-16T20:00:44.278+11:00</updated><title type='text'>Visual Basic Tutorials - VB.net</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mrvbdude.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://mrvbdude.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>MrVBDude</name><uri>http://www.blogger.com/profile/16570724568258591891</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://4.bp.blogspot.com/_ZtaUYxomOV0/S-AyEeBogEI/AAAAAAAAACI/uVuhCM2P9Ks/S220/820.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1946406147807042875.post-6112150126447886970</id><published>2011-07-13T11:23:00.012+10:00</published><updated>2011-07-13T11:53:52.253+10:00</updated><title type='text'>[VB.net] Structure, Arraylist and Combination {Detailed Tutorial}. Part -1/2</title><content type='html'>Hi all,&lt;br /&gt;&lt;br /&gt;In this tutorial, you will learn almost everything about Structures, Arraylist and how to use the combination of both to get the best results. I am also gonna be teaching how to save and reload an arraylist.&lt;br /&gt;&lt;span style="font-size:180%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span style=" font-weight: bold;font-family:georgia;font-size:180%;"  &gt;Structures&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;Structures is basically a tool for handling a group of logically related data items or field. Structures are very similar to classes. The main difference between classes and structures is that structures are value type and classes are reference type.&lt;br /&gt;&lt;br /&gt;Difference between Value and Reference Type:-&lt;br /&gt;&lt;br /&gt;I can't explain better than this website.&lt;br /&gt;&lt;br /&gt;&lt;span id="ContentPlaceHolder1_lblDescription"&gt;&lt;span itemprop="articleBody"&gt;"Reference  types are stored on the run-time heap; they may only be accessed  through a reference to that storage. This allows the garbage collector  to track outstanding references to a particular instance and free the  instance when no references remain. A variable of reference type always  contains a reference to a value of that type or a null reference. A null  reference refers to nothing; it is invalid to do anything with a null  reference except assign it. Assignment to a variable of a reference type  creates a copy of the reference, not a copy of the value being  referenced.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span id="ContentPlaceHolder1_lblDescription"&gt;&lt;span itemprop="articleBody"&gt;Value  types are stored directly on the stack, either within an array or  within another type. When the location containing a value type instance  is destroyed, the value type instance is also destroyed. Value types are  always accessed directly; it is not possible to create a reference to a  value type. Prohibiting such a reference makes it impossible to refer  to a value class instance that has been destroyed. A variable of a value  type always contains a value of that type. Unlike reference types, the  value of a value type cannot be a null reference, nor can it reference  an object of a more derived type. Assignment to a variable of a value  type creates a copy of the value being assigned.&lt;/span&gt;&lt;/span&gt;"&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Source:&lt;/span&gt; http://www.dotnetspider.com/resources/1479-Difference-between-reference-&lt;span style="display: block;" id="formatbar_Buttons"&gt;&lt;span onmouseover="ButtonHoverOn(this);" onmouseout="ButtonHoverOff(this);" onmouseup="" onmousedown="CheckFormatting(event);FormatbarButton('richeditorframe', this, 8);ButtonMouseDown(this);" class=" down" style="display: block;" id="formatbar_CreateLink" title="Link"&gt;&lt;img src="http://www.blogger.com/img/blank.gif" alt="Link" class="gl_link" border="0" /&gt;&lt;/span&gt;&lt;/span&gt;type-value-type.aspx&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;Codes:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Public Class Form1&lt;br /&gt;Dim inc As Integer = 0&lt;br /&gt;Dim emp(inc) As employee&lt;br /&gt;&lt;br /&gt;Structure employee&lt;br /&gt;    Dim EmpName As String&lt;br /&gt;    Dim EmpId As Integer&lt;br /&gt;    Dim EmpDesignation As String&lt;br /&gt;    Dim EmpSal As Double&lt;br /&gt;End Structure&lt;br /&gt;&lt;br /&gt;Private Sub btn_Structures_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_Structures.Click&lt;br /&gt;&lt;br /&gt;    emp(inc).EmpName = "Udit Dua"&lt;br /&gt;    emp(inc).EmpDesignation = "Software Developer"&lt;br /&gt;&lt;br /&gt;    MsgBox(emp(inc).EmpName)&lt;br /&gt;    MsgBox(emp(inc).EmpDesignation)&lt;br /&gt;&lt;br /&gt;    ReDim Preserve emp(inc + 1)&lt;br /&gt;&lt;br /&gt;    emp(inc).EmpName = "John Smith"&lt;br /&gt;    emp(inc).EmpDesignation = "School Teacher"&lt;br /&gt;&lt;br /&gt;    MsgBox(emp(inc).EmpName)&lt;br /&gt;    MsgBox(emp(inc).EmpDesignation)&lt;br /&gt;&lt;br /&gt;    ReDim Preserve emp(inc + 1)&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;End Class&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-irf7WP5bjQM/Thz29rtFemI/AAAAAAAAAIM/ZLQOmhlSzlY/s1600/Structures%2Bcode%2B-%2BBlog.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 691px; height: 363px;" src="http://2.bp.blogspot.com/-irf7WP5bjQM/Thz29rtFemI/AAAAAAAAAIM/ZLQOmhlSzlY/s400/Structures%2Bcode%2B-%2BBlog.png" alt="" id="BLOGGER_PHOTO_ID_5628645173870557794" border="0" /&gt;&lt;/a&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Here is the video tutorial:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;object height="510" width="730"&gt;&lt;param name="movie" value="http://www.youtube.com/v/cj_6dLHC8dw?version=3&amp;amp;hl=en_US&amp;amp;rel=0&amp;amp;hd=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/cj_6dLHC8dw?version=3&amp;amp;hl=en_US&amp;amp;rel=0&amp;amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="510" width="730"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1946406147807042875-6112150126447886970?l=mrvbdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mrvbdude.blogspot.com/feeds/6112150126447886970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mrvbdude.blogspot.com/2011/07/vbnet-structure-arraylist-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/6112150126447886970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/6112150126447886970'/><link rel='alternate' type='text/html' href='http://mrvbdude.blogspot.com/2011/07/vbnet-structure-arraylist-and.html' title='[VB.net] Structure, Arraylist and Combination {Detailed Tutorial}. Part -1/2'/><author><name>MrVBDude</name><uri>http://www.blogger.com/profile/16570724568258591891</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://4.bp.blogspot.com/_ZtaUYxomOV0/S-AyEeBogEI/AAAAAAAAACI/uVuhCM2P9Ks/S220/820.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-irf7WP5bjQM/Thz29rtFemI/AAAAAAAAAIM/ZLQOmhlSzlY/s72-c/Structures%2Bcode%2B-%2BBlog.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1946406147807042875.post-6003016951299914249</id><published>2010-06-25T17:01:00.010+10:00</published><updated>2010-06-26T22:57:52.395+10:00</updated><title type='text'>How to login into Youtube, Gmail, Yahoo, Facebook, Hotmail using Visual Basic 2010 or 2008 {VB.net}</title><content type='html'>&lt;span style="color: rgb(255, 0, 0);"&gt;Requirements:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;4 Textbox (Textbox1, Textbox2, Textbox3, Textbox4)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;1 Button (Name: Button1, Text: Set Cursor Position and Log me In"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;2 Timers (Timer1 (Interval: 100, Enabled: True), Timer2 (Interval: 10000, Enabled: False)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;2 Labels (Name: Label1 (Text: X), Label2 (Text: Y))&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; width: 374px; height: 201px;" src="http://3.bp.blogspot.com/_ZtaUYxomOV0/TCRWBEOM66I/AAAAAAAAAFQ/b_nJ45O9FCg/s400/25-06-2010+5-06-34+PM.png" alt="" id="BLOGGER_PHOTO_ID_5486604822357273506" border="0" /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Codes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Public Class Form1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Public Declare Sub SetCursorPos Lib "user32" (ByVal X As Integer, ByVal Y As Integer)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Public Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Integer, ByVal dx As Integer, ByVal dy As Integer, ByVal cButtons As Integer, ByVal dwExtraInfo As Integer)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Public Const MOUSEEVENTF_LEFTDOWN = &amp;amp;H2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Public Const MOUSEEVENTF_LEFTUP = &amp;amp;H4&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Public Const MOUSEEVENTF_RIGHTDOWN = &amp;amp;H8&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Public Const MOUSEEVENTF_RIGHTUP = &amp;amp;H10&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        TextBox1.Text = Cursor.Position.X&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        TextBox2.Text = Cursor.Position.Y&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim first As Integer = TextBox3.Text&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim second As Integer = TextBox4.Text&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        SetCursorPos(first, second)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer2.Enabled = True&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        SendKeys.Send("YOUR YOUTUBE USERNAME")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        SendKeys.Send("{TAB}")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        SendKeys.Send("YOUR YOUTUBE PASSWORD")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        SendKeys.Send("{ENTER}")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer2.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End Class&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;_________________________________________________________________________&lt;br /&gt;&lt;br /&gt;Here is the video tutorial:&lt;br /&gt;&lt;br /&gt;&lt;object width="730" height="510"&gt;&lt;param name="movie" value="http://www.youtube.com/v/6c3ILCK-a9o&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x006699&amp;color2=0x54abd6&amp;hd=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/6c3ILCK-a9o&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x006699&amp;color2=0x54abd6&amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="730" height="510"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1946406147807042875-6003016951299914249?l=mrvbdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mrvbdude.blogspot.com/feeds/6003016951299914249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mrvbdude.blogspot.com/2010/06/how-to-login-into-youtube-gmail-yahoo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/6003016951299914249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/6003016951299914249'/><link rel='alternate' type='text/html' href='http://mrvbdude.blogspot.com/2010/06/how-to-login-into-youtube-gmail-yahoo.html' title='How to login into Youtube, Gmail, Yahoo, Facebook, Hotmail using Visual Basic 2010 or 2008 {VB.net}'/><author><name>MrVBDude</name><uri>http://www.blogger.com/profile/16570724568258591891</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://4.bp.blogspot.com/_ZtaUYxomOV0/S-AyEeBogEI/AAAAAAAAACI/uVuhCM2P9Ks/S220/820.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_ZtaUYxomOV0/TCRWBEOM66I/AAAAAAAAAFQ/b_nJ45O9FCg/s72-c/25-06-2010+5-06-34+PM.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1946406147807042875.post-1343566428930324880</id><published>2010-06-14T01:05:00.015+10:00</published><updated>2010-06-25T23:49:42.316+10:00</updated><title type='text'>Visual Basic - Screen Capturing Program Tutorial - Take a ScreenShot of your screen..! - VB.net</title><content type='html'>&lt;span style="color: rgb(255, 0, 0);"&gt;Requirements:&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;2 Buttons (Name: Button1 (Text: Capture), Button2 (Text: Save)&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;1 PictureBox (Size Mode: Stretched Image)&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;1 Timer (Name: Timer1) (Interval approx. 10000)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Codes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Public Class Form1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;'Button 2 = Capture&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Me.Opacity = 0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer1.Enabled = True&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim bounds As Rectangle&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim screenshot As System.Drawing.Bitmap&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim graph As Graphics&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        bounds = Screen.PrimaryScreen.Bounds&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        graph = Graphics.FromImage(screenshot)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        graph.CopyFromScreen(bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        PictureBox1.Image = screenshot&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer1.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Me.Opacity = 100&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;'Button1 = Save&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim savefiledialog1 As New SaveFileDialog&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Try&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            savefiledialog1.Title = "Save File"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            savefiledialog1.FileName = "Save As..."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            savefiledialog1.Filter = "JPEG |*.jpeg"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            If savefiledialog1.ShowDialog() = DialogResult.OK Then      PictureBox1.Image.Save(savefiledialog1.FileName,System.Drawing.Imaging.ImageFormat.Bmp)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Catch ex As Exception&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;'Do Nothing&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        End Try&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End Class&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;_________________________________________________________________________&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;Here is the video tutorial:&lt;/span&gt;&lt;br /&gt;&lt;object width="730" height="510"&gt;&lt;param name="movie" value="http://www.youtube.com/v/Z-P874sfzTI&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x006699&amp;amp;color2=0x54abd6&amp;amp;hd=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/Z-P874sfzTI&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x006699&amp;amp;color2=0x54abd6&amp;amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="730" height="510"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1946406147807042875-1343566428930324880?l=mrvbdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mrvbdude.blogspot.com/feeds/1343566428930324880/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mrvbdude.blogspot.com/2010/06/screenshot-tutorial.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/1343566428930324880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/1343566428930324880'/><link rel='alternate' type='text/html' href='http://mrvbdude.blogspot.com/2010/06/screenshot-tutorial.html' title='Visual Basic - Screen Capturing Program Tutorial - Take a ScreenShot of your screen..! - VB.net'/><author><name>MrVBDude</name><uri>http://www.blogger.com/profile/16570724568258591891</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://4.bp.blogspot.com/_ZtaUYxomOV0/S-AyEeBogEI/AAAAAAAAACI/uVuhCM2P9Ks/S220/820.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1946406147807042875.post-2139717645779374075</id><published>2010-05-26T23:41:00.008+10:00</published><updated>2010-06-25T23:40:07.340+10:00</updated><title type='text'>How to Create, Copy, Move, Rename, Delete File or Directory VB.net or Visual Basic</title><content type='html'>Hello and welcome to another cool vb.net tutorial. Today in this tutorial i will be teaching u all how to use the Directory or File Operations in Vb.net or Visual Basic&lt;br /&gt;&lt;br /&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; width: 573px; height: 356px;" src="http://1.bp.blogspot.com/_ZtaUYxomOV0/S_0nCGHtLSI/AAAAAAAAADQ/SUkHaP_8Gfk/s400/26-05-2010+11-48-47+PM.png" alt="" id="BLOGGER_PHOTO_ID_5475575638908546338" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Requirements:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;4 Timers&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;(Name: Timer1, Timer2, Timer3, Timer4) (Interval: 150, 1000, 1000, 1000)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;1 Label&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;(Name: Label1) (Text: Status.)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;8 Buttons (Name: Button1, &lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Button2,&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; Button3&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;,Button4, &lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Button5, &lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Button6, &lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Button7, &lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Button8&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;(Text: Create Directory, Move Directory, Delete Directory, Create File, Copy File, Delete File, Rename File)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Codes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Imports System.IO&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Public Class Form1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Form1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer1.Enabled = True&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer2.Enabled = True&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer3.Enabled = True&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer4.Enabled = True&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer1.Enabled = True&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Label1.Text = "Status"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer1.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer2.Enabled = True&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Label1.Text = "Status."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer2.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer3.Enabled = True&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Label1.Text = "Status.."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer3.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer4.Enabled = True&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Timer4_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer4.Tick&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Label1.Text = "Status..."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer4.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer1.Enabled = True&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim path As String = "c:\test"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        If Directory.Exists(path) Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Directory.Delete(path)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Label1.Text = "Directory Deleted Successfully"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Label1.Text = "Directory Not Found"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer1.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer2.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer3.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer4.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        If Not Directory.Exists("c:\test") = True Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Label1.Text = "Directory Does Not Exist..Program will now create a Directory..!"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Directory.CreateDirectory("c:\test\")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Label1.Text = "Directory Created Successfully"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Label1.Text = "Directory Already Exist..!"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer1.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer2.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer3.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer4.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim destination As String = "c:\hello"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim path As String = "c:\test"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        If Directory.Exists(destination) Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Label1.Text = "Folder with same name already exist in the destination "&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        ElseIf Directory.Exists(path) Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Directory.Move(path, destination)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Label1.Text = "Directory Moved Successfully"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Label1.Text = "Directory Already Exist in the location specified"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer1.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer2.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer3.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer4.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim oldname As String = "c:\hello"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim newname As String = "c:\Subscribe"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        If Directory.Exists(oldname) And Not Directory.Exists(newname) Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Directory.Move(oldname, newname)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Label1.Text = "Renaming was Successfull"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Label1.Text = "There is folder already with same name in the Directory"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer1.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer2.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer3.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer4.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim filetocreate As String = "c:\test.txt"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        If Not File.Exists(filetocreate) Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            File.Create(filetocreate)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Label1.Text = "File Created Successfully"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Label1.Text = "File Already Exist"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer1.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer2.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer3.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer4.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim path As String = "c:\test.txt"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim destination As String = "c:\Subscribe\test.txt"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        If File.Exists(path) And Not File.Exists(destination) Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            File.Copy(path, destination)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Label1.Text = "File Copied Successfully"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Label1.Text = "There is already a file called test.txt in the Destination Folder"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer1.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer2.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer3.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer4.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim filetodelete As String = "c:\test.txt"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        If File.Exists(filetodelete) Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            File.Delete(filetodelete)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Label1.Text = "File Deleted Successfully"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Label1.Text = "File Not Found"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer1.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer2.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer3.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer4.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim oldname As String = "c:\Subscribe\test.txt"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim newname As String = "c:\Subscribe\Subscribe Please.txt"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        If File.Exists(oldname) And Not File.Exists(newname) Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            File.Move(oldname, newname)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Label1.Text = "Renaming Was Successfull"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Label1.Text = "File Already Exist with the same name"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End Class&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Here is the video tutorial:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="730" height="510"&gt;&lt;param name="movie" value="http://www.youtube.com/v/cRp40gJYAZ0&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x402061&amp;amp;color2=0x9461ca&amp;amp;hd=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/cRp40gJYAZ0&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x402061&amp;amp;color2=0x9461ca&amp;amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="730" height="510"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1946406147807042875-2139717645779374075?l=mrvbdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mrvbdude.blogspot.com/feeds/2139717645779374075/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mrvbdude.blogspot.com/2010/05/how-to-create-copy-move-rename-delete.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/2139717645779374075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/2139717645779374075'/><link rel='alternate' type='text/html' href='http://mrvbdude.blogspot.com/2010/05/how-to-create-copy-move-rename-delete.html' title='How to Create, Copy, Move, Rename, Delete File or Directory VB.net or Visual Basic'/><author><name>MrVBDude</name><uri>http://www.blogger.com/profile/16570724568258591891</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://4.bp.blogspot.com/_ZtaUYxomOV0/S-AyEeBogEI/AAAAAAAAACI/uVuhCM2P9Ks/S220/820.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_ZtaUYxomOV0/S_0nCGHtLSI/AAAAAAAAADQ/SUkHaP_8Gfk/s72-c/26-05-2010+11-48-47+PM.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1946406147807042875.post-3944448304275582145</id><published>2010-05-23T19:56:00.011+10:00</published><updated>2010-06-25T23:49:22.604+10:00</updated><title type='text'>Timespan Tutorial - Calculate the Date and Time Difference Between 2 Dates or Times Visual Basic {VB.net}</title><content type='html'>Hello and welcome to another cool VB.net tutorial by MrVBDude.!!!&lt;br /&gt;&lt;br /&gt;Alright today i will be teaching u all how to calculate the time or date difference between two dates of two times.. ok so lets begin..!&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center; color: rgb(255, 0, 0);"&gt;REQUIREMENTS:&lt;br /&gt;8 Labels (Name: Label1-Label8) (Text: StartDate, End Date, Start Time, End Time, Total Number of Days, Total Number of Hours, Total Number of Minutes, Total Number of Seconds)&lt;br /&gt;2 DateTimePicker (Name: DateTimePicker1, DateTimePicker2)&lt;br /&gt;8 Textbox (Name: Textbox1-Textbox8) (Text: " ")&lt;br /&gt;1 Button (Name: Button1) (Text: Find Timespan (Time Difference) between 2 dates?)&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; width: 538px; height: 258px;" src="http://2.bp.blogspot.com/_ZtaUYxomOV0/S_j9ypYBVsI/AAAAAAAAADI/wK3p3wRoCe8/s400/23-05-2010+7-58-50+PM.png" alt="" id="BLOGGER_PHOTO_ID_5474404393610729154" border="0" /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Codes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Public Class Form1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim date1 As Date&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim date2 As Date&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Dim difference As TimeSpan&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        date1 = Convert.ToDateTime(DateTimePicker1.Value)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        date2 = Convert.ToDateTime(DateTimePicker2.Value)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        difference = date2.Subtract(date1)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        TextBox3.Text = FormatNumber(difference.Days, 0)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        TextBox6.Text = FormatNumber(difference.TotalHours, 0)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        TextBox5.Text = FormatNumber(difference.TotalMinutes, 0)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        TextBox4.Text = FormatNumber(difference.TotalSeconds, 0)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End Class&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;_________________________________________________________________________&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Here is the video tutorial:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="730" height="510"&gt;&lt;param name="movie" value="http://www.youtube.com/v/acTj3T1PjXQ&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x402061&amp;amp;color2=0x9461ca&amp;amp;hd=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/acTj3T1PjXQ&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x402061&amp;amp;color2=0x9461ca&amp;amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="730" height="510"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1946406147807042875-3944448304275582145?l=mrvbdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mrvbdude.blogspot.com/feeds/3944448304275582145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mrvbdude.blogspot.com/2010/05/timespan-tutorial-calculate-date-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/3944448304275582145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/3944448304275582145'/><link rel='alternate' type='text/html' href='http://mrvbdude.blogspot.com/2010/05/timespan-tutorial-calculate-date-and.html' title='Timespan Tutorial - Calculate the Date and Time Difference Between 2 Dates or Times Visual Basic {VB.net}'/><author><name>MrVBDude</name><uri>http://www.blogger.com/profile/16570724568258591891</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://4.bp.blogspot.com/_ZtaUYxomOV0/S-AyEeBogEI/AAAAAAAAACI/uVuhCM2P9Ks/S220/820.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_ZtaUYxomOV0/S_j9ypYBVsI/AAAAAAAAADI/wK3p3wRoCe8/s72-c/23-05-2010+7-58-50+PM.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1946406147807042875.post-8068919254280977939</id><published>2010-05-16T19:20:00.017+10:00</published><updated>2010-06-04T00:09:43.786+10:00</updated><title type='text'>ProgressBar Visual Basic {VB.net} Detailed Tutorial</title><content type='html'>Hello and welcome to another tutorial on vb.net. Today in this tutorial i will be teaching u all how to use the progressbar component in visual basic 2005, 2008, 2010.&lt;br /&gt;&lt;br /&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; width: 411px; height: 224px;" src="http://2.bp.blogspot.com/_ZtaUYxomOV0/S-_C97P9rBI/AAAAAAAAADA/iM5fBXwcwRM/s400/16-05-2010+8-02-37+PM.png" alt="" id="BLOGGER_PHOTO_ID_5471806441410898962" border="0" /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Requirements:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;2 ProgressBar - ProgressBar1, ProgressBar2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;1 Label - Label1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;4 Buttons (|&lt;&lt;,&lt;&lt;,&gt;&gt;,&gt;&gt;|)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;Codes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Public Class Form1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Dim myprogress As Integer&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        ProgressBar1.Style = ProgressBarStyle.Marquee&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        ProgressBar2.Style = ProgressBarStyle.Continuous&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        ProgressBar2.Step = 1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Timer1.Enabled = True&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        ProgressBar1.Minimum = 0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        ProgressBar1.Maximum = 100&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        ProgressBar1.Value = 0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        If ProgressBar1.Value &lt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            ProgressBar1.Value += 5&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        If ProgressBar1.Value &gt; 0 Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            ProgressBar1.Value -= 5&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        ProgressBar1.Value = 100&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        ProgressBar1.Value = 0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Form1_MouseWheel(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseWheel&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        If e.Delta &gt; -1 Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            If ProgressBar1.Value &lt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;                ProgressBar1.Value += 5&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            If ProgressBar1.Value &gt; 0 Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;                ProgressBar1.Value -= 5&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        ProgressBar2.Value = myprogress&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        If myprogress &lt; myprogress =" myprogress"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        Label1.Text = "Installing = " &amp;amp; myprogress &amp;amp; "%"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        If myprogress = 100 Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Label1.Text = "Complete"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            ProgressBar1.Style = ProgressBarStyle.Continuous&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            ProgressBar1.Value = 0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            Timer1.Enabled = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End Class&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;_________________________________________________________________________&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Here is the video tutorial:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="730" height="510"&gt;&lt;param name="movie" value="http://www.youtube.com/v/TYWB7RAjrSk&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x402061&amp;color2=0x9461ca&amp;hd=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/TYWB7RAjrSk&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x402061&amp;color2=0x9461ca&amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="730" height="510"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1946406147807042875-8068919254280977939?l=mrvbdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mrvbdude.blogspot.com/feeds/8068919254280977939/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mrvbdude.blogspot.com/2010/05/progressbar-visual-basic-vbnet-detailed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/8068919254280977939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/8068919254280977939'/><link rel='alternate' type='text/html' href='http://mrvbdude.blogspot.com/2010/05/progressbar-visual-basic-vbnet-detailed.html' title='ProgressBar Visual Basic {VB.net} Detailed Tutorial'/><author><name>MrVBDude</name><uri>http://www.blogger.com/profile/16570724568258591891</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://4.bp.blogspot.com/_ZtaUYxomOV0/S-AyEeBogEI/AAAAAAAAACI/uVuhCM2P9Ks/S220/820.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_ZtaUYxomOV0/S-_C97P9rBI/AAAAAAAAADA/iM5fBXwcwRM/s72-c/16-05-2010+8-02-37+PM.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1946406147807042875.post-6578119355614930027</id><published>2010-05-06T19:26:00.011+10:00</published><updated>2010-05-26T23:53:22.773+10:00</updated><title type='text'>Hit Enter to Activate a Button Tutorial  Visual Basic {VB.net}</title><content type='html'>Hello and welcome people to another VB.net tutorial. Today in this video tutorial i will be showing u all how to activate or enable or press button when the enter key is pressed on the keyboard.&lt;br /&gt;&lt;br /&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center;  width: 368px; height: 241px;" src="http://4.bp.blogspot.com/_ZtaUYxomOV0/S-KPki_Rv4I/AAAAAAAAACo/VoglhiFt8ys/s400/enter+to+activate+button+tutorial.png" alt="" id="BLOGGER_PHOTO_ID_5468090755611475842" border="0" /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;REQUIREMENTS:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;A button&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;A textbox&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;Codes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Public Class Form1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        MsgBox(TextBox1.Text, vbInformation, "MrVBDude")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        AcceptButton = Button1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End Class&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;_________________________________________________________________________&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Here is the video tutorial:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;br /&gt;&lt;object width="730" height="510"&gt;&lt;param name="movie" value="http://www.youtube.com/v/ESr8jbUTn0I&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x402061&amp;amp;color2=0x9461ca&amp;amp;hd=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/ESr8jbUTn0I&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x402061&amp;amp;color2=0x9461ca&amp;amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="730" height="510"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1946406147807042875-6578119355614930027?l=mrvbdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mrvbdude.blogspot.com/feeds/6578119355614930027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mrvbdude.blogspot.com/2010/05/vbnethit-enter-to-activate-button.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/6578119355614930027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/6578119355614930027'/><link rel='alternate' type='text/html' href='http://mrvbdude.blogspot.com/2010/05/vbnethit-enter-to-activate-button.html' title='Hit Enter to Activate a Button Tutorial  Visual Basic {VB.net}'/><author><name>MrVBDude</name><uri>http://www.blogger.com/profile/16570724568258591891</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://4.bp.blogspot.com/_ZtaUYxomOV0/S-AyEeBogEI/AAAAAAAAACI/uVuhCM2P9Ks/S220/820.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_ZtaUYxomOV0/S-KPki_Rv4I/AAAAAAAAACo/VoglhiFt8ys/s72-c/enter+to+activate+button+tutorial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1946406147807042875.post-7783349943840190122</id><published>2010-05-01T00:45:00.009+10:00</published><updated>2010-05-26T23:53:35.410+10:00</updated><title type='text'>Format Date and Time Detailed Tutorial Visual Basic {VB.net}</title><content type='html'>Hi all today i will be showing u all how to format date and time in VB.net.&lt;br /&gt;&lt;br /&gt;First of all add one label, 5 timers and 5 buttons to your project.&lt;br /&gt;And then watch the video and images carefully to understand how the form is setup.&lt;br /&gt;&lt;br /&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center;  width: 506px; height: 299px;" src="http://4.bp.blogspot.com/_ZtaUYxomOV0/S9-tzFGy9rI/AAAAAAAAAB8/YxvgESfHBaQ/s400/format+time+and+date.png" alt="" id="BLOGGER_PHOTO_ID_5467279565706688178" border="0" /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;Codes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Public Class Form1&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;br /&gt;Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;br /&gt;Timer2.Enabled = False&lt;br /&gt;Timer3.Enabled = False&lt;br /&gt;Timer4.Enabled = False&lt;br /&gt;Timer5.Enabled = False&lt;br /&gt;Timer1.Enabled = True&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick&lt;br /&gt;Label1.Text = TimeOfDay&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click&lt;br /&gt;Timer1.Enabled = False&lt;br /&gt;Timer3.Enabled = False&lt;br /&gt;Timer4.Enabled = False&lt;br /&gt;Timer5.Enabled = False&lt;br /&gt;Timer2.Enabled = True&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Private Sub Timer2_Tick(ByVal  sender As System.Object, ByVal e As System.EventArgs) Handles  Timer2.Tick&lt;br /&gt;Label1.Text = Format(TimeOfDay, "h:mm:ss tt")&lt;br /&gt;End Sub&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;br /&gt;Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click&lt;br /&gt;Timer1.Enabled = False&lt;br /&gt;Timer2.Enabled = False&lt;br /&gt;Timer4.Enabled = False&lt;br /&gt;Timer5.Enabled = False&lt;br /&gt;Timer3.Enabled = True&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick&lt;br /&gt;&lt;br /&gt;Label1.Text = DateTime.Now.Date&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click&lt;br /&gt;&lt;br /&gt;Timer1.Enabled = False&lt;br /&gt;Timer2.Enabled = False&lt;br /&gt;Timer3.Enabled = False&lt;br /&gt;Timer5.Enabled = False&lt;br /&gt;Timer4.Enabled = True&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Timer4_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer4.Tick&lt;br /&gt;Label1.Text = Format(DateTime.Now.Date, "MM/dd/yy")&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click&lt;br /&gt;Timer1.Enabled = False&lt;br /&gt;Timer2.Enabled = False&lt;br /&gt;Timer4.Enabled = False&lt;br /&gt;Timer3.Enabled = False&lt;br /&gt;Timer5.Enabled = True&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Timer5_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer5.Tick&lt;br /&gt;Label1.Text = Format(DateTime.Now, "dd/MM/yyyy")&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;End Class&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;_________________________________________________________________________&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Here is the detailed video tutorial (Voice):&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="730" height="510"&gt;&lt;param name="movie" value="http://www.youtube.com/v/bL8v6Ct38xQ&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x3a3a3a&amp;amp;color2=0x999999&amp;amp;hd=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/bL8v6Ct38xQ&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x3a3a3a&amp;amp;color2=0x999999&amp;amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="730" height="510"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1946406147807042875-7783349943840190122?l=mrvbdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mrvbdude.blogspot.com/feeds/7783349943840190122/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mrvbdude.blogspot.com/2010/04/vbnet-convert-time-from-24-hour-to-12.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/7783349943840190122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/7783349943840190122'/><link rel='alternate' type='text/html' href='http://mrvbdude.blogspot.com/2010/04/vbnet-convert-time-from-24-hour-to-12.html' title='Format Date and Time Detailed Tutorial Visual Basic {VB.net}'/><author><name>MrVBDude</name><uri>http://www.blogger.com/profile/16570724568258591891</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://4.bp.blogspot.com/_ZtaUYxomOV0/S-AyEeBogEI/AAAAAAAAACI/uVuhCM2P9Ks/S220/820.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_ZtaUYxomOV0/S9-tzFGy9rI/AAAAAAAAAB8/YxvgESfHBaQ/s72-c/format+time+and+date.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1946406147807042875.post-3659636503052641256</id><published>2010-04-30T19:00:00.007+10:00</published><updated>2010-05-16T19:39:20.540+10:00</updated><title type='text'>Textbox - Select All (Ctrl+A) and Scroll Visual Basic {VB.net}</title><content type='html'>Hi all today i will be showing u all how to select all text in a textbox and also how to make a ur text scroll in the textbox&lt;br /&gt;&lt;br /&gt;Here are all the codes:&lt;br /&gt;&lt;br /&gt;Alright so first of all, u insert one textbox in your form and then u go into the events and choose Keypress event of the textbox and in the code u type in:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;Codes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Public Class Form1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;    Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;        If e.KeyChar = Convert.ToChar(1) Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            DirectCast(sender, TextBox).SelectAll()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;            e.Handled = True&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End Class&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;_________________________________________________________________________&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Here is the video tutorial:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="730" height="510"&gt;&lt;param name="movie" value="http://www.youtube.com/v/U-ZAYPkTDn8&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x3a3a3a&amp;amp;color2=0x999999&amp;amp;hd=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/U-ZAYPkTDn8&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x3a3a3a&amp;amp;color2=0x999999&amp;amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="730" height="510"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1946406147807042875-3659636503052641256?l=mrvbdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mrvbdude.blogspot.com/feeds/3659636503052641256/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mrvbdude.blogspot.com/2010/04/vbnet-textbox-select-all-ctrla-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/3659636503052641256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/3659636503052641256'/><link rel='alternate' type='text/html' href='http://mrvbdude.blogspot.com/2010/04/vbnet-textbox-select-all-ctrla-and.html' title='Textbox - Select All (Ctrl+A) and Scroll Visual Basic {VB.net}'/><author><name>MrVBDude</name><uri>http://www.blogger.com/profile/16570724568258591891</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://4.bp.blogspot.com/_ZtaUYxomOV0/S-AyEeBogEI/AAAAAAAAACI/uVuhCM2P9Ks/S220/820.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1946406147807042875.post-2566237106856948934</id><published>2010-04-30T01:02:00.009+10:00</published><updated>2010-05-16T19:44:14.870+10:00</updated><title type='text'>Run Program on Windows Startup Tutorial  Visual Basic {VB.net}</title><content type='html'>Hi all, today i will be teaching u all how to add and read value from registry in vb.net (visual basic 2008)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;Codes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Public Class Form1&lt;br /&gt;&lt;br /&gt;Private Sub Button1_Click(ByVal sender As  System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;br /&gt;Dim regKey As Microsoft.Win32.RegistryKey&lt;br /&gt;Dim KeyName As String =  "Test"&lt;br /&gt;Dim KeyValue As String = "C:\test\test.exe"&lt;br /&gt;regKey=Microsoft.Win32.Registry.LocalMachine.Op&lt;wbr&gt;enSubKey("Software\Microsoft\Window\CurrentVersion\Run",  True)&lt;br /&gt;If regKey.GetValue(KeyName) = Nothing Then&lt;br /&gt;MsgBox("No value  found")&lt;br /&gt;regKey.SetValue(KeyName, KeyValue,  Microsoft.Win32.RegistryValueKind.String&lt;wbr&gt;)&lt;br /&gt;MsgBox("keyValue " &amp;amp;  KeyName &amp;amp; " has been created")&lt;br /&gt;Else&lt;br /&gt;MsgBox("This Program  already exists", vbInformation, "Information")   &lt;br /&gt;End If   &lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;End  Class&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;_________________________________________________________________________&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Here is the video tutorial:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="730" height="510"&gt;&lt;param name="movie" value="http://www.youtube.com/v/30zvbZWUVPk&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x402061&amp;amp;color2=0x9461ca&amp;amp;hd=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/30zvbZWUVPk&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x402061&amp;amp;color2=0x9461ca&amp;amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="730" height="510"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1946406147807042875-2566237106856948934?l=mrvbdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mrvbdude.blogspot.com/feeds/2566237106856948934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mrvbdude.blogspot.com/2010/04/vbnet-run-program-on-windows-startup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/2566237106856948934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/2566237106856948934'/><link rel='alternate' type='text/html' href='http://mrvbdude.blogspot.com/2010/04/vbnet-run-program-on-windows-startup.html' title='Run Program on Windows Startup Tutorial  Visual Basic {VB.net}'/><author><name>MrVBDude</name><uri>http://www.blogger.com/profile/16570724568258591891</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://4.bp.blogspot.com/_ZtaUYxomOV0/S-AyEeBogEI/AAAAAAAAACI/uVuhCM2P9Ks/S220/820.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1946406147807042875.post-8666209180431296317</id><published>2010-04-29T23:59:00.008+10:00</published><updated>2010-05-16T19:49:29.736+10:00</updated><title type='text'>Email Validation Entered Into Textbox Tutorial Visual Basic {VB.net}</title><content type='html'>Hi all once again, today i will be teaching u all how to validate the email entered into a text box or label to be in correct email format. We will be using Regex to make email validation.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;{Note: Remember to rename the "Name" of the textbox1 to "email" or it won't work and please check all the names of the labels from the video tutorial or alter it according to your project.}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;Codes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;'General Declarations&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Imports System.Text.RegularExpressions&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;____________________________________________________________________&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Dim FoundMatch As Boolean&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Try&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;      FoundMatch = Regex.IsMatch(email.Text, "\A(?:[a-z0-9!#$%&amp;amp;'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&amp;amp;'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)\Z", RegexOptions.IgnoreCase)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;  Catch ex As ArgumentException&lt;/span&gt; &lt;span style="color: rgb(255, 204, 51);"&gt;'Syntax error in the regular expression&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End Try&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;If Not FoundMatch Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;      Label2.Text=("Not a Valid Email Address")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);font-size:100%;" &gt;Else&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Label2.Text("Valid Email Address")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End Class&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;_________________________________________________________________________&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Here is the video tutorial:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="730" height="510"&gt;&lt;param name="movie" value="http://www.youtube.com/v/-f-478xS4P8&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;hd=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/-f-478xS4P8&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="730" height="510"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1946406147807042875-8666209180431296317?l=mrvbdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mrvbdude.blogspot.com/feeds/8666209180431296317/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mrvbdude.blogspot.com/2010/04/vbnet-email-validation-entered-into.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/8666209180431296317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/8666209180431296317'/><link rel='alternate' type='text/html' href='http://mrvbdude.blogspot.com/2010/04/vbnet-email-validation-entered-into.html' title='Email Validation Entered Into Textbox Tutorial Visual Basic {VB.net}'/><author><name>MrVBDude</name><uri>http://www.blogger.com/profile/16570724568258591891</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://4.bp.blogspot.com/_ZtaUYxomOV0/S-AyEeBogEI/AAAAAAAAACI/uVuhCM2P9Ks/S220/820.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1946406147807042875.post-2102867008246122131</id><published>2010-04-29T23:40:00.006+10:00</published><updated>2010-05-26T23:54:32.980+10:00</updated><title type='text'>Visual Basic Send Email - Smtp Tutorial - {VB.net}</title><content type='html'>Hello and welcome to another quick VB.net tutorial, today in this tutorial i will be showing u all how to make a VB.net program that sends an email using SMTP client.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; width: 303px; height: 385px;" src="http://1.bp.blogspot.com/_ZtaUYxomOV0/S9pP9iy2k_I/AAAAAAAAABM/q01sPa5NwA8/s400/Send+Email+Tutorial.png" alt="" id="BLOGGER_PHOTO_ID_5465769016498230258" border="0" /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;Codes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Imports System.Net.Mail&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;____________________________________________________________________&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Public Class Form1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;  Private Sub btn_submit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_submit.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;      If TB_Name.Text = "" Or TB_Subject.Text = "" Or TB_Cmt.Text = "" Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;          MsgBox("Name, Subject and Comment are required fields", vbCritical, "Error") 'This code here test if there is no text in the textbox and if there is no text, it will give an error msgbox and wont progress through the rest of the steps until the user inputs some data in all textboxes.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Else&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Try&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Dim Mail As New MailMessage 'This code declares a new MailMessage&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;              Mail.From = New MailAddress("mrvbdude2@gmail") 'This is u, who is sending the message to someone else on gmail.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;              Mail.To.Add("mrvbdude2@gmail.com") 'This is the person u are sending the message to, u should use gmail address here..!&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;              Mail.Subject = TB_Subject.Text &amp;amp; " - " &amp;amp; TB_Name.Text 'Subject of the MailMessage&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;              Mail.Body = TB_Cmt.Text 'Body of the MailMessage&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;              Dim smtp As New SmtpClient("smtp.gmail.com") 'Declares new SMTPCLIENT&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;              smtp.Port = 587 ' SMTP port no.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;              smtp.EnableSsl = True&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;              smtp.Credentials = New System.Net.NetworkCredential("YOUR GMAIL USERNAME ID HERE", "YOUR GMAIL PASSWORD HERE") 'ur gmail login information&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;              smtp.Send(Mail) 'sends the message u created&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;MsgBox("Sent Successfully", vbInformation, "Thank you") 'confirmation - message has been send successfully&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Catch ex As Exception 'Just incase program runs into error&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;              MsgBox("There was an error, the program will close now!!", vbCritical, "Fatal error")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End Try&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End Class&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;_________________________________________________________________________&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Here is the video tutorial:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="730" height="510"&gt;&lt;param name="movie" value="http://www.youtube.com/v/Zsn5Eiqpj9E&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;hd=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/Zsn5Eiqpj9E&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="730" height="510"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1946406147807042875-2102867008246122131?l=mrvbdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mrvbdude.blogspot.com/feeds/2102867008246122131/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mrvbdude.blogspot.com/2010/04/vbnet-send-email-tutorial-mrvbdude.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/2102867008246122131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/2102867008246122131'/><link rel='alternate' type='text/html' href='http://mrvbdude.blogspot.com/2010/04/vbnet-send-email-tutorial-mrvbdude.html' title='Visual Basic Send Email - Smtp Tutorial - {VB.net}'/><author><name>MrVBDude</name><uri>http://www.blogger.com/profile/16570724568258591891</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://4.bp.blogspot.com/_ZtaUYxomOV0/S-AyEeBogEI/AAAAAAAAACI/uVuhCM2P9Ks/S220/820.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_ZtaUYxomOV0/S9pP9iy2k_I/AAAAAAAAABM/q01sPa5NwA8/s72-c/Send+Email+Tutorial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1946406147807042875.post-4839138944761225731</id><published>2010-04-28T12:13:00.007+10:00</published><updated>2010-05-16T19:56:56.005+10:00</updated><title type='text'>How to make form move Borderless (No Title Bar) Visual Basic {VB.net}</title><content type='html'>Hi all, Today i will be showing u all how to make your vb.net form move without any borders (title bar), so lets begin..!&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;Codes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Public Class Form1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;#Region " Global Variables "&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;   Dim Point As New System.Drawing.Point()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;   Dim X, Y As Integer&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;#End Region&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;#Region " GUI "&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;   Private Sub Form_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseMove&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;       If e.Button = MouseButtons.Left Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;           Point = Control.MousePosition&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;           Point.X = Point.X - (X)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;           Point.Y = Point.Y - (Y)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;           Me.Location = Point&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;       End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;   End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;   Private Sub Form_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;       X = Control.MousePosition.X - Me.Location.X&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;       Y = Control.MousePosition.Y - Me.Location.Y&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;   End Sub&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;#End Region&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End Class&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;_________________________________________________________________________&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;2. Minimize Box: Add one PictureBox component and choose get the image of minimize button from internet and choose that image. Now double click that image and type in the following code.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;Minimize Box:&lt;/span&gt;&lt;br /&gt;WindowState = FormWindowState.Minimized&lt;/span&gt;&lt;br /&gt;--------------------------------------------------&lt;br /&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;Close box:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;me.close&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;_________________________________________________________________________&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Here is the video tutorial:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="730" height="510"&gt;&lt;param name="movie" value="http://www.youtube.com/v/aIo32SqHjK8&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;hd=1&amp;amp;"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/aIo32SqHjK8&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;hd=1&amp;amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="730" height="510"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1946406147807042875-4839138944761225731?l=mrvbdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mrvbdude.blogspot.com/feeds/4839138944761225731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mrvbdude.blogspot.com/2010/04/how-to-make-form-move-borderless.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/4839138944761225731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/4839138944761225731'/><link rel='alternate' type='text/html' href='http://mrvbdude.blogspot.com/2010/04/how-to-make-form-move-borderless.html' title='How to make form move Borderless (No Title Bar) Visual Basic {VB.net}'/><author><name>MrVBDude</name><uri>http://www.blogger.com/profile/16570724568258591891</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://4.bp.blogspot.com/_ZtaUYxomOV0/S-AyEeBogEI/AAAAAAAAACI/uVuhCM2P9Ks/S220/820.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1946406147807042875.post-4955544692046618397</id><published>2010-04-22T17:35:00.005+10:00</published><updated>2010-05-26T23:54:50.735+10:00</updated><title type='text'>Listbox Tutorial - Add, Remove Item, Save, Reload List Visual Basic {VB.net}</title><content type='html'>Listbox Tutorial - Source Code&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;Codes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Public Class Form1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;   Private Sub cmdAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdAdd.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;       lb1.Items.Add(tb1.Text)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;       lb1.SelectedIndex = lb1.SelectedIndex + 1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;   Private Sub cmdRem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdRem.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;       lb1.Items.Remove(lb1.SelectedItem)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;   Private Sub cmdSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSave.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;       IO.Directory.CreateDirectory("C:\Test")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;       Dim w As New IO.StreamWriter("C:\Test\test.txt")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;       Dim i As Integer&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;For i = 0 To lb1.Items.Count - 1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;           w.WriteLine(lb1.Items.Item(i))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;       Next&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;       w.Close()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;   End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;   Private Sub cmdLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdLoad.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;       Dim r As New IO.StreamReader("C:\Test\test.txt")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;While (r.Peek() &gt; -1)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;           lb1.Items.Add(r.ReadLine)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End While&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;       r.Close()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;End Class&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;_________________________________________________________________________&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Here is the video tutorial:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="730" height="510"&gt;&lt;param name="movie" value="http://www.youtube.com/v/-Ft075JVkXU&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;hd=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/-Ft075JVkXU&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="730" height="510"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1946406147807042875-4955544692046618397?l=mrvbdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mrvbdude.blogspot.com/feeds/4955544692046618397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mrvbdude.blogspot.com/2010/04/listbox-tutorial-add-remove-item-save.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/4955544692046618397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1946406147807042875/posts/default/4955544692046618397'/><link rel='alternate' type='text/html' href='http://mrvbdude.blogspot.com/2010/04/listbox-tutorial-add-remove-item-save.html' title='Listbox Tutorial - Add, Remove Item, Save, Reload List Visual Basic {VB.net}'/><author><name>MrVBDude</name><uri>http://www.blogger.com/profile/16570724568258591891</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://4.bp.blogspot.com/_ZtaUYxomOV0/S-AyEeBogEI/AAAAAAAAACI/uVuhCM2P9Ks/S220/820.jpg'/></author><thr:total>0</thr:total></entry></feed>
