<?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-8899471835777924744</id><updated>2011-11-28T06:29:03.256+07:00</updated><category term='VB.NET'/><category term='Blogspot'/><title type='text'>Learn from Code</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://learnfromcode.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8899471835777924744/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://learnfromcode.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Coojack</name><uri>http://www.blogger.com/profile/15863598722054175923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8899471835777924744.post-3525094759048214961</id><published>2009-05-12T15:28:00.013+07:00</published><updated>2009-05-13T20:06:51.191+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Blogspot'/><title type='text'>How To Add “Read More” in Blogspot</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vSB8Wh2UhRo/SgrFewTg-tI/AAAAAAAAAKs/mO8W-Aycsps/s1600-h/Capture-3.JPG"&gt;&lt;img style="cursor: pointer; width: 320px; height: 112px;" src="http://4.bp.blogspot.com/_vSB8Wh2UhRo/SgrFewTg-tI/AAAAAAAAAKs/mO8W-Aycsps/s320/Capture-3.JPG" alt="" id="BLOGGER_PHOTO_ID_5335293840727276242" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Step #1 - Update Your Template Code&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;First you need to edit your existing code so I recommend copying and pasting it into notepad or any text editor. Also, it’s smart at this point to create a backup of your template just in case something goes wrong. Now do a search (CTRL + F) within the text editor for the following code &lt;span style="color: rgb(255, 0, 0);"&gt;post-header-line-1&lt;/span&gt;. This is the default code that Blogger includes but some custom templates remove or change this code so you might have trouble finding it. If you can’t locate this text then try searching for &lt;span style="color: rgb(255, 0, 0);"&gt;&amp;lt;data:post.body/&amp;gt;&lt;/span&gt; instead. Your template will for sure have this since it’s the tag that actually prints the body of your post.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;Now depending on which code you were able to find will determine how easy the next steps will be. You might need to do some detective work first in order to get this working properly in your custom template. The idea is to get this new code into your template before the &lt;span style="color: rgb(255, 0, 0);"&gt;&amp;lt;data:post.body/&amp;gt;&lt;/span&gt; tag. Keep reading and hopefully the explanation will illustrate the concept clear enough so you are able to adapt this hack to your custom template.&lt;br /&gt;&lt;br /&gt;Add the following code below the &lt;span style="color: rgb(255, 0, 0);"&gt;&amp;lt;div class=’post-header-line-1′/&amp;gt;&lt;/span&gt; and&lt;span style="color: rgb(255, 0, 0);"&gt; &amp;lt;div class=’post-header-line’&amp;gt;&lt;/span&gt; tags if you’ve got both.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;&amp;lt;b:if cond='data:blo&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;g.pageType == "item"'&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;&lt;br /&gt;&amp;lt;style&amp;gt;.&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;fullpost&lt;/span&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;{display:inline;}&amp;lt;/style&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;&amp;lt;p&amp;gt;&amp;lt;data:post.body/&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;&amp;lt;b:else/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;&amp;lt;style&amp;gt;.fullpost{display:none;}&amp;lt;/style&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;Yes, there are supposed to be two &lt;span style="color: rgb(255, 0, 0);"&gt;&amp;lt;/b:if&amp;gt;&lt;/span&gt; tags in the above code so don’t think it’ s a mistake. The result should look like this:&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.eblogtemplates.com/wp-content/uploads/2008/02/new-code-block-2.png"&gt;&lt;img style="cursor: pointer; width: 448px; height: 107px;" src="http://www.eblogtemplates.com/wp-content/uploads/2008/02/new-code-block-2.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;This code will be the same no matter what template you are using. Just make sure it goes below the &lt;span style="color: rgb(255, 0, 0);"&gt;&amp;lt;data:pos&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;t.body/&amp;gt;&lt;/span&gt; as shown in the image above.&lt;br /&gt;&lt;br /&gt;Now let’s look at what the final result should be. Here’s the updated code block you just worked on all put together:&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.eblogtemplates.com/wp-content/uploads/2008/02/new-code-block-3.png"&gt;&lt;img style="cursor: pointer; width: 450px; height: 244px;" src="http://www.eblogtemplates.com/wp-content/uploads/2008/02/new-code-block-3.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span id="the-content"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span id="the-content"&gt;Ok, you’re all done editing the template code. Paste it back into your Blogger html window and save it. If you get an error, you made a mistake. The most common mistake is to accidentally delete a &amp;amp;g&lt;/span&gt;&lt;span id="the-content"&gt;t; or &amp;lt; while pasting in the new code. If it saved successfully, it’s time to move onto the nex&lt;/span&gt;&lt;span id="the-content"&gt;t step and modify a quick Blogger format setting.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4&gt;Step #2 - Add a Class Tag in Your Default Post Template&lt;/h4&gt;&lt;div style="text-align: justify;"&gt;&lt;span id="the-content"&gt;For th&lt;/span&gt;&lt;span id="the-content"&gt;is step, you need to navigate in your Blogger account to "Settings" =&amp;gt; "Formatting" and scroll all the way down to the bottom. It’s the last option called "Post Template". You’re going to paste in the&lt;/span&gt;&lt;span id="the-content"&gt; following code:&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span id="the-content"&gt;&lt;br /&gt;&amp;lt;span class="fullpost"&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="the-content"&gt;&amp;lt;/span&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span id="the-content"&gt;You’ll want to keep the spaces in there which will make sense later. After you save this, it will look like this:&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span id="the-content"&gt;&lt;br /&gt;&lt;/span&gt; &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.eblogtemplates.com/wp-content/uploads/2008/02/post-template2.png"&gt;&lt;img style="cursor: pointer; width: 476px; height: 192px;" src="http://www.eblogtemplates.com/wp-content/uploads/2008/02/post-template2.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Step #3 - Create a New Post&lt;/h4&gt;&lt;div style="text-align: justify;"&gt;&lt;span id="the-content"&gt;Ok, we’ve got everything all setup so it’s time to go and test it out. Hopefully you’ve got a new post in mind for your blog. If not, then we’ll just create a test post which you can later delete. When you cl&lt;/span&gt; &lt;span id="the-content"&gt;ick on the “Posting” tab, you’ll notice that the post text area is now pre-populated with the &lt;span style="color: rgb(255, 0, 0);"&gt;&amp;lt;span class=”fullpost”&amp;gt;&lt;/span&gt; and &lt;span style="color: rgb(255, 0, 0);"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt; tags. If not, then you didn’t save it properly so go back and re-read step #2.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span id="the-content"&gt;So when writing your new post, anything you put above the &lt;span style="color: rgb(255, 0, 0);"&gt;&amp;lt;span class=”fullpost”&amp;gt;&lt;/span&gt; tag will be the teaser&lt;/span&gt;&lt;span id="the-content"&gt; text. The main body of your post needs to go in between the &lt;span style="color: rgb(255, 0, 0);"&gt;&amp;lt;span class=”fullpost”&amp;gt;&lt;/span&gt; and &lt;span style="color: rgb(255, 0, 0);"&gt;&amp;amp;&lt;/span&gt;&lt;/span&gt;&lt;span id="the-content"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;lt;/span&amp;gt;&lt;/span&gt; tags in order for the “read more…” link to work properly. See the screenshot below. Sometimes pictures illustrate better than words.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span id="the-content"&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.eblogtemplates.com/wp-content/uploads/2008/02/post-template-result2.png"&gt;&lt;img style="cursor: pointer; width: 550px; height: 433px;" src="http://www.eblogtemplates.com/wp-content/uploads/2008/02/post-template-result2.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span id="the-content"&gt;&lt;p&gt;Now publish or preview your post to see the “read more” hack working on your blog. If it doesn’t show up for some reason, go back and run through the steps again. Most likely you pasted the code blocks in the wrong places. It’s difficult to troubleshoot these issues since each template can be unique so please make sure to double-check your template before asking for help in the comments section below.&lt;/p&gt;&lt;/span&gt; &lt;span id="the-content"&gt; &lt;p&gt;Here’s the live post with the “read more…” link properly working based on the text I used above in the post text area.&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;h4&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.eblogtemplates.com/wp-content/uploads/2008/02/post-results.png"&gt;&lt;img style="cursor: pointer; width: 371px; height: 162px;" src="http://www.eblogtemplates.com/wp-content/uploads/2008/02/post-results.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;/h4&gt;&lt;span id="the-content"&gt;&lt;/span&gt;&lt;h4&gt;Additional Info&lt;/h4&gt;&lt;div style="text-align: justify;"&gt;If you want to go back and update your old posts with this new “read more…” feature you can. Just go back and edit each post manually. Essentially you’ll need to paste in the &lt;span style="color: rgb(255, 0, 0);"&gt;&amp;lt;span class=”fullpost”&amp;gt;&lt;/span&gt; and &lt;span style="color: rgb(255, 0, 0);"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt; tags breaking apart the post into two parts. &lt;/div&gt;&lt;p style="text-align: justify;"&gt;For some posts, you might not want to use this feature at all. If that’s the case, just delete the &lt;span style="color: rgb(255, 0, 0);"&gt;&amp;lt;span class=”fullpost”&amp;gt;&lt;/span&gt; and &lt;span style="color: rgb(255, 0, 0);"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt; tags from within your new post text area. Then your new post will show up entirely just like it used to before you implemented.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-weight: bold;"&gt;Reference&lt;/span&gt;:&lt;br /&gt;&lt;a href="http://www.eblogtemplates.com/how-to-add-the-blogger-read-more-expandable-posts-link/"&gt;http://www.eblogtemplates.com/how-to-add-the-blogger-read-more-expandable-posts-link/&lt;/a&gt;&lt;br /&gt;&lt;/p&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/8899471835777924744-3525094759048214961?l=learnfromcode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnfromcode.blogspot.com/feeds/3525094759048214961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnfromcode.blogspot.com/2009/05/how-to-add-read-more-in-blogspot.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8899471835777924744/posts/default/3525094759048214961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8899471835777924744/posts/default/3525094759048214961'/><link rel='alternate' type='text/html' href='http://learnfromcode.blogspot.com/2009/05/how-to-add-read-more-in-blogspot.html' title='How To Add “Read More” in Blogspot'/><author><name>Coojack</name><uri>http://www.blogger.com/profile/15863598722054175923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_vSB8Wh2UhRo/SgrFewTg-tI/AAAAAAAAAKs/mO8W-Aycsps/s72-c/Capture-3.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8899471835777924744.post-6729723066897616364</id><published>2009-05-07T20:31:00.012+07:00</published><updated>2009-05-13T20:09:17.630+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB.NET'/><title type='text'>Create login</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vSB8Wh2UhRo/SgrEzktcKKI/AAAAAAAAAKc/bOBawObzt7w/s1600-h/Capture-2.JPG"&gt;&lt;img style="cursor: pointer; width: 200px; height: 104px;" src="http://3.bp.blogspot.com/_vSB8Wh2UhRo/SgrEzktcKKI/AAAAAAAAAKc/bOBawObzt7w/s200/Capture-2.JPG" alt="" id="BLOGGER_PHOTO_ID_5335293098880411810" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;An application that are uses by many user, need a better security level to it. One of the security level on the application is a login screen. In this tutorial, I will try to introduce on creating a login screen to an application that are create it with visual basic.NET 2005. This codes is not a clean code and still have many bugs into it, so if anyone can create a better login screen/better code writing, please write me an e-mail at coojack@gmail.com, and I will update this post.&lt;br /&gt;&lt;/div&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;Let start with some basic, create a database &lt;span style="font-weight: bold;"&gt;login.mdb&lt;/span&gt; with table &lt;span style="font-weight: bold;"&gt;Users&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vSB8Wh2UhRo/SgQ1fc98yMI/AAAAAAAAAKM/br0T3mqswqY/s1600-h/Capture-1.jpg"&gt;&lt;img style="cursor: pointer; width: 200px; height: 92px;" src="http://4.bp.blogspot.com/_vSB8Wh2UhRo/SgQ1fc98yMI/AAAAAAAAAKM/br0T3mqswqY/s200/Capture-1.jpg" alt="" id="BLOGGER_PHOTO_ID_5333446673181755586" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now open visual studio.net 2005 and create a new project called &lt;span style="font-weight: bold;"&gt;login&lt;/span&gt;. Before we do anything else, first of all move the database we just created into the folder of login project. Move the database into folder &lt;span style="font-weight: bold;"&gt;login\login\bin\debug&lt;/span&gt;&lt;br /&gt;Ok continue, Change the properties of &lt;span style="font-weight: bold;"&gt;form1.vb&lt;/span&gt; :&lt;br /&gt;&lt;br /&gt;&lt;table style="border-collapse: collapse; width: 283pt;" border="1" cellpadding="0" cellspacing="0" width="377"&gt;&lt;col style="width: 92pt;" width="122"&gt;  &lt;col style="width: 191pt;" width="255"&gt;  &lt;tbody&gt;&lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt; width: 92pt;" height="20" width="122"&gt;BackColor&lt;/td&gt;   &lt;td style="width: 191pt;" width="255"&gt;LightBlue&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;Font+&lt;/td&gt;   &lt;td&gt;Microsoft Sans Serif, 8.25pt, Style=Bold&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;FormBorderStyle&lt;/td&gt;   &lt;td&gt;Fixed3D&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;Text&lt;/td&gt;   &lt;td&gt;Login&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;Name&lt;/td&gt;   &lt;td&gt;F_Login&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;StartPosition&lt;/td&gt;   &lt;td&gt;CenterScreen&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;ControlBox&lt;/td&gt;   &lt;td class="xl63"&gt;FALSE&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;ShowInTaskbar&lt;/td&gt;   &lt;td class="xl63"&gt;FALSE&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Add 2 labels, 2 textboxs and 2 buttons with properties :&lt;br /&gt;&lt;br /&gt;Label1&lt;br /&gt;&lt;table style="border-collapse: collapse; width: 254pt;" border="1" cellpadding="0" cellspacing="0" width="339"&gt;&lt;col style="width: 63pt;" width="84"&gt;  &lt;col style="width: 191pt;" width="255"&gt;  &lt;tbody&gt;&lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt; width: 63pt;" height="20" width="84"&gt;BackColor&lt;span style=""&gt; &lt;/span&gt;&lt;/td&gt;   &lt;td style="width: 191pt;" width="255"&gt;LightBlue&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;Font+&lt;span style=""&gt; &lt;/span&gt;&lt;/td&gt;   &lt;td&gt;Microsoft Sans Serif, 8.25pt, style=Bold&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;Text&lt;/td&gt;   &lt;td&gt;&lt;span style=""&gt; &lt;/span&gt;Username&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Label2&lt;br /&gt;&lt;table style="border-collapse: collapse; width: 260pt;" border="1" cellpadding="0" cellspacing="0" width="347"&gt;&lt;col style="width: 69pt;" width="92"&gt;  &lt;col style="width: 191pt;" width="255"&gt;  &lt;tbody&gt;&lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt; width: 69pt;" height="20" width="92"&gt;BackColor&lt;/td&gt;   &lt;td style="width: 191pt;" width="255"&gt;LightBlue&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;Font+&lt;/td&gt;   &lt;td&gt;Microsoft Sans Serif, 8.25pt, style=Bold&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;Text&lt;/td&gt;   &lt;td&gt;&lt;span style=""&gt; &lt;/span&gt;Password&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Textbox1&lt;br /&gt;&lt;table style="border-collapse: collapse; width: 260pt;" border="1" cellpadding="0" cellspacing="0" width="347"&gt;&lt;col style="width: 69pt;" width="92"&gt;  &lt;col style="width: 191pt;" width="255"&gt;  &lt;tbody&gt;&lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt; width: 69pt;" height="20" width="92"&gt;BorderStyle&lt;/td&gt;   &lt;td style="width: 191pt;" width="255"&gt;Fixed3D&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;Name&lt;/td&gt;   &lt;td&gt;txtUser&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Textbox2&lt;br /&gt;&lt;table style="border-collapse: collapse; width: 268pt;" border="1" cellpadding="0" cellspacing="0" width="358"&gt;&lt;col style="width: 77pt;" width="103"&gt;  &lt;col style="width: 191pt;" width="255"&gt;  &lt;tbody&gt;&lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt; width: 77pt;" height="20" width="103"&gt;BorderStyle&lt;/td&gt;   &lt;td style="width: 191pt;" width="255"&gt;Fixed3D&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;Name&lt;/td&gt;   &lt;td&gt;txtPassword&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;PasswordChar&lt;/td&gt;   &lt;td&gt;*&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Button1&lt;br /&gt;&lt;table style="border-collapse: collapse; width: 268pt;" border="1" cellpadding="0" cellspacing="0" width="358"&gt;&lt;col style="width: 77pt;" width="103"&gt;  &lt;col style="width: 191pt;" width="255"&gt;  &lt;tbody&gt;&lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt; width: 77pt;" height="20" width="103"&gt;BackColor&lt;/td&gt;   &lt;td style="width: 191pt;" width="255"&gt;&lt;span style=""&gt; &lt;/span&gt;LightBlue&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;Font+&lt;/td&gt;   &lt;td&gt;&lt;span style=""&gt; &lt;/span&gt;Microsoft Sans Serif, 8.25pt,   style=Bold&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;Flatstyle&lt;/td&gt;   &lt;td&gt;&lt;span style=""&gt; &lt;/span&gt;Flat&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;Text&lt;/td&gt;   &lt;td&gt;&lt;span style=""&gt; &lt;/span&gt;Login&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;Name&lt;/td&gt;   &lt;td&gt;&lt;span style=""&gt; &lt;/span&gt;btnlogin&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Button2&lt;br /&gt;&lt;table style="border-collapse: collapse; width: 268pt;" border="1" cellpadding="0" cellspacing="0" width="358"&gt;&lt;col style="width: 77pt;" width="103"&gt;  &lt;col style="width: 191pt;" width="255"&gt;  &lt;tbody&gt;&lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt; width: 77pt;" height="20" width="103"&gt;BackColor&lt;/td&gt;   &lt;td style="width: 191pt;" width="255"&gt;&lt;span style=""&gt; &lt;/span&gt;LightBlue&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;Font+&lt;/td&gt;   &lt;td&gt;&lt;span style=""&gt; &lt;/span&gt;Microsoft Sans Serif, 8.25pt,   style=Bold&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;Flatstyle&lt;/td&gt;   &lt;td&gt;&lt;span style=""&gt; &lt;/span&gt;Flat&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;Text&lt;/td&gt;   &lt;td&gt;&lt;span style=""&gt; &lt;/span&gt;Cancel&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;Name&lt;/td&gt;   &lt;td&gt;&lt;span style=""&gt; &lt;/span&gt;btnbatal&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;After finish changing every properties for the forms and controls, now add one more form and change the name into &lt;span style="font-weight: bold;"&gt;F_Menu.vb&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Now, before we hit into the code, first of all, lets create a module to connect between database and application. Create new module and change its name to &lt;span style="font-weight: bold;"&gt;DataConnection.vb&lt;/span&gt;. Write this code to DataConnection.vb :&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:85%;" &gt; &lt;span style="font-family:courier new;"&gt;Imports System.Data&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;Imports&lt;br /&gt;System.Data.OleDb&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Namespace&lt;br /&gt;AccessData&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;    Public Class DatabaseConnection&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;        Dim conect As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Application.StartupPath + "\Login.mdb;")&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;Public Function open() As OleDbConnection&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;conect.Open()&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;     &lt;br /&gt;Return conect&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;End Function&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;Public Function close() As OleDbConnection&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;conect.Close()&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;Return conect&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        End Function&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;End Class&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;End Namespace&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After that, create another module, and change its name to &lt;span style="font-weight: bold;"&gt;Module.vb.&lt;/span&gt; Write this code in it :&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt;Module _Module&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;Public intResponse, msg As Integer&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;Public Username, Password As String&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;End Module&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After all the module have been created, lets fill the F_login form with code :&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;Imports System.Data&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;Imports System.Data.OleDb&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;Public Class F_Login&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;#Region "Deklarasi"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;    Dim myConnection As New AccessData.databaseconnection&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;    Dim objconnection As OleDbConnection&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;    Dim objcommand As OleDbCommand&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;    Dim objdataadapter As OleDbDataAdapter&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;    Dim objdatareader As OleDbDataReader&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;    Dim strsql As String&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;    Dim objdataset As New DataSet&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;    Dim objdatatable As New DataTable&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;    Dim F_Menu As New F_Menu&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;#End Region&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;#Region "Sub"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;    Sub CekUser()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        objdatatable.Clear()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        strsql = ("SELECT * FROM Users WHERE username= '" &amp;amp; Trim(txtUser.Text) &amp;amp; "'")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        objcommand = New OleDbCommand&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        objcommand.Connection = myConnection.open&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        objcommand.CommandType = CommandType.Text&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        objcommand.CommandText = strsql&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        objdataadapter = New OleDbDataAdapter(objcommand)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        objdataadapter.Fill(objdataset, "MDT_user")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        objdatatable = objdataset.Tables("MDT_user")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        myConnection.close()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;    Sub Find_user()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        objcommand = myConnection.open.createcommand&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        objcommand.CommandText = ("Select username, password From users where username='" &amp;amp; Trim(txtUser.Text) &amp;amp; "'")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        objdatareader = objcommand.ExecuteReader&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        objdatareader.Read()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        Username = objdatareader.Item("username")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        Password = objdatareader.Item("Password")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        myConnection.close()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;    Sub login()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        Try&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;            'Mencari data user berdasarkan Username yang dimasukkan pada txtuser&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;            CekUser()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;            'tidak boleh mengkosongkan username &amp;amp; password&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;            If txtUser.Text.Trim() = "" And txtPassword.Text.Trim() = "" Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                MsgBox("Masukan Username dan Password", MsgBoxStyle.OkOnly, "POS")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                txtUser.Focus()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;            ElseIf txtUser.Text = "" Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                MsgBox("Masukan Username ", MsgBoxStyle.OkOnly, "POS")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                txtUser.Focus()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;            ElseIf txtPassword.Text = "" Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                MsgBox("Masukan password ", MsgBoxStyle.OkOnly, "POS")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                txtPassword.Focus()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;            Else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                'jika username dan password tidak kosong, maka program akan mengecek&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                'apakah data yang dicari tersedia pada objDataTable.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                'Jika Tidak (baris data = 0 ) maka akan keluar pesan &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                'bahwa username tidak ada&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                If objdatatable.Rows.Count &lt;= 0 Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                    MsgBox("Username tidak ada ", MsgBoxStyle.OkOnly, "POS")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                    txtUser.Focus()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                Else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                    'jika data yang di cari ada, maka program akan mencari password&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                    'berdasarkan username yang dimasukkan.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                    Find_user()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                    'jika password yang di masukkan salah atau tidak sama&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                    ' dengan yang ada pada tabel, maka akan keluar pesan dari program&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                    If Password &lt;&gt; Trim(txtPassword.Text) Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                        MsgBox("Password salah!", MsgBoxStyle.OkOnly, "POS")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                        txtPassword.Focus()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                        Exit Sub&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                    Else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                        'Jika benar program akan menampilkan pada form utama&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                        'Me.ShowInTaskbar = False&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                        Me.Hide()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                        F_Menu.ShowDialog()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                        txtUser.Text = ""&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                        txtPassword.Text = ""&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                    End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;                End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;            End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        Catch When Err.Number &lt;&gt; 0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;            MsgBox("Tidak dapat melakukan proses" &amp;amp; vbCrLf &amp;amp; Err.Description)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;            MyConnection.close()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        End Try&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;#End Region&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;    Private Sub btnBatal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBatal.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        intResponse = MessageBox.Show("Apakah anda mau keluar dari program?", Me.Text, MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        If intResponse = MsgBoxResult.Yes Then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;            End&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        Else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;            Exit Sub&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        End If&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;    Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;        login()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;    End Sub&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;End Class&lt;/span&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/8899471835777924744-6729723066897616364?l=learnfromcode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnfromcode.blogspot.com/feeds/6729723066897616364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnfromcode.blogspot.com/2009/05/create-login.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8899471835777924744/posts/default/6729723066897616364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8899471835777924744/posts/default/6729723066897616364'/><link rel='alternate' type='text/html' href='http://learnfromcode.blogspot.com/2009/05/create-login.html' title='Create login'/><author><name>Coojack</name><uri>http://www.blogger.com/profile/15863598722054175923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_vSB8Wh2UhRo/SgrEzktcKKI/AAAAAAAAAKc/bOBawObzt7w/s72-c/Capture-2.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8899471835777924744.post-3584612585196223804</id><published>2009-05-06T11:58:00.002+07:00</published><updated>2009-05-12T18:05:55.039+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB.NET'/><title type='text'>Create a splash screen</title><content type='html'>By adding a splash screen on your application, it will give more professional look to the application that we've created. In this tutorial, I'm going to use Visual Basic.NET 2005 as the development tool to create the splash screen.&lt;br /&gt;&lt;br /&gt;1. Open Visual Studio.NET 2005 and create a new Project&lt;br /&gt;2. Change the name of the form from &lt;span style="font-weight: bold;"&gt;form1&lt;/span&gt; &gt; &lt;span style="font-weight: bold;"&gt;F_Splash&lt;br /&gt;&lt;/span&gt;&lt;span&gt;3. Change the properties from &lt;span style="font-weight: bold;"&gt;F_Splash&lt;/span&gt; with the attributes below :&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;BackColor - White&lt;/li&gt;&lt;li&gt;FormBorderStyle - FixedToolWindow&lt;/li&gt;&lt;li&gt;Text - (empty)&lt;/li&gt;&lt;li&gt;Name - F_Splash&lt;/li&gt;&lt;li&gt;StartPosition - CenterScreen&lt;/li&gt;&lt;li&gt;ControlBox - False&lt;/li&gt;&lt;li&gt;ShowInTaskbar - False&lt;/li&gt;&lt;/ul&gt;4. After changing the properties to the form, add control into it :&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Label - 2&lt;/li&gt;&lt;li&gt;ProgressBar - 1&lt;/li&gt;&lt;li&gt;PictureBox - 1&lt;/li&gt;&lt;/ul&gt;5. Rearrange the controls until it look like this :&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vSB8Wh2UhRo/SgElC_PSqHI/AAAAAAAAAKE/SoGFo5zeMdA/s1600-h/Capture.jpg"&gt;&lt;img style="cursor: pointer; width: 200px; height: 186px;" src="http://1.bp.blogspot.com/_vSB8Wh2UhRo/SgElC_PSqHI/AAAAAAAAAKE/SoGFo5zeMdA/s200/Capture.jpg" alt="" id="BLOGGER_PHOTO_ID_5332584167048915058" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;6.In ProgressBar Property, change the attribute Enabled = &lt;span style="font-weight: bold;"&gt;True&lt;/span&gt;&lt;br /&gt;7&lt;span style="font-weight: bold;"&gt;. &lt;/span&gt;&lt;span&gt;After finish designing the look of the splash screen, add component timer to the F_Splash, and change it name to Splash_Timer&lt;br /&gt;8. Double click the component Splash_Timer and add these code into it:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Private Sub Splash_Timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Splash_Timer.Tick&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;ProgressBar1.Value += 4&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;If ProgressBar1.Value = 100 Then&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt; Splash_Timer.Dispose()&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt; Me.Visible = False&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt; F_Menu.Show()&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;End If&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Reference :&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.ilmukomputer.com/" target="_blank"&gt;http://www.ilmukomputer.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://junindar.blog.com/" target="_blank"&gt;http://junindar.blog.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Source Code :&lt;br /&gt;4shared : &lt;a href="http://www.4shared.com/file/103677840/61a73dc6/SplashScreen.html" target="_blank"&gt;SplashScreen.zip&lt;/a&gt;&lt;br /&gt;Rapidshare : &lt;a href="http://rapidshare.com/files/232057154/SplashScreen.zip.html" target="_blank"&gt;SplashScreen.zip&lt;/a&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/8899471835777924744-3584612585196223804?l=learnfromcode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learnfromcode.blogspot.com/feeds/3584612585196223804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnfromcode.blogspot.com/2009/05/create-splash-screen.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8899471835777924744/posts/default/3584612585196223804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8899471835777924744/posts/default/3584612585196223804'/><link rel='alternate' type='text/html' href='http://learnfromcode.blogspot.com/2009/05/create-splash-screen.html' title='Create a splash screen'/><author><name>Coojack</name><uri>http://www.blogger.com/profile/15863598722054175923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_vSB8Wh2UhRo/SgElC_PSqHI/AAAAAAAAAKE/SoGFo5zeMdA/s72-c/Capture.jpg' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
