<?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-2800143061145110699</id><updated>2012-02-08T19:41:33.207+07:00</updated><category term='Table of Contents'/><category term='VB6 Sample Program'/><category term='Stop Dreaming Start Action'/><category term='VB6 Programming'/><title type='text'>Free Clip of Tips</title><subtitle type='html'>This blog contains tips of VB6 Programming, and other MS Office tips like MS Excel, MS Word, etc. These are 100% free for you.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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>38</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-1506504817686774133</id><published>2010-10-15T13:02:00.002+07:00</published><updated>2010-10-15T13:02:40.126+07:00</updated><title type='text'>Printers - A Practical Buyers Guide - 1</title><content type='html'>&lt;strong&gt;Printers - A Practical Buyers Guide - 1&lt;/strong&gt;&lt;br /&gt;Autosummarize from article “Printers - A Practical Buyers Guide” by Iggy Quazi&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Printers have also become specialised for their intended purpose.It is no longer a case of "a printer is a printer". Inkjet Technology&lt;br /&gt;&lt;br /&gt;Inkjet printers form images by spraying tiny droplets of liquid ink onto paper. A quality inkjet printer can produce very near photo-quality images using specialist photo coated paper. Inkjet ink is specially formulated for specific printer models and their purpose, much technology is involved in the development of these inks to improve print quality, longevity, drying speeds and printing speeds etc. Inkjet printers use anything between two and eight ink cartridges to do their job. Inkjet printers are the best solution for most people and are usually the most cost effective way to print - unless you are printing large volumes.&lt;br /&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;Portable Inkjet Printers &lt;/span&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;These printers are small, lightweight and ideal for people on the move. Although the printing of high quality photographs is usually beyond this type of printer, basic colour printing is of good quality and the quality of text print is mostly outstanding considering the size of these tiny portable A4 printers. These printers are not suitable for high volume printing.&lt;br /&gt;&lt;br /&gt;Inkjet Printers&lt;br /&gt;&lt;br /&gt;The Inkjet Printer is the most commonly used type of printer among home and small business users. With excellent all round printing capabilities, from black &amp;amp; white text print and good colour prints through to very hi-resolution, high quality photographs using Inkjet Photo Printers. Multi-Function Inkjet Printers&lt;br /&gt;&lt;/span&gt;&lt;hr /&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-1506504817686774133?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/1506504817686774133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2010/10/printers-practical-buyers-guide-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/1506504817686774133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/1506504817686774133'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2010/10/printers-practical-buyers-guide-1.html' title='Printers - A Practical Buyers Guide - 1'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-7836789951091010968</id><published>2010-03-27T07:00:00.020+07:00</published><updated>2010-05-07T14:25:08.151+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Sample Program'/><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>Creating a Function to Convert Numbers into Roman Numerals</title><content type='html'>&lt;iframe src="http://rcm.amazon.com/e/cm?t=frclofti-20&amp;o=1&amp;p=8&amp;l=as1&amp;asins=B002DHGMVY&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"&gt;&lt;/iframe&gt;&lt;iframe src="http://rcm.amazon.com/e/cm?t=frclofti-20&amp;o=1&amp;p=8&amp;l=as1&amp;asins=B000HCVR30&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"&gt;&lt;/iframe&gt;&lt;iframe src="http://rcm.amazon.com/e/cm?t=frclofti-20&amp;o=1&amp;p=8&amp;l=as1&amp;asins=B0018QV3OC&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"&gt;&lt;/iframe&gt;&lt;iframe src="http://rcm.amazon.com/e/cm?t=frclofti-20&amp;o=1&amp;p=8&amp;l=as1&amp;asins=B002IJA1DC&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;To create a number of letters we often use roman numerals to indicate the month of making the letter.For example, the letter number is '001/Int/III/2010' where the symbol 'III' indicates that the letter was made in March 2010.&lt;br /&gt;&lt;br /&gt;For this we need a function that can convert an integer number from 1 to 12 into roman numerals. In the Visual Basic programming, we can easily create such a function. Well, here we'll show an example program to create such functions, as well as examples of how to use it. &lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;li&gt;First open your VB program and select standard exe form&lt;br /&gt;&lt;li&gt;Click the View menu&lt;br /&gt;&lt;li&gt;Click the Code menu&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/S61Ncr-vASI/AAAAAAAAAK0/vPPIAjBIHo8/s1600/Function+VB+Integer+to+Roman.PNG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 328px; height: 254px;" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/S61Ncr-vASI/AAAAAAAAAK0/vPPIAjBIHo8/s400/Function+VB+Integer+to+Roman.PNG" border="0" alt=""id="BLOGGER_PHOTO_ID_5453099879053066530" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;li&gt;Write the Visual Basic (VB) program code below&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#3333ff;"&gt;Function IToR(i As Integer) As String&lt;br /&gt;Dim s As String&lt;br /&gt;s = "I   II  III IV  V   VI  VII VIIIIX  X   XI  XII "&lt;br /&gt;IToR = Mid(s, (i - 1) * 4 + 1, 4)&lt;br /&gt;End Function&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;Click the View menu&lt;br /&gt;&lt;li&gt;Click the Object menu&lt;br /&gt;&lt;li&gt;Put two label controls, two textboxes and a CommandButton to the form&lt;br /&gt;&lt;li&gt;Change the Caption of first label into 'Month'&lt;br /&gt;&lt;li&gt;Change the Caption of second label into 'Roman Numeral'&lt;br /&gt;&lt;li&gt;Change the name of the first textbox into 'txtMonth'&lt;br /&gt;&lt;li&gt;Change the name of the second textbox into 'txtRomNum'&lt;br /&gt;&lt;li&gt;Remove texts on the first and second textboxes&lt;br /&gt;&lt;li&gt;Change the name of the CommandButton into 'cmdConvert'&lt;br /&gt;&lt;li&gt;Change the CommandButton caption into 'Convert'&lt;br /&gt;So your Screen design will look like the image below:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/S61NlOmBGDI/AAAAAAAAAK8/yXnLSr7HB8U/s1600/Function+VB+Integer+to+Roman+1.PNG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 245px;" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/S61NlOmBGDI/AAAAAAAAAK8/yXnLSr7HB8U/s400/Function+VB+Integer+to+Roman+1.PNG" border="0" alt=""id="BLOGGER_PHOTO_ID_5453100025783588914" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;li&gt;Double click CommandButton 'Convert'&lt;br /&gt;&lt;li&gt;Write below Visual Basic (VB) program coding&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#3333ff;"&gt;Private Sub cmdConvert_Click()&lt;br /&gt;txtRomNum.Text = IToR(Val(txtMonth.Text))&lt;br /&gt;End Sub&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;Okay, you have completed the program&lt;br /&gt;Now it's time to test&lt;br /&gt;&lt;li&gt;Run your program&lt;br /&gt;&lt;li&gt;Type a number such as 8 in the first textbox&lt;br /&gt;&lt;li&gt;Click CommandButton 'Convert'&lt;br /&gt;Consider the results&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_8Lv2D47OOvg/S61Nx8egSZI/AAAAAAAAALE/__R5afcEe9Y/s1600/Function+VB+Integer+to+Roman+2.PNG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 389px; height: 177px;" src="http://3.bp.blogspot.com/_8Lv2D47OOvg/S61Nx8egSZI/AAAAAAAAALE/__R5afcEe9Y/s400/Function+VB+Integer+to+Roman+2.PNG" border="0" alt=""id="BLOGGER_PHOTO_ID_5453100244258539922" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-7836789951091010968?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/7836789951091010968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2010/03/creating-function-to-convert-numbers.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/7836789951091010968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/7836789951091010968'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2010/03/creating-function-to-convert-numbers.html' title='Creating a Function to Convert Numbers into Roman Numerals'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/S61Ncr-vASI/AAAAAAAAAK0/vPPIAjBIHo8/s72-c/Function+VB+Integer+to+Roman.PNG' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-2621494161002595593</id><published>2009-09-10T11:21:00.013+07:00</published><updated>2010-05-07T14:25:27.083+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>What's an Event in Visual Basic?</title><content type='html'>An event is an action that recognized by a control or a form. For examples moving mouse over a control, clicking a mouse, pressing a key, etc. You can write code in an event that runs when the event occurs. &lt;br /&gt;&lt;br /&gt;Every object in Visual Basic has a set of event that it recognizes. Each object has specific events. Here are list of some events than owned by each object:&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;Object name: &lt;strong&gt;CommnandButton&lt;/strong&gt;&lt;br /&gt;Events owned: &lt;strong&gt;Click, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData and OLEStartDrag.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Object name: TextBox&lt;br /&gt;Events owned: Change, Click, DblClick, DragDrop, DragOver, GotFocus,&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-2621494161002595593?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/2621494161002595593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/09/whats-event-in-visual-basic.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/2621494161002595593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/2621494161002595593'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/09/whats-event-in-visual-basic.html' title='What&apos;s an Event in Visual Basic?'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-3294243598689168174</id><published>2009-09-07T07:39:00.020+07:00</published><updated>2010-05-07T14:25:41.711+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>When You Should Set the Name Property in VB6 Programming?</title><content type='html'>One of the important thing is &lt;strong&gt;setting the Name of object property&lt;/strong&gt; when you developing VB6 applications. And in the previous posting I've written that you should &lt;a href='http://tipsclip.blogspot.com/2009/08/how-to-name-objects-in-vb6-programming.html'target='_blank'&gt;set the name with adopting the Standard Naming Convensions&lt;/a&gt; in order easier for other developer in understanding your program. And also you should give the descriptive name that according to the purpose of the object.&lt;br /&gt;&lt;br /&gt;Now, the question is "when you should set the name property?". The recommended time to set the Name property is as soon as after you create the object. Why this time? Because if you set the name (change the name) property after you write coding for the object, it makes the code in your applications will loss its association with the control.  &lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;When you change a name property of an object, the sub procedure that associated with the object won't be changed automatically, so code seems lost. For example: You have a TextBox named Text1, and you have written some codes in Sub Text1_Change() and Sub Text1_LostFocus(). When you change the name to other name (for example txtFirstName), the name of Sub Text1_Change() and Sub Text1_LostFocus() won't be changed to new name automatically. So the association between the object and the code is lost.&lt;br /&gt;&lt;br /&gt;Now, what you should do if you have to change the object name after you write your code that associated with the object?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-3294243598689168174?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/3294243598689168174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/09/when-you-should-set-name-property-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/3294243598689168174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/3294243598689168174'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/09/when-you-should-set-name-property-in.html' title='When You Should Set the Name Property in VB6 Programming?'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-5854742578478127790</id><published>2009-09-05T13:20:00.022+07:00</published><updated>2010-05-07T14:25:54.486+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>How to Return Property Value in VB6 Programming?</title><content type='html'>It is often needed to return property value of an object to perform a calculation or some other task in your Visual Basic Application. And in the most previous sample program I've written use this way to perform some calculations, and also some other tasks. For example in the sample program of &lt;a href='http://tipsclip.blogspot.com/2009/09/how-to-convert-degree-from-celcius-to.html'target='_blank'&gt;How to Convert Degree from Celcius to Another in VB 6 Programming?&lt;/a&gt; also returning property value to be calculated, and then the result of calculation to set the property value of other object.&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;To return the value of an object property, you can use below syntax:&lt;br /&gt;&lt;strong&gt;Variable = Object.Property&lt;/strong&gt;&lt;br /&gt;Or&lt;br /&gt;&lt;strong&gt;Object2.Property = Object1.Property&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Note:&lt;/u&gt;&lt;br /&gt;You can use the first syntax if you want to return the value of an object property into a variable, so the value will be kept in the variable.&lt;br /&gt;&lt;br /&gt;You should use the second syntax if you want to return the value to set another object property value.&lt;br /&gt;&lt;br /&gt;In the most sample program I've written in the previous postings use the second syntax to return value of an object property and perform the calculation, then the result kept as value of another object property.&lt;br /&gt;&lt;br /&gt;Notice below sample code:&lt;br /&gt;&lt;strong&gt;Text2.Text = Val(Text1.Text) * 1.8 + 32&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The value of &lt;em&gt;Text1.Text&lt;/em&gt; is returned and used as an operand in the calcuation phrase and the result of calculation then used as value of &lt;em&gt;Text2.Text&lt;/em&gt;. In this example you don't need a variable to keep the calculation result.&lt;br /&gt;&lt;br /&gt;Another example code:&lt;br /&gt;&lt;em&gt;strName = txtName.Text&lt;/em&gt;&lt;br /&gt;&lt;em&gt;lblName.Caption = txtName.Text&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Any comment? Please leave it in the below comment box.&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-5854742578478127790?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/5854742578478127790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/09/how-to-return-property-value-in-vb6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/5854742578478127790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/5854742578478127790'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/09/how-to-return-property-value-in-vb6.html' title='How to Return Property Value in VB6 Programming?'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-2615880355710794850</id><published>2009-09-04T07:43:00.027+07:00</published><updated>2010-05-07T14:26:11.562+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>Setting Properties of Object at Run Time - Sample Code</title><content type='html'>&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/SqCZkVdRFxI/AAAAAAAAAKM/2YunWOgDAT8/s1600-h/Setting+Properties+at+Run+Time.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 155px;" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/SqCZkVdRFxI/AAAAAAAAAKM/2YunWOgDAT8/s400/Setting+Properties+at+Run+Time.JPG" border="0" alt="Setting Object Properties at Run Time"id="BLOGGER_PHOTO_ID_5377466804594611986" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In this posting I'll write a sample program of VB6 that demonstrates how to set object properties at run time. However some of property must be set at design time. Okay, follow below instructions:&lt;br /&gt;&lt;li&gt;Open your Visual Basic 6 application&lt;br /&gt;&lt;li&gt;Select a standard exe project type (let with default name Form1 and Project1)&lt;br /&gt;&lt;li&gt;Add your Form1 with 7 Labels, 6 TextBoxes, a CommandButton and a ComboBox&lt;br /&gt;Your design maybe look like the image on the top of this posting.&lt;br /&gt;&lt;li&gt;Change the Names of the TextBoxes into txtFName, txtAddr1, txtAddr2, txtProvince, txtCity and txtCountry&lt;br /&gt;&lt;li&gt;Change the Name of the ComboBox into cboGender&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;li&gt;Change the Name of the CommandButton into cmdRegister&lt;br /&gt;&lt;li&gt;Double-click anywhere on your Form1 area to create a Sub Form_Load()&lt;br /&gt;&lt;li&gt;Write below program coding in the Sub Form_Load() area&lt;br /&gt;&lt;pre&gt;'setting Form1 caption&lt;br /&gt;Form1.Caption = "New Member's Registration Form"&lt;br /&gt;&lt;br /&gt;'setting the properties of Title (Label1)&lt;br /&gt;With Label1&lt;br /&gt;.Caption = "New Member's Registration Form"&lt;br /&gt;.FontSize = 18&lt;br /&gt;.FontUnderline = True&lt;br /&gt;.Left = 360&lt;br /&gt;.Top = 120&lt;br /&gt;.Width = 5775&lt;br /&gt;.Height = 495&lt;br /&gt;End With&lt;br /&gt;&lt;br /&gt;'setting the properties of Full Name label (Label2)&lt;br /&gt;With Label2&lt;br /&gt;.Caption = "Full Name"&lt;br /&gt;.FontSize = 10&lt;br /&gt;.Top = 960&lt;br /&gt;.Left = 480&lt;br /&gt;.Height = 375&lt;br /&gt;.Width = 1215&lt;br /&gt;End With&lt;br /&gt;&lt;br /&gt;'setting the properties of Gender label (Label3)&lt;br /&gt;With Label3&lt;br /&gt;.Caption = "Gender"&lt;br /&gt;.FontSize = 10&lt;br /&gt;.Top = 1320&lt;br /&gt;.Left = 480&lt;br /&gt;.Height = 375&lt;br /&gt;.Width = 1215&lt;br /&gt;End With&lt;br /&gt;&lt;br /&gt;'setting the properties of Address1 label (Label4)&lt;br /&gt;With Label4&lt;br /&gt;.Caption = "Adress1"&lt;br /&gt;.FontSize = 10&lt;br /&gt;.Top = 1680&lt;br /&gt;.Left = 480&lt;br /&gt;.Height = 375&lt;br /&gt;.Width = 1215&lt;br /&gt;End With&lt;br /&gt;&lt;br /&gt;'setting the properties of Address2 label (Label5)&lt;br /&gt;With Label5&lt;br /&gt;.Caption = "Adress2"&lt;br /&gt;.FontSize = 10&lt;br /&gt;.Top = 2040&lt;br /&gt;.Left = 480&lt;br /&gt;.Height = 375&lt;br /&gt;.Width = 1215&lt;br /&gt;End With&lt;br /&gt;&lt;br /&gt;'setting the properties of City label (Label6)&lt;br /&gt;With Label6&lt;br /&gt;.Caption = "City"&lt;br /&gt;.FontSize = 10&lt;br /&gt;.Top = 2400&lt;br /&gt;.Left = 480&lt;br /&gt;.Height = 375&lt;br /&gt;.Width = 1215&lt;br /&gt;End With&lt;br /&gt;&lt;br /&gt;'setting the properties of Province label (Label7)&lt;br /&gt;With Label7&lt;br /&gt;.Caption = "Province"&lt;br /&gt;.FontSize = 10&lt;br /&gt;.Top = 2760&lt;br /&gt;.Left = 480&lt;br /&gt;.Height = 375&lt;br /&gt;.Width = 1215&lt;br /&gt;End With&lt;br /&gt;&lt;br /&gt;'setting the properties of Country label (Label8)&lt;br /&gt;With Label8&lt;br /&gt;.Caption = "Country"&lt;br /&gt;.FontSize = 10&lt;br /&gt;.Top = 3120&lt;br /&gt;.Left = 480&lt;br /&gt;.Height = 375&lt;br /&gt;.Width = 1215&lt;br /&gt;End With&lt;br /&gt;&lt;br /&gt;'setting the properties of txtFName TextBox&lt;br /&gt;With txtFName&lt;br /&gt;.Text = ""&lt;br /&gt;.FontSize = 10&lt;br /&gt;.Top = 960&lt;br /&gt;.Left = 1680&lt;br /&gt;.Height = 330&lt;br /&gt;.Width = 4335&lt;br /&gt;End With&lt;br /&gt;&lt;br /&gt;'setting the properties of cboGender ComboBox&lt;br /&gt;With cboGender&lt;br /&gt;.Text = ""&lt;br /&gt;.FontSize = 10&lt;br /&gt;.Top = 1320&lt;br /&gt;.Left = 1680&lt;br /&gt;'      .Height = 330&lt;br /&gt;.Width = 1575&lt;br /&gt;.AddItem "Female"&lt;br /&gt;.AddItem "Male"&lt;br /&gt;End With&lt;br /&gt;&lt;br /&gt;'setting the properties of txtAddr1 TextBox&lt;br /&gt;With txtAddr1&lt;br /&gt;.Text = ""&lt;br /&gt;.FontSize = 10&lt;br /&gt;.Top = 1680&lt;br /&gt;.Left = 1680&lt;br /&gt;.Height = 330&lt;br /&gt;.Width = 4335&lt;br /&gt;End With&lt;br /&gt;&lt;br /&gt;'setting the properties of txtAddr2 TextBox&lt;br /&gt;With txtAddr2&lt;br /&gt;.Text = ""&lt;br /&gt;.FontSize = 10&lt;br /&gt;.Top = 2040&lt;br /&gt;.Left = 1680&lt;br /&gt;.Height = 330&lt;br /&gt;.Width = 4335&lt;br /&gt;End With&lt;br /&gt;&lt;br /&gt;'setting the properties of txtCity TextBox&lt;br /&gt;With txtCity&lt;br /&gt;.Text = ""&lt;br /&gt;.FontSize = 10&lt;br /&gt;.Top = 2400&lt;br /&gt;.Left = 1680&lt;br /&gt;.Height = 330&lt;br /&gt;.Width = 4335&lt;br /&gt;End With&lt;br /&gt;&lt;br /&gt;'setting the properties of txtProvince TextBox&lt;br /&gt;With txtProvince&lt;br /&gt;.Text = ""&lt;br /&gt;.FontSize = 10&lt;br /&gt;.Top = 2760&lt;br /&gt;.Left = 1680&lt;br /&gt;.Height = 330&lt;br /&gt;.Width = 4335&lt;br /&gt;End With&lt;br /&gt;&lt;br /&gt;'setting the properties of txtCountry TextBox&lt;br /&gt;With txtCountry&lt;br /&gt;.Text = ""&lt;br /&gt;.FontSize = 10&lt;br /&gt;.Top = 3120&lt;br /&gt;.Left = 1680&lt;br /&gt;.Height = 330&lt;br /&gt;.Width = 4335&lt;br /&gt;End With&lt;br /&gt;&lt;br /&gt;'setting the properties of cmdRegister CommandButton&lt;br /&gt;With cmdRegister&lt;br /&gt;.Caption = "Register"&lt;br /&gt;.FontSize = 14&lt;br /&gt;.Top = 3720&lt;br /&gt;.Left = 2880&lt;br /&gt;.Height = 495&lt;br /&gt;.Width = 1695&lt;br /&gt;End With&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Test your program by running it.&lt;br /&gt;Your program should like below screenshot.&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_8Lv2D47OOvg/SqCZ97fMRMI/AAAAAAAAAKU/gAtTXB5eSAo/s1600-h/Setting+Properties+at+Run+Time+01.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 302px;" src="http://2.bp.blogspot.com/_8Lv2D47OOvg/SqCZ97fMRMI/AAAAAAAAAKU/gAtTXB5eSAo/s400/Setting+Properties+at+Run+Time+01.JPG" border="0" alt="Setting Object Properties at Run Time"id="BLOGGER_PHOTO_ID_5377467244299961538" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-2615880355710794850?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/2615880355710794850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/09/setting-properties-of-object-at-run.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/2615880355710794850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/2615880355710794850'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/09/setting-properties-of-object-at-run.html' title='Setting Properties of Object at Run Time - Sample Code'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/SqCZkVdRFxI/AAAAAAAAAKM/2YunWOgDAT8/s72-c/Setting+Properties+at+Run+Time.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-6781787467571583989</id><published>2009-09-03T13:12:00.020+07:00</published><updated>2010-05-07T14:26:26.526+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Sample Program'/><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>How to Convert Degree from Celcius to Another in VB 6 Programming?</title><content type='html'>&lt;p&gt;In this posting I will tell you a simple VB programming tips "How to convert degree / temperature  from Celcius to another one", so the base temperature is Celcius. The temperature will be converted into Fahrenheit, Rheamur and Kelvin. As we know that we have three conversion formulas are (in Celcius base):&lt;br /&gt;&lt;span style="color:#330099;"&gt;&lt;strong&gt;Fahrenheit = ( Celcius X 1.8 ) + 32&lt;br /&gt;Rheamur = Celcius X 0.8&lt;br /&gt;Kelvin = Celcius + 273.15&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;How to apply these three formulas in simple VB6 programming? It's just an easy thing to do! You can do it just with a simple VB program. Please follow below instructions for your tips!&lt;br /&gt;&lt;li&gt;Create a VB project for example Project1&lt;br /&gt;&lt;li&gt;Create a VB standard form for example Form1&lt;br /&gt;&lt;li&gt;Create 5 labels for example Label1, Label2, Label3, Label4, Label5&lt;br /&gt;&lt;li&gt;Go to Label1 properties by clicking Label1 object, and then change Label1 Caption into "Degree Conversion", and change Font Size into 14.&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;li&gt;Go to Label2 properties, and find Label2 Caption and change the value into "Celcius"&lt;br /&gt;&lt;li&gt;Go to Label3 properties, and then change Label3 Caption into "Fahrenheit"&lt;br /&gt;&lt;li&gt;Go to Label4 properties, and then change Label4 Caption into "Rheamur"&lt;br /&gt;&lt;li&gt;Go to Label5 properties, and then change Label5 Caption into "Kelvin"&lt;br /&gt;&lt;li&gt;Create 4 text boxes for example Text1, Text2, Text3, Text4&lt;br /&gt;&lt;li&gt;Create a command button for example Command1&lt;br /&gt;&lt;li&gt;Go to Command1 properties, and change Command1 caption into "Convert"&lt;br /&gt;&lt;br /&gt;So your screen design will look like below image:&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/SmqG9HGQ-YI/AAAAAAAAAB0/lwIlAuZS0qc/s1600-h/Convert+Degree+01.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5362246690773465474" style="WIDTH: 395px; CURSOR: hand; HEIGHT: 267px" alt="Design Simple VB Program Degree Conversion from Celcius" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/SmqG9HGQ-YI/AAAAAAAAAB0/lwIlAuZS0qc/s400/Convert+Degree+01.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Now, let's write the program coding.&lt;br /&gt;Double click any where in Form1 area to create a Sub Form_Load()&lt;br /&gt;Write down below program coding in the Sub Form_Load() area&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#3333ff;"&gt;    'to clear text boxes text&lt;br /&gt;Text1.Text = ""&lt;br /&gt;Text2.Text = ""&lt;br /&gt;Text3.Text = ""&lt;br /&gt;Text4.Text = ""&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;Double click Command1 command button to create a Sub Command1_Click()&lt;br /&gt;Write down below program coding in the Sub Command1_Click() area&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#3333ff;"&gt;    Text2.Text = Val(Text1.Text) * 1.8 + 32&lt;br /&gt;Text3.Text = Val(Text1.Text) * 0.8&lt;br /&gt;Text4.Text = Val(Text1.Text) + 273.15&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;So your program will look like the following list:&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#009900;"&gt;&lt;strong&gt;Private Sub Command1_Click()&lt;/strong&gt;&lt;br /&gt;Text2.Text = Val(Text1.Text) * 1.8 + 32&lt;br /&gt;Text3.Text = Val(Text1.Text) * 0.8&lt;br /&gt;Text4.Text = Val(Text1.Text) + 273.15&lt;br /&gt;&lt;strong&gt;End Sub&lt;/strong&gt;&lt;/p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;strong&gt;Private Sub Form_Load()&lt;/strong&gt;&lt;br /&gt;'to clear text boxes text&lt;br /&gt;Text1.Text = ""&lt;br /&gt;Text2.Text = ""&lt;br /&gt;Text3.Text = ""&lt;br /&gt;Text4.Text = ""&lt;br /&gt;&lt;strong&gt;End Sub&lt;/strong&gt;&lt;/p&gt;&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;Now, you can test your program by clicking Start button on your VB toolbar to check whether your program is correct or not.&lt;br /&gt;&lt;li&gt;Type a number in Text1 for example 15 (in the text box with label "Celcius")&lt;br /&gt;&lt;li&gt;Click Command1 command button (with label "Convert")&lt;br /&gt;If the results are 59 in Text2 (Fahrenheit), 12 in Text3 (Rheamur), and 288.15 in Text4 (Kelvin), it means that your program is correct and running properly.&lt;br /&gt;Look at below image for your illustration.&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/SmqHP_8txtI/AAAAAAAAAB8/UN0N-O8Bw80/s1600-h/Convert+Degree+02.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5362247015271876306" style="WIDTH: 394px; CURSOR: hand; HEIGHT: 266px" alt="Simple VB Program Degree Conversion from Celcius" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/SmqHP_8txtI/AAAAAAAAAB8/UN0N-O8Bw80/s400/Convert+Degree+02.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;How do you think, it's an easy simple VB programming tips isn't it?&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-6781787467571583989?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/6781787467571583989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/09/how-to-convert-degree-from-celcius-to.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/6781787467571583989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/6781787467571583989'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/09/how-to-convert-degree-from-celcius-to.html' title='How to Convert Degree from Celcius to Another in VB 6 Programming?'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/SmqG9HGQ-YI/AAAAAAAAAB0/lwIlAuZS0qc/s72-c/Convert+Degree+01.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-943715342526449914</id><published>2009-09-03T11:56:00.021+07:00</published><updated>2010-05-07T14:26:42.222+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Sample Program'/><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>How to Convert Degree from Rheamur to Another in VB 6 Programming?</title><content type='html'>&lt;p&gt;In the previous posting you have learnt a simple VB programming tips &lt;a href="http://tipsclip.blogspot.com/2009/07/how-to-convert-degree-from-fahrenheit.html" target="_blank"&gt;"How to convert degree from Fahrenheit into another one in VB6 programming"&lt;/a&gt;. Now we will learn another simple VB programming tips "How to convert degree / temperature from Rheamur into another one", so the base degree is Rheamur, and will be converted into Celcius, Fahrenheit and Kelvin. We have &lt;a href='http://tipsclip.blogspot.com/2009/09/how-to-convert-degree-from-celcius-to.html'target='_blank'&gt;three previous conversion formulas (Celcius base) as follow:&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#330099;"&gt;&lt;strong&gt;Fahrenheit = ( Celcius X 1.8 ) + 32&lt;br /&gt;Rheamur = Celcius X 0.8&lt;br /&gt;Kelvin = Celcius + 273.15&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;From these formulas, now we can generate new three other formulas (Rheamur base) as the following:&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;span style="color:#330099;"&gt;&lt;strong&gt;Celcius = Rheamur / 0.8&lt;br /&gt;Fahrenheit = ( ( Rheamur / 0.8 ) X 1.8 ) + 32&lt;br /&gt;Kelvin = ( Rheamur / 0.8 ) + 273.15&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now, let's implement above formulas into a simple VB6 programming. Let's go on to the following simple VB programming tips!&lt;br /&gt;&lt;li&gt;Create a VB project for example Project1&lt;br /&gt;&lt;li&gt;Create a VB standard form for example Form1&lt;br /&gt;&lt;li&gt;Create 5 labels for example Label1, Label2, Label3, Label4, Label5&lt;br /&gt;&lt;li&gt;Go to Label1 properties by clicking Label1 object, and then change Label1 Caption into "Degree Conversion", and change Font Size into 14.&lt;br /&gt;&lt;li&gt;Go to Label2 properties, and then change Label2 Caption into "Rheamur"&lt;br /&gt;&lt;li&gt;Go to Label3 properties, and then change Label3 Caption into "Celcius"&lt;br /&gt;&lt;li&gt;Go to Label4 properties, and then change Label4 Caption into "Fahrenheit"&lt;br /&gt;&lt;li&gt;Go to Label5 properties, and then change Label5 Caption into "Kelvin"&lt;br /&gt;&lt;li&gt;Create 4 text boxes for example Text1, Text2, Text3, Text4&lt;br /&gt;&lt;li&gt;Create a command button for example Command1&lt;br /&gt;&lt;li&gt;Go to Command1 properties, and change Command1 caption into "Convert"&lt;br /&gt;&lt;br /&gt;So your screen design should look like below image:&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_8Lv2D47OOvg/SnKyILyBv2I/AAAAAAAAACY/f_vHK7jIrrY/s1600-h/Convert+Degree+05.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 321px; height: 241px;" src="http://2.bp.blogspot.com/_8Lv2D47OOvg/SnKyILyBv2I/AAAAAAAAACY/f_vHK7jIrrY/s400/Convert+Degree+05.JPG" border="0" alt="Screen Design Simple VB6 Program - Degree Conversion from Rheamur"id="BLOGGER_PHOTO_ID_5364545959822999394" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Double click anywhere in the Form1 area to create a Sub Form_Load()&lt;br /&gt;&lt;li&gt;Write down below program coding in the Sub Form_Load() area&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;'to clear the content of text boxes&lt;br /&gt;Text1.Text = ""&lt;br /&gt;Text2.Text = ""&lt;br /&gt;Text3.Text = ""&lt;br /&gt;Text4.Text = ""&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;li&gt;Double click the command button with caption "Convert" to create a Sub Command1_Click()&lt;br /&gt;&lt;li&gt;Write down below program coding in the Sub Command1_Click() area&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;'conversion process&lt;br /&gt;'Text1 represents Rheamur&lt;br /&gt;'Text2 represents Celcius&lt;br /&gt;'Text3 represents Fahrenheit&lt;br /&gt;'Text4 represents Kelvin&lt;br /&gt;Text2.Text = Val(Text1.Text) / 0.8&lt;br /&gt;Text3.Text = ((Val(Text1.Text) / 0.8) * 1.8) + 32&lt;br /&gt;Text4.Text = (Val(Text1.Text) / 0.8) + 273.15&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;So your program will look like below listing:&lt;br /&gt;&lt;span style="color:#009900;"&gt;&lt;strong&gt;Private Sub Command1_Click()&lt;/strong&gt;&lt;br /&gt;'conversion process&lt;br /&gt;'Text1 represents Rheamur&lt;br /&gt;'Text2 represents Celcius&lt;br /&gt;'Text3 represents Fahrenheit&lt;br /&gt;'Text4 represents Kelvin&lt;br /&gt;Text2.Text = Val(Text1.Text) / 0.8&lt;br /&gt;Text3.Text = ((Val(Text1.Text) / 0.8) * 1.8) + 32&lt;br /&gt;Text4.Text = (Val(Text1.Text) / 0.8) + 273.15&lt;br /&gt;&lt;strong&gt;End Sub&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Private Sub Form_Load()&lt;/strong&gt;&lt;br /&gt;'to clear the content of text boxes&lt;br /&gt;Text1.Text = ""&lt;br /&gt;Text2.Text = ""&lt;br /&gt;Text3.Text = ""&lt;br /&gt;Text4.Text = ""&lt;br /&gt;&lt;strong&gt;End Sub&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Ok, your program's finish. Test your program by clicking Start button on your VB toolbar to know whether your program working properly or not.&lt;br /&gt;&lt;li&gt;Type a number in Text1 for example 80 (in the text box with label "Rheamur")&lt;br /&gt;&lt;li&gt;Click command button with label "Convert"&lt;br /&gt;If the results are 100 in Text2 (Celcius), 212 in Text3 (Fahrenheit), and 373.15 in Text4 (Kelvin), it means that your program is correct and working properly.&lt;br /&gt;Look at below image for your illustration.&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_8Lv2D47OOvg/SnKynzo_Q-I/AAAAAAAAACg/mgTISfSgXvs/s1600-h/Convert+Degree+06.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 321px; height: 241px;" src="http://3.bp.blogspot.com/_8Lv2D47OOvg/SnKynzo_Q-I/AAAAAAAAACg/mgTISfSgXvs/s400/Convert+Degree+06.JPG" border="0" alt="Simple Vb Program Degree Conversion From Rheamur"id="BLOGGER_PHOTO_ID_5364546503098450914" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It is very easy and very simple isn't it? Would you like to try it? Ok, in the next posting I'll write another simple tips with VB6 programming. See you in the next posting!&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-943715342526449914?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/943715342526449914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/09/how-to-convert-degree-from-rheamur-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/943715342526449914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/943715342526449914'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/09/how-to-convert-degree-from-rheamur-to.html' title='How to Convert Degree from Rheamur to Another in VB 6 Programming?'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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://2.bp.blogspot.com/_8Lv2D47OOvg/SnKyILyBv2I/AAAAAAAAACY/f_vHK7jIrrY/s72-c/Convert+Degree+05.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-8786951435173478034</id><published>2009-09-02T07:34:00.034+07:00</published><updated>2010-05-07T14:26:58.140+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Sample Program'/><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>How to Set Object Properties at Run Time in VB6?</title><content type='html'>In the previous posting you have learnt &lt;a href='http://tipsclip.blogspot.com/2009/09/how-to-set-properties-of-object-at.html'target='_blank'&gt;how to set object properties at design time&lt;/a&gt;, by clicking the object you want, then change/set the value of property in the properties window. In this posting I'll write how to set/change property value at run time (when program running). And also I'll give you a sample program (code).&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;Below is the syntax how to set an object property at run time:&lt;br /&gt;&lt;strong&gt;Object.Property = Expression&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;For example: &lt;br /&gt;Below statement will set Caption of lblName with "John Smith" at run time.&lt;br /&gt;&lt;em&gt;lblName.Caption = "John Smith"&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;However not all object properties can be set their values at run time, because some object properties can be set just at design time. In the next posting maybe I'll write lists of which object properties that can be set just at design time, which ones that can be set just at run time, and which ones that can be set both at design time and run time.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-8786951435173478034?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/8786951435173478034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/09/how-to-set-object-properties-at-run.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/8786951435173478034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/8786951435173478034'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/09/how-to-set-object-properties-at-run.html' title='How to Set Object Properties at Run Time in VB6?'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-4427051118209280761</id><published>2009-09-01T17:42:00.031+07:00</published><updated>2010-05-07T14:27:18.123+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>How to Set Properties of Object at Design Time in VB6?</title><content type='html'>&lt;a href="http://4.bp.blogspot.com/_8Lv2D47OOvg/Spx4SQ3oQLI/AAAAAAAAAKE/XK9n2U_QQ2A/s1600-h/How+to+Setting+Properties+at+Design+Time.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 290px;" src="http://4.bp.blogspot.com/_8Lv2D47OOvg/Spx4SQ3oQLI/AAAAAAAAAKE/XK9n2U_QQ2A/s400/How+to+Setting+Properties+at+Design+Time.JPG" border="0" alt="Setting Properties of Object in VB6 programming"id="BLOGGER_PHOTO_ID_5376304310334800050" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In the previous posting I've written that you can set the properties of an object at design time. The properties settings that you establish at design time are used as the initial settings each time your application runs. You can set the object properties by using Properties window.&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;Although it is not a must, because you set the properties of course according to your need. But some properties usually you set them at design time, such as:&lt;br /&gt;&lt;strong&gt;BackStyle&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;BorderStyle&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Caption&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Enabled&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;FillColor&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;FillStyle&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Name&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Visible&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;How to set the value of property at design time, you can follow below steps:&lt;br /&gt;&lt;li&gt;At the Form Designer window, select the form or control which you want to set the property by clicking it.&lt;br /&gt;Visual Basic will activate the form or control, and displays the property for the object.&lt;br /&gt;&lt;li&gt;In the Propertis window, select the property you want to set.&lt;br /&gt;&lt;li&gt;Type or select the property setting value you want.&lt;br /&gt;Some property values can be selected from the list, but others must be typed.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-4427051118209280761?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/4427051118209280761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/09/how-to-set-properties-of-object-at.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/4427051118209280761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/4427051118209280761'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/09/how-to-set-properties-of-object-at.html' title='How to Set Properties of Object at Design Time in VB6?'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/Spx4SQ3oQLI/AAAAAAAAAKE/XK9n2U_QQ2A/s72-c/How+to+Setting+Properties+at+Design+Time.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-8195063173461402819</id><published>2009-08-31T16:10:00.044+07:00</published><updated>2010-05-07T14:27:32.794+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>How to Name Objects in VB6 Programming ?</title><content type='html'>When an object is created, a default name based on its object typed will  be given to the object. For example Form1 will be given to object/control with type Form, Text2, Text3,... will be given to Textbox object, Command1, Command2,.... will be given to command button object. You should immediately change the name property of the object to a name that describes the purpose of the control. Changing the Name property of your object with a name that describe the purpose with the object will make the code in your application easier to read and debug.&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;Visual Basic has several Standard Naming Convensions. Although you can assign any name you want to an object, but it is a better to adopt a naming convension and use it ocnsistently throughout your programms. Because it will make easier for others to understand your code.&lt;br /&gt;&lt;br /&gt;Here it is a list of Standard Naming Convensions used in Visual Basic that assign to each type object:&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Check box&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;chk&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;chkDrink&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Combo box&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;cbo&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;cboStore&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Command button&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;cmd&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;cmdSelect&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Data&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;dat&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;datSales&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Directory list box&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;dir&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;dirImage&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Drive list box&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;drv&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;drvSource&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;File list box&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;fil&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;filSource&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Form&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;frm&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;frmEntry&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Frame&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;fra&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;fraOption&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Grid&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;grd&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;grdItem&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Horizontal croll bar&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;hsb&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;hsbTemperature&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Image&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;img&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;imgEmployee&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Label&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;lbl&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;lblName&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Line&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;lin&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;linHorizontal&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;List box&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;lst&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;lstCustomer&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Menu&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;mnu&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;mnuReport&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;OLE&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;ole&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;oleObject2&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Option button&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;opt&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;optCountry&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Picture box&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;pic&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;picFlower&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Shape&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;shp&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;shpSquare&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Text box&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;txt&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;txtName&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Timer&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;tmr&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;tmrStep&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Object type: &lt;strong&gt;Vertical scroll bar&lt;/strong&gt;&lt;br /&gt;The prefix you should use: &lt;strong&gt;vsb&lt;/strong&gt;&lt;br /&gt;Example name: &lt;strong&gt;vsbRate&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-8195063173461402819?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/8195063173461402819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/how-to-name-objects-in-vb6-programming.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/8195063173461402819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/8195063173461402819'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/how-to-name-objects-in-vb6-programming.html' title='How to Name Objects in VB6 Programming ?'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-3752621464640048484</id><published>2009-08-29T07:06:00.071+07:00</published><updated>2010-05-07T14:27:49.405+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>Project Types in Visual Basic</title><content type='html'>&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/Sphxb8z7t2I/AAAAAAAAAJs/Qp_1qBi5naM/s1600-h/Visual+Basic+Project+Templates.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 387px;" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/Sphxb8z7t2I/AAAAAAAAAJs/Qp_1qBi5naM/s400/Visual+Basic+Project+Templates.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5375170880261044066" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A Visual Basic project is made up of the forms, code modules, ActiveX controls, and environmental settings required by an application (you can identify a Visual Basic project from it's extention name ".vbp"). The project lists all the files you need in your application.&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;By default Visual Basic offers you several project templates designed to support the development of different kinds of applications and components. The project templates contain the basic project objects and environment settings you need to create the type of application or component you want to build. When you begin to develop an application, first you have to decide what project template you will use.&lt;br /&gt;&lt;br /&gt;By default you can select the following templates that available in Visual Basic:&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Standard EXE&lt;/strong&gt;&lt;br /&gt;By default Standard EXE projects contain a form, and you can use this project template to develop a stand-alone application.&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Data Project&lt;/strong&gt;&lt;br /&gt;You can use this project template to develop an application that reads or manipulates data from data sources.&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;ActiveX EXE/ActiveX DLL&lt;/strong&gt;&lt;br /&gt;Use ActiveX EXE and ActiveX DLL project templates to develop COM components that expose functionality to other applications. You can use an ActiveX EXE project template if your component will both expose functionality programmatically and run as a stand-alone application. You can use an ActiveX DLL if your component will only be used programatically by another application.&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;ActiveX Control&lt;/strong&gt;&lt;br /&gt;You can use ActiveX Control project template if you want to create a component that designed to be a user interface element in a form or a dialog box.&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;ActiveX Document EXE/ActiveX Document DLL&lt;/strong&gt;&lt;br /&gt;You can use ActiveX Document EXE and ActiveX Document DLL if you want to create a component that designed for use in a document object container, such as Internet Explorer.&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;DHTML Application&lt;/strong&gt;&lt;br /&gt;You can use DHTML Application project template if you want to create a component that can be used on the client side of a Web application.&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;IIS Application&lt;/strong&gt;&lt;br /&gt;You can use IIS Aplication project template if you want to create a component that can be used on the server side of a Web application.&lt;br /&gt;&lt;br /&gt;You can create a new Visual Basic project with below steps:&lt;br /&gt;&lt;li&gt;Start your Visual Basic application&lt;br /&gt;The New Project dialog box appears.&lt;br /&gt;&lt;li&gt;Select the project template you want, then click Open button.&lt;br /&gt;&lt;br /&gt;Or you can follow below steps if your Visual Basic application already open:&lt;br /&gt;&lt;li&gt;Click File menu.&lt;br /&gt;&lt;li&gt;Click New Project menu.&lt;br /&gt;The New Project dialog box appears.&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_8Lv2D47OOvg/Sph1mjHexHI/AAAAAAAAAJ0/3C82V087_Ho/s1600-h/How+to+Create+New+VB+Project.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 391px; height: 189px;" src="http://3.bp.blogspot.com/_8Lv2D47OOvg/Sph1mjHexHI/AAAAAAAAAJ0/3C82V087_Ho/s400/How+to+Create+New+VB+Project.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5375175460388783218" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Select the project template you want, and then click OK button.&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_8Lv2D47OOvg/Sph1z6iGpQI/AAAAAAAAAJ8/9v1ni_zYj0M/s1600-h/How+to+Create+New+VB+Project+01.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 267px;" src="http://4.bp.blogspot.com/_8Lv2D47OOvg/Sph1z6iGpQI/AAAAAAAAAJ8/9v1ni_zYj0M/s400/How+to+Create+New+VB+Project+01.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5375175690012763394" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-3752621464640048484?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/3752621464640048484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/project-types-in-visual-basic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/3752621464640048484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/3752621464640048484'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/project-types-in-visual-basic.html' title='Project Types in Visual Basic'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/Sphxb8z7t2I/AAAAAAAAAJs/Qp_1qBi5naM/s72-c/Visual+Basic+Project+Templates.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-66237405355619522</id><published>2009-08-28T07:28:00.074+07:00</published><updated>2010-05-07T14:28:06.724+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>Common Terminology in Visual Basic</title><content type='html'>Like another programming language, Visual Basic also has some common terminology that required to be understood by the developers (programmers). Here are some common terms in Visual Basic:&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Design time&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;Design time&lt;/em&gt; is any time when an application being developed in Visual Basic Development Environment&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Run time&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;Run time&lt;/em&gt; is any time when an application is running.&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Forms&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;Forms&lt;/em&gt; are windows that can be customized by the developer (programmer)&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Controls&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;Controls&lt;/em&gt; are graphic that representation of objects&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Objects&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;Object&lt;/em&gt; is a general term that used to describe forms and controls that make up a program&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Properties&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;Properties&lt;/em&gt; are the characteristics of objects such as size, width, height, etc&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Methods&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;Methods&lt;/em&gt; are the actions that object can perform&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Events&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;Events&lt;/em&gt; are the actions that recognized by forms or controls&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Even-driven programming&lt;/strong&gt;&lt;br /&gt;.......&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-66237405355619522?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/66237405355619522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/common-terminology-in-visual-basic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/66237405355619522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/66237405355619522'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/common-terminology-in-visual-basic.html' title='Common Terminology in Visual Basic'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-4609207158519975668</id><published>2009-08-27T07:42:00.088+07:00</published><updated>2010-05-07T14:28:20.984+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>8 Basic Steps to Create a Program in Visual Basic</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_8Lv2D47OOvg/SpXhG7BcMgI/AAAAAAAAAJk/pfrxSH2OTG4/s1600-h/8+Basic+Steps+to+Create+a+VB+Program.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 69px;" src="http://3.bp.blogspot.com/_8Lv2D47OOvg/SpXhG7BcMgI/AAAAAAAAAJk/pfrxSH2OTG4/s400/8+Basic+Steps+to+Create+a+VB+Program.JPG" border="0" alt="8 Basic Steps to create a program in Visual Basic"id="BLOGGER_PHOTO_ID_5374449239375753730" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Visual Basic is one of even-driven programming. Creating an even-driven programs like Visual Basic requires different approach from that used in procedural languages. The approach may seem unusual, if you are experienced with procedural programming.&lt;br /&gt;&lt;br /&gt;Here are 8 basic steps in creating an application with Visual Basic:&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;strong&gt;1. Create a Design Plan&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2. Create the user interface&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;3. Set the properties of interface objects&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;4. Write code for events&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;5. Save the project&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;6. Test and debug the application&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;7. Make an executable file (by compiling it)&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;8. Create a setup application&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-4609207158519975668?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/4609207158519975668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/8-basic-steps-to-create-program-in.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/4609207158519975668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/4609207158519975668'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/8-basic-steps-to-create-program-in.html' title='8 Basic Steps to Create a Program in Visual Basic'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/SpXhG7BcMgI/AAAAAAAAAJk/pfrxSH2OTG4/s72-c/8+Basic+Steps+to+Create+a+VB+Program.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-12095723096491123</id><published>2009-08-26T12:01:00.108+07:00</published><updated>2009-09-10T12:10:36.934+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Sample Program'/><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>How to Display Images in a Folder with VB6 Program ?</title><content type='html'>&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/SpTB5mHcjaI/AAAAAAAAAJU/LN9WLnJS5nQ/s1600-h/How+to+Display+Image+with+VB6+Program.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 259px;" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/SpTB5mHcjaI/AAAAAAAAAJU/LN9WLnJS5nQ/s400/How+to+Display+Image+with+VB6+Program.JPG" border="0" alt="VB6 application to display images in a directory"id="BLOGGER_PHOTO_ID_5374133450588327330" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In this posting I will write a Sample of Simple VB6 program to display images in a directory of your computer. To display image in VB6 programming you can use &lt;em&gt;LoadPicture&lt;/em&gt; statement. The format of statement is:&lt;br /&gt;&lt;em&gt;LoadPicture (Path\FileName)&lt;/em&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;em&gt;LoadPicture ("Image01.jpg")&lt;/em&gt; -&gt; display image named &lt;em&gt;Image01.jpg&lt;/em&gt; in the current folder (the folder of image and the program is the same)&lt;br /&gt;&lt;em&gt;LoadPicture ("d:\MyPicture\Image02.bmp")&lt;/em&gt; -&gt; display image named &lt;em&gt;Image02.bmp&lt;/em&gt; that stored in folder &lt;em&gt;MyPicture&lt;/em&gt; in drive d:&lt;br /&gt;&lt;br /&gt;To make a VB6 program application like the above illustration you can follow below VB6 Programming tips.&lt;br /&gt;In this case assumed that you have some images file (with extention .jpg or .bmp) that stored in directory D:\MyPicture.&lt;br /&gt;Now you have to create a screen design like below image:&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/SpT0Q48HGTI/AAAAAAAAAJc/xTLHE3NOTwY/s1600-h/Sreen+Design+Program+Display+Image.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 269px;" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/SpT0Q48HGTI/AAAAAAAAAJc/xTLHE3NOTwY/s400/Sreen+Design+Program+Display+Image.JPG" border="0" alt="Screen Design VB6 Program Display Image"id="BLOGGER_PHOTO_ID_5374188826359437618" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To create the screen design, please follow below steps:&lt;br /&gt;&lt;li&gt;Open your Visual Basic software&lt;br /&gt;&lt;li&gt;Select a standard exe project, let with default name (Project1 and Form1)&lt;br /&gt;&lt;li&gt;Add a label (Label1) control to your form, change its caption into "My Photo Collections", and change font size into 14&lt;br /&gt;&lt;li&gt;Add a DriveListBox (Drive1) control to your form&lt;br /&gt;&lt;li&gt;Add a Dir DirListBox (Dir1) control to your form&lt;br /&gt;&lt;li&gt;Add a FileListBox (File1) control to your form&lt;br /&gt;&lt;li&gt;Add an Image (Image1) control to your form&lt;br /&gt;&lt;li&gt;Arrange and resize the controls like the above screen design.&lt;br /&gt;&lt;br /&gt;Ok, program interface already done. Now the time to write code statements to functionate the controls, so the program can work.&lt;br /&gt;&lt;li&gt;Double-click Drive1 to create a Sub Drive1_Change()&lt;br /&gt;&lt;li&gt;Write below Code Statements in the Sub Drive1_Change()&lt;br /&gt;&lt;pre&gt;  Dir1.Path = Drive1.Drive&lt;br /&gt;  File1.Path = Dir1.Path&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;Double-click Dir1 to create a Sub Dir1_Change()&lt;br /&gt;&lt;li&gt;Write below Code Statement in Sub Dir1_Change()&lt;br /&gt;&lt;pre&gt;    File1.Path = Dir1.Path&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;Double-click File1 to create a Sub File1_Click()&lt;br /&gt;&lt;li&gt;Write the code statements below in the Sub File1_Click()&lt;br /&gt;&lt;pre&gt;    On Error GoTo ErrHandle&lt;br /&gt;   Image1.Picture = LoadPicture(File1.Path &amp; "/" &amp; File1.FileName)&lt;br /&gt;   Exit Sub&lt;br /&gt;  &lt;br /&gt;ErrHandle:&lt;br /&gt;    MsgBox "Invalid Image display"&lt;br /&gt;    Resume Next&lt;/pre&gt;&lt;br /&gt;So your Program coding will look like below listing:&lt;br /&gt;&lt;pre&gt;Private Sub Dir1_Change()&lt;br /&gt;    File1.Path = Dir1.Path&lt;br /&gt;End Sub&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;Private Sub Drive1_Change()&lt;br /&gt;   Dir1.Path = Drive1.Drive&lt;br /&gt;   File1.Path = Dir1.Path&lt;br /&gt;End Sub&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;Private Sub File1_Click()&lt;br /&gt;    On Error GoTo ErrHandle&lt;br /&gt;    Image1.Picture = LoadPicture(File1.Path &amp; "/" &amp; File1.FileName)&lt;br /&gt;    Exit Sub&lt;br /&gt;  &lt;br /&gt;ErrHandle:&lt;br /&gt;    MsgBox "Invalid Image display"&lt;br /&gt;    Resume Next&lt;br /&gt;End Sub&lt;/pre&gt;&lt;br /&gt;Now the time to test your program, follow below tips:&lt;br /&gt;&lt;li&gt;Click Start button on your VB standard toolbar&lt;br /&gt;&lt;li&gt;Select Drive D: in the DriveListBox&lt;br /&gt;&lt;li&gt;Select folder D:\MyPicture in the DirListBox&lt;br /&gt;&lt;li&gt;Select file name you want in FileListBox&lt;br /&gt;&lt;br /&gt;Your program should like the illustration on the top of this posting, however the image you display depend on the image you have and select.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-12095723096491123?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/12095723096491123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/how-to-display-image-with-vb6-program.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/12095723096491123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/12095723096491123'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/how-to-display-image-with-vb6-program.html' title='How to Display Images in a Folder with VB6 Program ?'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/SpTB5mHcjaI/AAAAAAAAAJU/LN9WLnJS5nQ/s72-c/How+to+Display+Image+with+VB6+Program.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-2615700049521454581</id><published>2009-08-25T07:23:00.103+07:00</published><updated>2009-09-07T12:21:36.212+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>Visual Basic Standard Toolbar</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_8Lv2D47OOvg/SpMybp0_k_I/AAAAAAAAAI8/uXrbf5RFm_4/s1600-h/Visual+Basic+Standard+Toolbar+01.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 28px;" src="http://3.bp.blogspot.com/_8Lv2D47OOvg/SpMybp0_k_I/AAAAAAAAAI8/uXrbf5RFm_4/s400/Visual+Basic+Standard+Toolbar+01.JPG" border="0" alt="Visual Basic Standard Toolbar"id="BLOGGER_PHOTO_ID_5373694231049114610" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The Standard Toolbar is one of &lt;a href='http://tipsclip.blogspot.com/2009/08/whats-visual-basic-development.html'target='_blank'&gt;Visual Basic Development Environment&lt;/a&gt; components. The Standard Toolbar contains buttons for many of the most commands used in Visual Basic.&lt;br /&gt;The button such &lt;em&gt;Open Project&lt;/em&gt;, &lt;em&gt;Save Project&lt;/em&gt;, &lt;em&gt;Start&lt;/em&gt;, &lt;em&gt;Break&lt;/em&gt;, and &lt;em&gt;End&lt;/em&gt; contain in this toolbar.&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;It also contains another button, such buttons to display &lt;em&gt;Project Explorer&lt;/em&gt;, the &lt;em&gt;Properties Window&lt;/em&gt;, the &lt;em&gt;Toolbar&lt;/em&gt;, and other elements of Visual asic Development environment.&lt;br /&gt;&lt;br /&gt;By default most Visual Basic Standard Toolbar are docked (attached) on the top of your screen. However you can undock it whenever you want. To undock it, click near the double bar along the left side of a toolbar, and drag away from its docked position. To dock a toolbar, drag it to another edge of the main window.&lt;br /&gt;&lt;br /&gt;Many buttons exist in Visual Basic Standard Toolbar that make easier to edit your VB application:&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_8Lv2D47OOvg/SpNrXcksXBI/AAAAAAAAAJE/rA2yCDNk-h0/s1600-h/Visual+Basic+Standard+Toolbar+02.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 96px;" src="http://3.bp.blogspot.com/_8Lv2D47OOvg/SpNrXcksXBI/AAAAAAAAAJE/rA2yCDNk-h0/s400/Visual+Basic+Standard+Toolbar+02.JPG" border="0" alt="Many buttons exist in VB Standard Toolbar"id="BLOGGER_PHOTO_ID_5373756830934391826" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Another buttons in Visual Basic Standard Toolbar:&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_8Lv2D47OOvg/SpOplOxhmKI/AAAAAAAAAJM/bbHQMNh6Vxs/s1600-h/Visual+Basic+Standard+Toolbar+03.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 113px;" src="http://3.bp.blogspot.com/_8Lv2D47OOvg/SpOplOxhmKI/AAAAAAAAAJM/bbHQMNh6Vxs/s400/Visual+Basic+Standard+Toolbar+03.JPG" border="0" alt="Visual Basic Standard Toolbar"id="BLOGGER_PHOTO_ID_5373825237469206690" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-2615700049521454581?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/2615700049521454581/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/visual-basic-standard-toolbar.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/2615700049521454581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/2615700049521454581'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/visual-basic-standard-toolbar.html' title='Visual Basic Standard Toolbar'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/SpMybp0_k_I/AAAAAAAAAI8/uXrbf5RFm_4/s72-c/Visual+Basic+Standard+Toolbar+01.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-5449525056004084984</id><published>2009-08-22T14:26:00.090+07:00</published><updated>2009-09-07T12:21:49.528+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>With..End With Statement to Set Properties of Object in VB6</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_8Lv2D47OOvg/SpIx-j8wfwI/AAAAAAAAAIs/-UdCgI0CMCc/s1600-h/With+End+With+to+Set+Object+Properties+01.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 249px;" src="http://3.bp.blogspot.com/_8Lv2D47OOvg/SpIx-j8wfwI/AAAAAAAAAIs/-UdCgI0CMCc/s400/With+End+With+to+Set+Object+Properties+01.JPG" border="0" alt="How to Set Object Properties using With..End With"id="BLOGGER_PHOTO_ID_5373412256278150914" /&gt;&lt;/a&gt;&lt;br /&gt;In the earlier posting I have written that you can set object properties in two session, at design-time and at run-time, although some object properties can be set in both run-time and design-time, other can be set just in design-time, and onother can be set just in run time.&lt;br /&gt;&lt;br /&gt;When you set object properties maybe you need to several properties at once, for example you want to set the properties of TextBox as following:&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;li&gt;set font to Bold mode&lt;br /&gt;&lt;li&gt;set Font Size to 24&lt;br /&gt;&lt;li&gt;set the text with a value "Set Object Properties"&lt;br /&gt;&lt;br /&gt;So you can do with the following coding:&lt;br /&gt;Text1.Font.Bold = True&lt;br /&gt;Text1.Font.Size = 24&lt;br /&gt;Text1.Text = "Set Object Properties"&lt;br /&gt;&lt;br /&gt;However to make it easier to read, and easier to understand, you can use &lt;em&gt;With..End With&lt;/em&gt; statement to set several Object Properies.&lt;br /&gt;You can use below code statement:&lt;br /&gt;&lt;pre&gt;With Text1&lt;br /&gt;   .Font.Bold = True&lt;br /&gt;   .Font.Size = 24&lt;br /&gt;   .Text = "Set Object Properties"&lt;br /&gt;End With&lt;/pre&gt;&lt;br /&gt;Example:&lt;br /&gt;Create a screen design like below image:&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_8Lv2D47OOvg/SpIuwRHhNnI/AAAAAAAAAIk/d8DZ3G1xZfg/s1600-h/With+End+With+to+Set+Object+Properties.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 251px;" src="http://3.bp.blogspot.com/_8Lv2D47OOvg/SpIuwRHhNnI/AAAAAAAAAIk/d8DZ3G1xZfg/s400/With+End+With+to+Set+Object+Properties.JPG" border="0" alt="How to Set Object Properties using With..End With"id="BLOGGER_PHOTO_ID_5373408712169961074" /&gt;&lt;/a&gt;&lt;br /&gt;Note: Set property "Multiline" of Text1 and Text2 to "True".&lt;br /&gt;&lt;br /&gt;Double-click command1 button.&lt;br /&gt;Write below coding:&lt;br /&gt;&lt;pre&gt;   Text1.Text = "One by one set object properties"&lt;br /&gt;   Text1.Font.Bold = True&lt;br /&gt;   Text1.Font.Size = 24&lt;br /&gt;   Text1.FontUnderline = True&lt;/pre&gt;&lt;br /&gt;Double-click command2 button.&lt;br /&gt;Write below code statements:&lt;br /&gt;&lt;pre&gt;With Text2&lt;br /&gt;   .Text = "Using With..End With to set object properties"&lt;br /&gt;   .Font.Bold = True&lt;br /&gt;   .Font.Size = 24&lt;br /&gt;   .FontUnderline = True&lt;br /&gt;End With&lt;/pre&gt;&lt;br /&gt;So your coding should like below listing:&lt;br /&gt;&lt;pre&gt;Private Sub Command1_Click()&lt;br /&gt;   Text1.Text = "One by one set object properties"&lt;br /&gt;   Text1.Font.Bold = True&lt;br /&gt;   Text1.Font.Size = 24&lt;br /&gt;   Text1.FontUnderline = True&lt;br /&gt;End Sub&lt;br /&gt;Private Sub Command2_Click()&lt;br /&gt;With Text2&lt;br /&gt;   .Text = "Using With..End With to set object properties"&lt;br /&gt;   .Font.Bold = True&lt;br /&gt;   .Font.Size = 24&lt;br /&gt;   .FontUnderline = True&lt;br /&gt;End With&lt;br /&gt;End Sub&lt;/pre&gt;&lt;br /&gt;Now run our program, click command1 button, and then also click command2 button.&lt;br /&gt;Your program sholud like screenshot in top of this posting.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-5449525056004084984?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/5449525056004084984/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/withend-with-statement-to-set.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/5449525056004084984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/5449525056004084984'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/withend-with-statement-to-set.html' title='With..End With Statement to Set Properties of Object in VB6'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/SpIx-j8wfwI/AAAAAAAAAIs/-UdCgI0CMCc/s72-c/With+End+With+to+Set+Object+Properties+01.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-6745195576389580571</id><published>2009-08-22T14:06:00.084+07:00</published><updated>2009-09-07T12:22:01.495+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>Code Editor Window in Visual Basic</title><content type='html'>&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/Sot6jcVucoI/AAAAAAAAAG0/O53KQ9w5OfI/s1600-h/VB+Code+Editor+Window+00.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 376px; height: 240px;" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/Sot6jcVucoI/AAAAAAAAAG0/O53KQ9w5OfI/s400/VB+Code+Editor+Window+00.JPG" border="0" alt="Code Editor Window in Visual Basic"id="BLOGGER_PHOTO_ID_5371521729890775682" /&gt;&lt;/a&gt;&lt;br /&gt;In the earlier posting I've told you that a VB Project maybe contains one or more files like form, module, and so on. One form usually contains one or more controls. However a form with it's control contained on it can't do anything without code statements (programming code) that associate with them. And a module also contains one or more statements.&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;A place in VB Development Environment where you can write your VB code statements (programming code) is called Visual Basic Code Editor Window. It's also known as the Code Window. A sparate Code Editor Window is displayed for each form or module in your project, making it easy to organize, view, and navigate.&lt;br /&gt;&lt;br /&gt;There are two drop-down lists at the top of the Code Editor Window called Object List and Procedure List.The Object list contains a list of all the Contols that exist on the form. When you selectiong a control name from the list, the Procedure list shows all the events (actions) for the control.&lt;br /&gt;&lt;br /&gt;Using the Object and Procedure list together, can make you easy to located and edit the code you want in your VB application. The image above (on the top of posting)illustrates the Code Editor Window.&lt;br /&gt;&lt;br /&gt;To open the Visual Basic Code Editor Window you can follow the following steps:&lt;br /&gt;&lt;li&gt;In the Project Explorer window, click the form which code you want to open&lt;br /&gt;&lt;li&gt;Then Click View Code button&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_8Lv2D47OOvg/SouG4g0CegI/AAAAAAAAAHM/KwNUKTMjWyA/s1600-h/VB+Project+Explorer+Window+01.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 211px; height: 176px;" src="http://2.bp.blogspot.com/_8Lv2D47OOvg/SouG4g0CegI/AAAAAAAAAHM/KwNUKTMjWyA/s400/VB+Project+Explorer+Window+01.JPG" border="0" alt="How to open VB Code Editor Window - Click View Code button"id="BLOGGER_PHOTO_ID_5371535286008445442" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Tips:&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;For example: You have a control called txtAmount on your form. You want to write code statements on Sub txtAmount_LostFocus(). How can you do that?&lt;br /&gt;Ok, you can follow the tips below:&lt;br /&gt;&lt;li&gt;Click the Form in the Project Explorer window&lt;br /&gt;&lt;li&gt;Click View Code button&lt;br /&gt;&lt;br /&gt;&lt;li&gt;In the Code Editor window, click txtAmount from the Object list&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_8Lv2D47OOvg/SouojVldC-I/AAAAAAAAAHU/cTgqtfORdME/s1600-h/VB+Code+Editor+Window.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 161px;" src="http://4.bp.blogspot.com/_8Lv2D47OOvg/SouojVldC-I/AAAAAAAAAHU/cTgqtfORdME/s400/VB+Code+Editor+Window.JPG" border="0" alt="VB Code Editor Window"id="BLOGGER_PHOTO_ID_5371572305612573666" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Then click LostFocus from the Procedure list&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/SouquAOzumI/AAAAAAAAAHc/WQzeK5vIo4A/s1600-h/VB+Code+Editor+Window+01.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 219px;" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/SouquAOzumI/AAAAAAAAAHc/WQzeK5vIo4A/s400/VB+Code+Editor+Window+01.JPG" border="0" alt="VB Code Editor Window"id="BLOGGER_PHOTO_ID_5371574687882263138" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So, Sub txtAmount_LostFocus() appears on your screen (in the Code Editor window) and you can write your code statements you want.&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_8Lv2D47OOvg/SousO2FDIDI/AAAAAAAAAHk/z9ORB2SPjs8/s1600-h/VB+Code+Editor+Window+02.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 279px;" src="http://4.bp.blogspot.com/_8Lv2D47OOvg/SousO2FDIDI/AAAAAAAAAHk/z9ORB2SPjs8/s400/VB+Code+Editor+Window+02.JPG" border="0" alt="VB Code Editor Window"id="BLOGGER_PHOTO_ID_5371576351604285490" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-6745195576389580571?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/6745195576389580571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/code-editor-window-in-visual-basic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/6745195576389580571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/6745195576389580571'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/code-editor-window-in-visual-basic.html' title='Code Editor Window in Visual Basic'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/Sot6jcVucoI/AAAAAAAAAG0/O53KQ9w5OfI/s72-c/VB+Code+Editor+Window+00.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-3089368676852475011</id><published>2009-08-22T12:12:00.087+07:00</published><updated>2009-09-07T12:22:15.089+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Sample Program'/><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>Select Case...End Select - VB6 Sample Program Part 2</title><content type='html'>This posting is continuation of previous posting &lt;a href="http://tipsclip.blogspot.com/2009/08/select-case-end-select-vb6-sample.html" target="_blank"&gt;"Select Case...End Select - VB6 Sample Program Part 1"&lt;/a&gt;. In the previous posting you have designed a program interface like below image, and you have saved it.&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_8Lv2D47OOvg/SooMYUXqllI/AAAAAAAAAGc/y1RWoOG1WK4/s1600-h/VB+SELECT+CASE+SAMPLE+PROGRAM.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5371119117517100626" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 173px" alt="Select Case End Select VB6 Sample Program" src="http://4.bp.blogspot.com/_8Lv2D47OOvg/SooMYUXqllI/AAAAAAAAAGc/y1RWoOG1WK4/s400/VB+SELECT+CASE+SAMPLE+PROGRAM.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now, let's writing the program coding for the above program design.&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;li&gt;Double click &lt;em&gt;cmdCalBonus&lt;/em&gt; button to create sub &lt;em&gt;cmdCalBonus_Click()&lt;/em&gt;&lt;br /&gt;&lt;li&gt;Write down below program coding in the &lt;em&gt;cmdCalBonus_Click()&lt;/em&gt; area&lt;br /&gt;&lt;pre&gt;&lt;p style="BACKGROUND-COLOR: #ffffcc"&gt;    Select Case Val(txtSalQty.Text)&lt;br /&gt;        Case 1 To 2&lt;br /&gt;            txtBonus.Text = "2%"&lt;br /&gt;        Case 3, 4&lt;br /&gt;            txtBonus.Text = "3%"&lt;br /&gt;        Case 5 To 6&lt;br /&gt;            txtBonus.Text = "4.5%"&lt;br /&gt;        Case 7 To 8&lt;br /&gt;            txtBonus.Text = "6.5%"&lt;br /&gt;        Case 9&lt;br /&gt;            txtBonus.Text = "10%"&lt;br /&gt;        Case Else&lt;br /&gt;            txtBonus.Text = "15%"&lt;br /&gt;    End Select&lt;br /&gt;    txtBonusAmt.Text = Val(txtSalQty.Text) * Val(txtPriceUnit.Text) * _&lt;br /&gt;                       Val(Left(txtBonus.Text, Len(txtBonus.Text) _&lt;br /&gt;                       - 1)) / 100&lt;/p&gt;&lt;/pre&gt;At the end, your program will look like below listing:&lt;br /&gt;&lt;span style="color:#009900;"&gt;&lt;pre&gt;&lt;p style="BACKGROUND-COLOR: #ffffcc"&gt;Private Sub cmdCalBonus_Click()&lt;br /&gt;    Select Case Val(txtSalQty.Text)&lt;br /&gt;        Case 1 To 2&lt;br /&gt;            txtBonus.Text = "2%"&lt;br /&gt;        Case 3, 4&lt;br /&gt;            txtBonus.Text = "3%"&lt;br /&gt;        Case 5 To 6&lt;br /&gt;            txtBonus.Text = "4.5%"&lt;br /&gt;        Case 7 To 8&lt;br /&gt;            txtBonus.Text = "6.5%"&lt;br /&gt;        Case 9&lt;br /&gt;            txtBonus.Text = "10%"&lt;br /&gt;        Case Else&lt;br /&gt;            txtBonus.Text = "15%"&lt;br /&gt;    End Select&lt;br /&gt;    txtBonusAmt.Text = Val(txtSalQty.Text) * Val(txtPriceUnit.Text) * _&lt;br /&gt;                       Val(Left(txtBonus.Text, Len(txtBonus.Text) _&lt;br /&gt;                       - 1)) / 100&lt;br /&gt;End Sub&lt;/p&gt;&lt;/pre&gt;&lt;/span&gt;Let's test your program to check whether it's correct or not.&lt;br /&gt;&lt;li&gt;Click &lt;em&gt;Start&lt;/em&gt; button on your VB toolbar&lt;br /&gt;&lt;li&gt;Type a number (for example 5) on your textbox with label &lt;em&gt;Your Sales Quantity&lt;/em&gt;&lt;br /&gt;&lt;li&gt;Type a number (for example 100) on your textbox with label &lt;em&gt;Price Unit (USD)&lt;/em&gt;&lt;br /&gt;&lt;li&gt;And finally click &lt;em&gt;Calculate Bonus&lt;/em&gt; button&lt;br /&gt;&lt;li&gt;Notice what happen on your program, what's the result?&lt;br /&gt;&lt;br /&gt;According to the Bonus Table if &lt;em&gt;Sales Quantity&lt;/em&gt; = 5, so the &lt;em&gt;Bonus Percentage&lt;/em&gt; should equal to 4.5%. So the &lt;em&gt;Bonus Amount&lt;/em&gt; = 5 X 100 X 4.5 / 100. And the result is 22.5. So your program should like below screenshot.&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_8Lv2D47OOvg/SopaSilZS9I/AAAAAAAAAGk/it26Ew4BaWM/s1600-h/VB+SELECT+CASE+SAMPLE+PROGRAM+02.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5371204780160535506" style="WIDTH: 385px; CURSOR: hand; HEIGHT: 260px" alt="Select Case End Select VB6 Sample Program" src="http://4.bp.blogspot.com/_8Lv2D47OOvg/SopaSilZS9I/AAAAAAAAAGk/it26Ew4BaWM/s400/VB+SELECT+CASE+SAMPLE+PROGRAM+02.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now I'll explain how the program works.&lt;br /&gt;&lt;li&gt;When you type 5 in the &lt;em&gt;Your Purchase Quantity&lt;/em&gt;, then type 100 in the &lt;em&gt;Price Unit (USD)&lt;/em&gt;, and click &lt;em&gt;Calculate Bonus&lt;/em&gt; button, so the &lt;em&gt;cmdCalBonus_Click()&lt;/em&gt; executed.&lt;br /&gt;&lt;li&gt;Then this statement &lt;em&gt;"Val(txtSalQty.Text)"&lt;/em&gt; will convert text &lt;em&gt;"5"&lt;/em&gt; into number &lt;em&gt;5&lt;/em&gt;&lt;br /&gt;&lt;li&gt;Then in &lt;em&gt;Select Case..&lt;/em&gt; defined that txtBonus.Text is "4.5%" according to the Sales Quantity =&gt; &lt;em&gt;5&lt;/em&gt;&lt;br /&gt;&lt;li&gt;Then program executes below statement:&lt;pre&gt;    &lt;span style="color:#009900;"&gt;txtBonusAmt.Text = Val(txtSalQty.Text) * Val(txtPriceUnit.Text) * _&lt;br /&gt;                       Val(Left(txtBonus.Text, Len(txtBonus.Text) _&lt;br /&gt;                       - 1)) / 100&lt;/span&gt;&lt;/pre&gt;Mybe you think that this is a complex statement. But in fact it's just a simple statement.&lt;br /&gt;&lt;span style="color:#009900;"&gt;Val(txtSalQty.Text) convert text "5" into number 5&lt;br /&gt;Val(txtPriceUnit.Text) convert text "100" into number 100&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Because txtBonus.Text = "4.5%" (this is a text) so:&lt;br /&gt;&lt;span style="color:#009900;"&gt;Len(txtBonus.Text) will return 4, and Len(txtBonus.Text) - 1 will return 3&lt;br /&gt;Left(txtBonus.Text, Len(txtBonus.Text) - 1) equals to Left("4.5%",4-1) will return "4.5"&lt;br /&gt;Then Val(Left(txtBonus.Text, Len(txtBonus.Text) - 1)) equal to Val("4.5") will return number 4.5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So the above formula will equal to:&lt;br /&gt;&lt;span style="color:#009900;"&gt;txtBonusAmt.Text = Val("5")*Val("100")*Val(Left("4.5%",Len("4.5%")-1))/100&lt;br /&gt;&lt;=&gt; txtBonusAmt.Text = 5 * 100 * 4.5 / 100&lt;br /&gt;&lt;=&gt; txtBonusAmt.Text = 22.5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;hr /&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-3089368676852475011?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/3089368676852475011/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/select-case-end-select-vb6-sample_22.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/3089368676852475011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/3089368676852475011'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/select-case-end-select-vb6-sample_22.html' title='Select Case...End Select - VB6 Sample Program Part 2'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/SooMYUXqllI/AAAAAAAAAGc/y1RWoOG1WK4/s72-c/VB+SELECT+CASE+SAMPLE+PROGRAM.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-4335606760737182052</id><published>2009-08-22T07:58:00.083+07:00</published><updated>2009-09-07T12:22:35.302+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Sample Program'/><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>Select Case End Select - VB6 Sample Program Part 1</title><content type='html'>&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/Sot9dWIS9NI/AAAAAAAAAG8/uzeTIihxPl4/s1600-h/VB+SELECT+CASE+SAMPLE+PROGRAM+00.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 376px; height: 225px;" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/Sot9dWIS9NI/AAAAAAAAAG8/uzeTIihxPl4/s400/VB+SELECT+CASE+SAMPLE+PROGRAM+00.JPG" border="0" alt="VB Select Case Sample Program"id="BLOGGER_PHOTO_ID_5371524923679503570" /&gt;&lt;/a&gt;&lt;br /&gt;In this posting I'll write a sample of simple VB6 program that using &lt;em&gt;Select Case..End Select&lt;/em&gt; control structure. However this program also using several VB6 functions like &lt;em&gt;Val()&lt;/em&gt; (to convert text into number so can be calculated), &lt;em&gt;Len()&lt;/em&gt; (to get the length of a text) and &lt;em&gt;Left()&lt;/em&gt; (to pick up a part from the left side of a text).&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;The scenario of the program is as the following:&lt;br /&gt;&lt;li&gt;This program is Bonus Calculation (Sales System).&lt;br /&gt;&lt;li&gt;Here it is the bonus percentage table:&lt;pre&gt;  Sales Quantity = 1 - 2 -&gt; Bonus = 2%&lt;br /&gt;  Sales Quantity = 3 - 4 -&gt; Bonus = 3%&lt;br /&gt;  Sales Quantity = 5 - 6 -&gt; Bonus = 4.5%&lt;br /&gt;  Sales Quantity = 7 - 8 -&gt; Bonus = 6.5%&lt;br /&gt;  Sales Quantity = 9     -&gt; Bonus = 10%&lt;br /&gt;  Sales Quantity = 10 or more -&gt; Bonus = 15%&lt;/pre&gt;&lt;li&gt;Bonus Amount = Sales Quantity X Price Unit X Bonus&lt;br /&gt;&lt;br /&gt;The screen design of the program is like below screenshot.&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_8Lv2D47OOvg/SooMYUXqllI/AAAAAAAAAGc/y1RWoOG1WK4/s1600-h/VB+SELECT+CASE+SAMPLE+PROGRAM.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 173px;" src="http://4.bp.blogspot.com/_8Lv2D47OOvg/SooMYUXqllI/AAAAAAAAAGc/y1RWoOG1WK4/s400/VB+SELECT+CASE+SAMPLE+PROGRAM.JPG" border="0" alt="Secect Case End Select VB6 Sample Program"id="BLOGGER_PHOTO_ID_5371119117517100626" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now, let's design the program first (create screen interface).&lt;br /&gt;&lt;li&gt;Open your Visual Basic 6 software&lt;br /&gt;&lt;li&gt;Select a standard type project&lt;br /&gt;&lt;li&gt;Create 5 Labels&lt;br /&gt;&lt;li&gt;Create 4 Textboxes&lt;br /&gt;&lt;li&gt;Create a Command button&lt;br /&gt;&lt;li&gt;Arrange the controls on your Form like the picture above&lt;br /&gt;&lt;li&gt;Click first Label (Label1)&lt;br /&gt;&lt;li&gt;Rename the caption of Label1 into &lt;em&gt;Bonus calculation&lt;/em&gt;&lt;br /&gt;&lt;li&gt;Change the font size into 24&lt;br /&gt;&lt;li&gt;Change the caption of Label2, Label3, Label4 and Label5 into &lt;em&gt;Your Sales Quantity&lt;/em&gt;, &lt;em&gt;Price Unit (USD)&lt;/em&gt;, &lt;em&gt;Percentage of Bonus&lt;/em&gt;, and &lt;em&gt;Amount of Bonus (USD)&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Click first Textbox (Text1), clear it's Text, and rename into &lt;em&gt;txtSalQty&lt;/em&gt;&lt;br /&gt;&lt;li&gt;Click second Textbox (Text2), clear it's Text, and rename into &lt;em&gt;txtPriceUnit&lt;/em&gt;&lt;br /&gt;&lt;li&gt;Click third Textbox (Text3), clear it's Text, and rename into &lt;em&gt;txtBonus&lt;/em&gt;&lt;br /&gt;&lt;li&gt;Click fourth Textbox (Text4), clear it's Text, and rename into &lt;em&gt;txtBonusAmt&lt;/em&gt;&lt;br /&gt;&lt;li&gt;Click Command1 button, change the caption into &lt;em&gt;Calculate Bonus&lt;/em&gt;, and rename into &lt;em&gt;cmdCalBonus&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Click anywhere in Form1 area, and rename into &lt;em&gt;frmCalBonus&lt;/em&gt; (look at properties window)&lt;br /&gt;&lt;li&gt;Click Project1 file (in Project explorer window)&lt;br /&gt;&lt;li&gt;Click cell next to (Name) in Properties Window, and change the Name into &lt;em&gt;prjCalBonus&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Look at image above, your screen design should like that.&lt;br /&gt;Ok, now the time to save your work (your program) in order you can edit it next time (this program will be used in the next posting). Here it is tips to save your VB6 program:&lt;br /&gt;&lt;li&gt;Click &lt;em&gt;File&lt;/em&gt; menu on your menu bar&lt;br /&gt;&lt;li&gt;Click &lt;em&gt;Save Project As...&lt;/em&gt; menu&lt;br /&gt;&lt;li&gt;On &lt;em&gt;Save File As&lt;/em&gt; window, type &lt;em&gt;frmCalBonus&lt;/em&gt; on the cell with label &lt;em&gt;File name:&lt;/em&gt;&lt;br /&gt;&lt;li&gt;Select the folder you want to save in, then click &lt;em&gt;Save&lt;/em&gt; button&lt;br /&gt;&lt;li&gt;Then on &lt;em&gt;Save Project As&lt;/em&gt; window, Type &lt;em&gt;prjBonus&lt;/em&gt; on the cell with label &lt;em&gt;File name:&lt;/em&gt;&lt;br /&gt;&lt;li&gt;Then click &lt;em&gt;Save&lt;/em&gt; button&lt;br /&gt;&lt;br /&gt;Note: The extention &lt;em&gt;.vbp&lt;/em&gt; and &lt;em&gt;.frm&lt;/em&gt; will automatically given by the system.&lt;br /&gt;Ok, now your program has been saved. You have 2 files in your project: &lt;em&gt;prjBonus.vbp&lt;/em&gt; and &lt;em&gt;frmCalBonus.frm&lt;/em&gt; and you can close your VB program. I'll continue to write the program coding in the next posting. &lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-4335606760737182052?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/4335606760737182052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/select-case-end-select-vb6-sample.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/4335606760737182052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/4335606760737182052'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/select-case-end-select-vb6-sample.html' title='Select Case End Select - VB6 Sample Program Part 1'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/Sot9dWIS9NI/AAAAAAAAAG8/uzeTIihxPl4/s72-c/VB+SELECT+CASE+SAMPLE+PROGRAM+00.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-6296885328046808331</id><published>2009-08-21T15:57:00.079+07:00</published><updated>2009-09-07T12:22:47.049+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>How to Add Controls to Form in VB6 Programming</title><content type='html'>&lt;a href="http://4.bp.blogspot.com/_8Lv2D47OOvg/SovoreMB2ZI/AAAAAAAAAHs/phdR1h_I6iU/s1600-h/VB+Form+and+Toolbox.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 259px;" src="http://4.bp.blogspot.com/_8Lv2D47OOvg/SovoreMB2ZI/AAAAAAAAAHs/phdR1h_I6iU/s400/VB+Form+and+Toolbox.JPG" border="0" alt="Visual Basic Toolbox and Form"id="BLOGGER_PHOTO_ID_5371642814104983954" /&gt;&lt;/a&gt;&lt;br /&gt;In the previous posting I've told you that one of &lt;a href='http://tipsclip.blogspot.com/2009/08/whats-visual-basic-development.html'target='_blank'&gt;Visual Basic Development Environment's&lt;/a&gt; element is &lt;a href='http://tipsclip.blogspot.com/2009/08/visual-basic-toolbox.html'target='_blank'&gt;Toolbox&lt;/a&gt;, that contains controls. And another element is &lt;a href='http://tipsclip.blogspot.com/2009/08/form-designer-window-in-visual-basic.html'target='_blank'&gt;Form Design window (Form)&lt;/a&gt;. You can place controls into your Form to build your VB application.&lt;br /&gt;&lt;br /&gt;Now, how to place controls from Toolbox into your Form? &lt;span class="fullpost"&gt;Ok, it's just a simple way to do that. You just click, drag and drop the control you want. Or also you can double-click the icon Toolbox of the control you want.&lt;br /&gt;&lt;br /&gt;There are two manners to place (add) controls to a form. The first manner is double-click the Toolbox icon of the control you want to add. In instance it will place the control with default size in the centre of active form.&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_8Lv2D47OOvg/Sozi9bvTYdI/AAAAAAAAAIU/TeuQK7Yfr5c/s1600-h/How+To+Add+Control+To+Form+03.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 223px;" src="http://3.bp.blogspot.com/_8Lv2D47OOvg/Sozi9bvTYdI/AAAAAAAAAIU/TeuQK7Yfr5c/s400/How+To+Add+Control+To+Form+03.JPG" border="0" alt="Control placed in the center active form"id="BLOGGER_PHOTO_ID_5371918000592216530" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When you adding more than one controls with this way, they will be placed on the top of each other in the center of the form. Then you can reposition/rearrange them into new place you want in the form.&lt;br /&gt;&lt;br /&gt;The second manner, you can follow below steps:&lt;br /&gt;&lt;li&gt;First, click on the Toolbox icon of the control you want (for example TextBox control)&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_8Lv2D47OOvg/SozcP3GMXnI/AAAAAAAAAH8/_M_uQcB0jYI/s1600-h/How+To+Add+Control+To+Form.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 132px; height: 207px;" src="http://2.bp.blogspot.com/_8Lv2D47OOvg/SozcP3GMXnI/AAAAAAAAAH8/_M_uQcB0jYI/s400/How+To+Add+Control+To+Form.JPG" border="0" alt="How to add control to form - Click icon you want"id="BLOGGER_PHOTO_ID_5371910620592234098" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Place your mouse pointer on the Form (the pointer change to crosshair / + sign)&lt;br /&gt;&lt;li&gt;Position the pointer in the place where you want the upper left corner of the control&lt;br /&gt;&lt;li&gt;Click your mouse, hold, and drag (so your pointer draws a rectangle that indicate the size of your control)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_8Lv2D47OOvg/SozdQzvqcoI/AAAAAAAAAIE/zWb--ILkjTc/s1600-h/How+To+Add+Control+To+Form+01.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 322px; height: 120px;" src="http://4.bp.blogspot.com/_8Lv2D47OOvg/SozdQzvqcoI/AAAAAAAAAIE/zWb--ILkjTc/s400/How+To+Add+Control+To+Form+01.JPG" border="0" alt="How to add control to form - Drag your mouse"id="BLOGGER_PHOTO_ID_5371911736383926914" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;When your control is correctly sized, release your mouse, so the control now appears on your Form&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_8Lv2D47OOvg/SozeFHi_XEI/AAAAAAAAAIM/RXxUl3zLbaM/s1600-h/How+To+Add+Control+To+Form+02.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 323px; height: 105px;" src="http://2.bp.blogspot.com/_8Lv2D47OOvg/SozeFHi_XEI/AAAAAAAAAIM/RXxUl3zLbaM/s400/How+To+Add+Control+To+Form+02.JPG" border="0" alt="How to add control to form - Release your mouse"id="BLOGGER_PHOTO_ID_5371912635052678210" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After you add controls to your form, you can reposition them to new location in the form, and also you can resize them according to your need. That are the way how to add / place control to your Visual Basic form.&lt;br /&gt;&lt;br /&gt;Ok, I think you get it. And I'll write another Visual Basic tips in the next posting.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-6296885328046808331?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/6296885328046808331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/how-to-add-controls-to-form-in-vb6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/6296885328046808331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/6296885328046808331'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/how-to-add-controls-to-form-in-vb6.html' title='How to Add Controls to Form in VB6 Programming'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/SovoreMB2ZI/AAAAAAAAAHs/phdR1h_I6iU/s72-c/VB+Form+and+Toolbox.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-4805089274847067686</id><published>2009-08-14T07:40:00.105+07:00</published><updated>2009-09-07T12:23:02.051+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Sample Program'/><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>If...Then...Else...End If Statement in VB6 - Sample Program 1</title><content type='html'>Visual Basic program application usually use &lt;em&gt;If..Then..Else..End If&lt;/em&gt; statement. In this posting I would like to write a sample of simple program in VB6 which use &lt;a href='http://tipsclip.blogspot.com/2009/08/ifelseendif-statement-in-vb.html'&gt;&lt;em&gt;If..Then..Else..End If&lt;/em&gt; statement&lt;/a&gt; with 2 conditions or more.&lt;br /&gt;The syntax of the statement is the following:&lt;br /&gt;&lt;li&gt;With 2 conditions:&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#3333ff;"&gt;If Condition-1 Then&lt;br /&gt;    Statement-1&lt;br /&gt;Else&lt;br /&gt;    Statement-2&lt;br /&gt;End If&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;li&gt;With more than 2 conditions:&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#3333ff;"&gt;If Condition-1 Then&lt;br /&gt;    Statement-1&lt;br /&gt;Else&lt;br /&gt;    If Condition-2 Then    &lt;br /&gt;        Statement-2&lt;br /&gt;    Else&lt;br /&gt;        If Condition-3 Then&lt;br /&gt;            Statement-3&lt;br /&gt;        Else&lt;br /&gt;            Statement-4&lt;br /&gt;        End If&lt;br /&gt;    End If     &lt;br /&gt;End If&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;Note: If the conditions are too much it is not effective if using &lt;em&gt;If..Then..Else..End If&lt;/em&gt; statement, however it is better using &lt;em&gt;Select Case..End Select&lt;/em&gt; statement. &lt;br /&gt;The scenario of the program is as below:&lt;br /&gt;&lt;li&gt;This is a part of Registration Form that accept the Name and Gender information&lt;br /&gt;&lt;li&gt;The first data should be filled in is a Name &lt;br /&gt;&lt;li&gt;The next data is a gender code&lt;br /&gt;&lt;li&gt;The value that can be filled are just M and F (M for Male, and F for Female)&lt;br /&gt;&lt;li&gt;If user input another M and F a message appears on screen&lt;br /&gt;&lt;li&gt;When user input M for the Gender cell program will automatically display "Male", and when user input F for the Gender a word "Female" will be displayed automatically&lt;br /&gt;&lt;li&gt;After both Name and Gender cell filled with valid data, command button "Register" will Enable&lt;br /&gt;&lt;li&gt;When user click command button "Register" a greeting will appear on the screen&lt;br /&gt;Your program coding will look like the folling list:&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;Private Sub cmdRegister_Click()&lt;br /&gt;    'recheck data validity&lt;br /&gt;    If txtName.Text = "" Then&lt;br /&gt;        MsgBox "You must fill in the Name first"&lt;br /&gt;        Exit Sub&lt;br /&gt;    End If&lt;br /&gt;    If txtGender.Text = "" Then&lt;br /&gt;        MsgBox "You must fill in the Gender code"&lt;br /&gt;        Exit Sub&lt;br /&gt;    End If&lt;br /&gt;    If txtGender.Text &lt;&gt; "M" And txtGender.Text &lt;&gt; "F" Then&lt;br /&gt;        MsgBox "Just 'M' or 'F' for the Gender code "&lt;br /&gt;        Exit Sub&lt;br /&gt;    End If&lt;br /&gt;    'display greeting&lt;br /&gt;    lblGreeting.Caption = "Welcome " &amp; IIf(txtGender.Text = "M", "Mr. ", "Mrs. ") &amp; _&lt;br /&gt;    Trim(txtName.Text) &amp; ". Thank you for joining our club."&lt;br /&gt;End Sub&lt;/p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;Private Sub Form_Load()&lt;br /&gt;   lblGender.Caption = ""&lt;br /&gt;   lblGreeting.Caption = ""&lt;br /&gt;End Sub&lt;/p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;Private Sub txtGender_Change()&lt;br /&gt;    If txtGender.Text &lt;&gt; "M" And txtGender.Text &lt;&gt; "F" Then&lt;br /&gt;        MsgBox "Invalid value, you should fill in 'M' or 'F'"&lt;br /&gt;    Else&lt;br /&gt;        If txtGender.Text = "M" Then&lt;br /&gt;            lblGender.Caption = "Male"&lt;br /&gt;        Else&lt;br /&gt;            lblGender.Caption = "Female"&lt;br /&gt;        End If&lt;br /&gt;    End If&lt;br /&gt;    &lt;br /&gt;    If txtName.Text &lt;&gt; "" Then&lt;br /&gt;       cmdRegister.Enabled = True&lt;br /&gt;    Else&lt;br /&gt;       cmdRegister.Enabled = False&lt;br /&gt;    End If&lt;br /&gt;End Sub&lt;/p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;Private Sub txtName_Change()&lt;br /&gt;    If txtName.Text = "" Then&lt;br /&gt;        cmdRegister.Enabled = False&lt;br /&gt;    Else&lt;br /&gt;        If txtGender.Text = "" Then&lt;br /&gt;            cmdRegister.Enabled = False&lt;br /&gt;        Else&lt;br /&gt;            cmdRegister.Enabled = True&lt;br /&gt;        End If&lt;br /&gt;    End If&lt;br /&gt;End Sub&lt;/p&gt;&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;Please look at below screen shot as your illustration:&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_8Lv2D47OOvg/SoS-sA475CI/AAAAAAAAAGA/Oob6t-EeU44/s1600-h/Sample_Program_VB6_If_Then_Else.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 260px;" alt="Sample VB6 Program If Then Else End If" src="http://2.bp.blogspot.com/_8Lv2D47OOvg/SoS-sA475CI/AAAAAAAAAGA/Oob6t-EeU44/s400/Sample_Program_VB6_If_Then_Else.JPG" border="0" id="BLOGGER_PHOTO_ID_5369626319094801442" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-4805089274847067686?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/4805089274847067686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/ifthenelseend-if-statement-in-vb6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/4805089274847067686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/4805089274847067686'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/ifthenelseend-if-statement-in-vb6.html' title='If...Then...Else...End If Statement in VB6 - Sample Program 1'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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://2.bp.blogspot.com/_8Lv2D47OOvg/SoS-sA475CI/AAAAAAAAAGA/Oob6t-EeU44/s72-c/Sample_Program_VB6_If_Then_Else.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-8416718406880281194</id><published>2009-08-13T21:31:00.090+07:00</published><updated>2009-09-07T12:23:19.755+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Sample Program'/><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>If...Then...Else...End If Statement in VB</title><content type='html'>&lt;em&gt;If..Then..Else..End If&lt;/em&gt; statement is one of conditional statements in Visual Basic 6 Programming. The statement format is as the following:&lt;br /&gt;&lt;br /&gt;&lt;li&gt;For 2 conditions&lt;pre&gt;If Condition1 Then&lt;br /&gt;    Statement1&lt;br /&gt;Else&lt;br /&gt;    Statement2&lt;br /&gt;End If&lt;/pre&gt;Statement1 will be executed if Condition1 met (the condition1 result is true value), otherwise the Statement2 will be executed.&lt;br /&gt;&lt;br /&gt;&lt;li&gt;For 3 conditions or more&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;pre&gt;If Condition1 Then&lt;br /&gt;    Statement1&lt;br /&gt;Else&lt;br /&gt;    If Condition2 Then&lt;br /&gt;        Statement2&lt;br /&gt;    Else&lt;br /&gt;        If Condition3 Then&lt;br /&gt;            Statement3&lt;br /&gt;        Else&lt;br /&gt;            Statement4&lt;br /&gt;        End If&lt;br /&gt;    End If&lt;br /&gt;End If&lt;/pre&gt;If Condition1 met, the Statement1 will be executed, if Condition2 met, the Statement2 will be executed, and so on.&lt;br /&gt;Note: that Statement1, Statement2 and so on may be a single statement or a block of statements (one or more statements).&lt;br /&gt;&lt;br /&gt;Example implementation on your program as follow:&lt;br /&gt;&lt;li&gt;For 2 conditions&lt;br /&gt;In an examination if the student get mark more than or equal to 6 he/she pass the exam, however if his/her mark is less than 6 he/she fail.&lt;br /&gt;So the program coding will be like this:&lt;br /&gt;&lt;pre&gt;If Val(txtMark.Text) &gt;= 6 Then&lt;br /&gt;    lblResult.Caption = "PASS"&lt;br /&gt;Else&lt;br /&gt;    lblResult.Caption = "FAIL"&lt;br /&gt;End If&lt;/pre&gt;Look at below image for your illustration:&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/Soap9mDWmXI/AAAAAAAAAGM/TZC2ph3LGk8/s1600-h/Sample+If+Then+Else.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 378px; height: 204px;" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/Soap9mDWmXI/AAAAAAAAAGM/TZC2ph3LGk8/s400/Sample+If+Then+Else.JPG" border="0" alt="Sample Program If Then Else End If Statement VB6"id="BLOGGER_PHOTO_ID_5370166481337620850" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;For 3 conditions or more&lt;br /&gt;In an examination the mark will be categorized as below conditions:&lt;br /&gt;Mark = 10 is Excellent&lt;br /&gt;Mark &gt;= 9 and &lt;10 is Very Good&lt;br /&gt;Mark &gt;= 8 and &lt; 9 is Good&lt;br /&gt;Mark &lt; 8 is Poor&lt;br /&gt;So the program coding will look like below list:&lt;br /&gt;&lt;pre&gt;   If Val(txtMark.Text) &lt; 8 Then&lt;br /&gt;       lblCategory.Caption = "POOR"&lt;br /&gt;   Else&lt;br /&gt;       If Val(txtMark.Text) &gt;= 8 And Val(txtMark.Text) &lt; 9 Then&lt;br /&gt;           lblCategory.Caption = "GOOD"&lt;br /&gt;       Else&lt;br /&gt;           If Val(txtMark.Text) &gt;= 9 And Val(txtMark.Text) &lt; 10 Then&lt;br /&gt;               lblCategory.Caption = "VERY GOOD"&lt;br /&gt;           Else&lt;br /&gt;               lblCategory.Caption = "EXCELLENT"&lt;br /&gt;           End If&lt;br /&gt;       End If&lt;br /&gt;   End If&lt;/pre&gt;Look at below image for your illustration:&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_8Lv2D47OOvg/Soas6XLQKqI/AAAAAAAAAGU/k6RhvnfamiU/s1600-h/Sample+If+Then+Else+2.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 392px; height: 205px;" src="http://2.bp.blogspot.com/_8Lv2D47OOvg/Soas6XLQKqI/AAAAAAAAAGU/k6RhvnfamiU/s400/Sample+If+Then+Else+2.JPG" border="0" alt="Sample VB Program If Then Else End If Statement"id="BLOGGER_PHOTO_ID_5370169724339497634" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-8416718406880281194?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/8416718406880281194/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/ifelseendif-statement-in-vb.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/8416718406880281194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/8416718406880281194'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/ifelseendif-statement-in-vb.html' title='If...Then...Else...End If Statement in VB'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/Soap9mDWmXI/AAAAAAAAAGM/TZC2ph3LGk8/s72-c/Sample+If+Then+Else.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-7021739112940211434</id><published>2009-08-11T07:52:00.098+07:00</published><updated>2009-09-07T12:24:26.042+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>Project Explorer Window in Visual Basic</title><content type='html'>Project Explorer Window is one of element of &lt;a href='http://tipsclip.blogspot.com/2009/08/whats-visual-basic-development.html'target='_blank'&gt;Visual Basic Development Environment&lt;/a&gt;, that contains list of all files that build a VB application. The collection of files in a VB application called VB Project (with extention .vbp abbrefiation of Visual Basic Project). Several file types may exists in VB project, for example Form (with extention .frm), Module (with extention .bas), Designer (with extention .dsr), and so on. The sum of files in your Project depend on the size of your application, maybe some applications have many files, but others maybe have just several files. &lt;br /&gt;&lt;br /&gt;You can switch between Object and Code window by clicking Object View button and Code View button on the Project Explorer window's Toolbar. Before clicking View Object button or &lt;span class="fullpost"&gt;View Code button you must select the file first by clicking on it.&lt;br /&gt;&lt;br /&gt;Look at below image for your illustration.&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_8Lv2D47OOvg/SoDBl_FmUNI/AAAAAAAAAFo/tUi2Iu1aqpg/s1600-h/VB+Project+Explorer+Window.JPG"&gt;&lt;img alt="VB Project Explorer Window" style="cursor:pointer; cursor:hand;width: 214px; height: 178px;" src="http://4.bp.blogspot.com/_8Lv2D47OOvg/SoDBl_FmUNI/AAAAAAAAAFo/tUi2Iu1aqpg/s400/VB+Project+Explorer+Window.JPG" border="0" alt="Visual Basic Project Explorer Window"id="BLOGGER_PHOTO_ID_5368503614159868114" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can switch to Object window by clicking View Object button on the Project Explorer Window's toolbar. Look at below image for illustration.&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_8Lv2D47OOvg/SoDBMxHu1tI/AAAAAAAAAFg/t5XSrr-9HYQ/s1600-h/VB+Project+Explorer+Window+01.JPG"&gt;&lt;img alt="VB Project Explorer Window" style="cursor:pointer; cursor:hand;width: 211px; height: 176px;" src="http://4.bp.blogspot.com/_8Lv2D47OOvg/SoDBMxHu1tI/AAAAAAAAAFg/t5XSrr-9HYQ/s400/VB+Project+Explorer+Window+01.JPG" border="0" alt="Click Viw Code Button on VB Project Explorer Window's Toolbar"id="BLOGGER_PHOTO_ID_5368503180913989330" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can switch to Code window by clicking View Code button on the Project Explorer Window's toolbar. Look at below image for your illustration.&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_8Lv2D47OOvg/SoDCBqyXfiI/AAAAAAAAAFw/H14mImxPbWo/s1600-h/VB+Project+Explorer+Window+02.JPG"&gt;&lt;img alt="VB Project Explorer Window" style="cursor:pointer; cursor:hand;width: 208px; height: 173px;" src="http://4.bp.blogspot.com/_8Lv2D47OOvg/SoDCBqyXfiI/AAAAAAAAAFw/H14mImxPbWo/s400/VB+Project+Explorer+Window+02.JPG" border="0" alt="Click View Object Button on VB Project Explorer Window Toolbar"id="BLOGGER_PHOTO_ID_5368504089746832930" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Also you can switch between Object and Code window with below VB programming tips:&lt;br /&gt;&lt;li&gt;Right-click on a file you want to view&lt;br /&gt;A drop down menu will appear on your screen.&lt;br /&gt;&lt;li&gt;Click View Code menu or View Object menu on the drop down menu&lt;br /&gt;&lt;br /&gt;Look at below screen shot.&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_8Lv2D47OOvg/SoDCPr5pq8I/AAAAAAAAAF4/m7slKqU9LTU/s1600-h/VB+Project+Explorer+Window+03.JPG"&gt;&lt;img alt="VB Project Explorer Window" style="cursor:pointer; cursor:hand;width: 208px; height: 317px;" src="http://2.bp.blogspot.com/_8Lv2D47OOvg/SoDCPr5pq8I/AAAAAAAAAF4/m7slKqU9LTU/s400/VB+Project+Explorer+Window+03.JPG" border="0" alt="Right Click, then Click View Object / View Code menu in VB Explorer Project Window"id="BLOGGER_PHOTO_ID_5368504330563988418" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-7021739112940211434?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/7021739112940211434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/project-explorer-window-in-visual-basic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/7021739112940211434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/7021739112940211434'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/project-explorer-window-in-visual-basic.html' title='Project Explorer Window in Visual Basic'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/SoDBl_FmUNI/AAAAAAAAAFo/tUi2Iu1aqpg/s72-c/VB+Project+Explorer+Window.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-3626864854551736711</id><published>2009-08-09T16:12:00.079+07:00</published><updated>2009-09-07T12:24:09.952+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>Visual Basic Properties Window</title><content type='html'>In previous posting I have written some of &lt;a href='http://tipsclip.blogspot.com/2009/08/whats-visual-basic-development.html'target='_blank'&gt;VB Development Environment&lt;/a&gt; element. One of another Visual Basic Development Environment element is Properties Window. With Visual Basic Properties window you can set the properties own to objects in your program. You can set the value of properties of object at &lt;em&gt;design time&lt;/em&gt; (the time when the program being designed). You may find many properties of an object in Properties Window.&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;Properties of an object reflect the characteristic of the object (for example Width, Height, and so on). Each object in VB6 program has its own properties. Different object has different properties. For example properties of &lt;em&gt;text box&lt;/em&gt; are Name, Alignment, Appearance, Locked, Text, etc. Properties of &lt;em&gt;label&lt;/em&gt; are Name, Alignment, Appearance, Locked, Caption, etc. Some of &lt;em&gt;Text box&lt;/em&gt; properties are the same as &lt;em&gt;Label&lt;/em&gt; properties, but some are different. For example Text box has a property called &lt;em&gt;Text&lt;/em&gt; that not owned by Label property. In opposite, Label has a property called &lt;em&gt;Caption&lt;/em&gt; that not owned by Text box.&lt;br /&gt;&lt;br /&gt;Each property of object has a default value, however you can change the value of property thru properties window at design time. However some of properties can be changed at run time (when the program running). Some of properties of the objects just can be changed at design time, however some just at run time, and others can be changed both at &lt;em&gt;design time&lt;/em&gt; and &lt;em&gt;run time&lt;/em&gt;.&lt;br /&gt;&lt;br /&gt;Look at below screenshot for your illustration.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_8Lv2D47OOvg/Sn6XY2l7gLI/AAAAAAAAAFQ/4QgaCFyzrTc/s1600-h/VB+Properties+Window.JPG"&gt;&lt;img alt="Visual Basic Properties Window" style="cursor:pointer; cursor:hand;width: 164px; height: 400px;" src="http://3.bp.blogspot.com/_8Lv2D47OOvg/Sn6XY2l7gLI/AAAAAAAAAFQ/4QgaCFyzrTc/s400/VB+Properties+Window.JPG" border="0" alt="Visual Basic Properties Window"id="BLOGGER_PHOTO_ID_5367894259099467954" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-3626864854551736711?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/3626864854551736711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/visual-basic-properties-window.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/3626864854551736711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/3626864854551736711'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/visual-basic-properties-window.html' title='Visual Basic Properties Window'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/Sn6XY2l7gLI/AAAAAAAAAFQ/4QgaCFyzrTc/s72-c/VB+Properties+Window.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-982453338116643885</id><published>2009-08-08T12:59:00.149+07:00</published><updated>2009-09-07T12:23:56.971+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Stop Dreaming Start Action'/><title type='text'>Stop Dreaming Start Action</title><content type='html'>&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/Sn0X8ieDdII/AAAAAAAAAEw/d-uxNznH0Kw/s1600-h/Stop+Dreaming+Start+Action_0.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5367472659707950210" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 178px" alt="Stop Dreaming Start Action" title="Stop Dreaming Start Action" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/Sn0X8ieDdII/AAAAAAAAAEw/d-uxNznH0Kw/s400/Stop+Dreaming+Start+Action_0.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Stop Dreaming Start Action&lt;/em&gt;&lt;/strong&gt; is a phrase that be a key-word in &lt;a href="http://www.jokosusilo.com/2009/06/20/kontes-seo-joko-susilo-stop-dreaming-start-action-dibuka/" target="_blank"&gt;a SEO contest that held by Jokosusilo.com website&lt;/a&gt;. Stop Dreaming Start Action is also a slogan of Jokosusilo's website, an Indonesian internet marketer. When the SEO contest starts so many Indonesian bloggers (estimated more than one thousand Indonesian bloggers) take place on the contest. The contest started on 20th June, 2009 and would finish on 15th September, 2009 at 09.00 Jakarta time. And the winners would be announced on the day. The registration would finish on 14th September, 2009 one day before the contest closed.&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Stop Dreaming Start Action&lt;/em&gt;&lt;/strong&gt; itself means that we don't just dream, we must stop dream, however we have to take action as soon as to reach all of our will, to reach all of our dreams, to reach our success. Because nothing will happend without action. Success won't come itself without hard working. To reach our success we have stop dream, and take action with hard working.&lt;br /&gt;&lt;br /&gt;Everyone who health his/her body and mental must have goals, have desire. Also you and me with no exception must have desire, have dreams too. A goal would not come true by itself, unless with a real action, with hard working. You have to &lt;strong&gt;&lt;em&gt;Stop Dreaming Start Action to achieve your goals.&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;You have to &lt;strong&gt;&lt;em&gt;Stop Dreaming Start Action.&lt;/em&gt;&lt;/strong&gt; For example you want to be a rich man, it is imposible you suddenly will be the rich man. It is imposible just say &lt;em&gt;"bim salabim abra kadabra"&lt;/em&gt; and suddenly a hill of money falling down in front of you, imposible man! To be a rich man you must learn more and more, you have to work hard, and save your money, so you will be rich.&lt;br /&gt;&lt;br /&gt;That is the mean of &lt;strong&gt;&lt;em&gt;Stop Dreaming Start Action&lt;/em&gt;&lt;/strong&gt; for me, stop your dreaming and start to take action in order all of your dreams come true. Every thing you want to achieve, you have to Stop Dreaming and Start Action as soon as. Ok, how about you... what is the meaning of Stop Dreaming Start Action? Have you done it? I hope it can be an inspiration for me, you, and all of us. Keep on &lt;strong&gt;&lt;em&gt;Stop Dreaming Start Action&lt;/em&gt;&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Indonesian language:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Stop Dreaming Start Action&lt;/em&gt;&lt;/strong&gt; merupakan sebuah frasa yang menjadi kata kunci dari &lt;a href="http://www.jokosusilo.com/2009/06/20/kontes-seo-joko-susilo-stop-dreaming-start-action-dibuka/" target="_blank"&gt;kontes SEO yang diadakan oleh situs Jokosusilo.com&lt;/a&gt;. Stop Dreaming Start Action juga merupakan slogan dari situs Jokosusilo tersebut, salah satu internet marketer dari Indonesia. Ketika kontes SEO tersebut dibuka begitu banyak bloger dari Indonesia (diperkirakan lebih dari satu ribu blogger dari Indonesia) yang ikut ambil bagian dalam kontes tersebut. Kontes SEO tersebut dimulai pada tanggal 20 Juni 2009 dan akan berakhir pada tanggal 15 September 2009, pada jam 09.00 waktu Jakarta (WIB). Dan para pemenangnya akan diumumkan pada hari itu juga. Pendaftaran akan berakhir pada tanggal 14 September 2009, satu hari sebelum kontes ditutup.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Stop Dreaming Start Action&lt;/em&gt;&lt;/strong&gt; itu sendiri memiliki arti kita jangan hanya menjadi orang yang suka bermimpi, kita harus berhenti dari bermimpi, namun sebaliknya kita harus segera melakukan suatu tindakan untuk meraih semua keinginan kita, untuk mencapai semua impian kita, untuk mencapai kesuksesan kita. Karena tiada hal akan terjadi tanpa suatu tindakan. Kesuksesan tidak akan datang dengan sendirinya tanpa dibarengi dengan kerja keras. Untuk mencapai kesuksesan kita harus berhenti dari menjadi seorang yang hanya bermimpi, dan harus melakukan suatu tindakan dengan bekerja keras sekuat tenaga.&lt;br /&gt;&lt;br /&gt;Setiap orang yang memiliki kesehatan jasmani dan kesehatan rohani sudah pasti mempunyai cita - cita, mempunyai keinginan - keinginan. Begitu juga anda dan saya tanpa kecuali pasti mempunyai keinginan - keinginan, mempunyai impian - impian. Suatu cita - cita tidak akan tercapai dengan sendirinya, kecuali dengan suatu usaha yang sungguh - sungguh, dengan bekerja keras. Anda harus &lt;strong&gt;&lt;em&gt;Stop Dreaming Start Action untuk mencapai cita - cita anda.&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Anda harus &lt;strong&gt;&lt;em&gt;Stop Dreaming Start Action.&lt;/em&gt;&lt;/strong&gt; Misalnya anda ingin menjadi seorang yang kaya raya, maka tidak mungkin dengan serta merta anda menjadi kaya raya. Tidak mungkin hanya dengan mengatakan &lt;em&gt;"bim salabim abra kadabra"&lt;/em&gt; dan kemudian segunung uang tiba - tiba &lt;strong&gt;"GEDUBRAK"&lt;/strong&gt; jatuh di hadapan anda, itu tidak mungkin dong! Untuk menjadi kaya - raya anda harus belajar dengan sungguh - sungguh dan bekerja keras dan harus rajin menabung, maka lama - lama anda akan bisa menjadi kaya.&lt;br /&gt;&lt;br /&gt;Begitulah dari sudut pandang saya bahwa &lt;strong&gt;&lt;em&gt;Stop Dreaming Start Action&lt;/em&gt;&lt;/strong&gt; memiliki arti Berhentilah dari menjadi seorang yang suka bermimpi dan mulailah berusaha agar mimpi - mimpi kita dapat menjadi kenyataan dengan cara bekerja keras. Terhadap segala sesuatu yang ingin anda capai, anda harus sesegera mungkin Stop Dreaming dan Mulai Melakukan Action. Ok, bagaimana menurut anda... apa arti dari Stop Dreaming Start Action? Apakah anda telah melakukannya? Saya berharap hal ini dapat menjadi inspirasi bagi saya, anda, dan kita semua. Tetaplah melakukan &lt;strong&gt;&lt;em&gt;Stop Dreaming Start Action&lt;/em&gt;&lt;/strong&gt; untuk menggapai cita-cita anda.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-982453338116643885?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/982453338116643885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/stop-dreaming-start-action.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/982453338116643885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/982453338116643885'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/stop-dreaming-start-action.html' title='Stop Dreaming Start Action'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/Sn0X8ieDdII/AAAAAAAAAEw/d-uxNznH0Kw/s72-c/Stop+Dreaming+Start+Action_0.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-1659460118240134637</id><published>2009-08-08T07:54:00.129+07:00</published><updated>2009-09-07T12:23:45.104+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>Form Designer Window in Visual Basic</title><content type='html'>In the earlier posting I have written about &lt;a href='http://tipsclip.blogspot.com/2009/08/whats-visual-basic-development.html'target='_blank'&gt;Visual Basic Development Environment&lt;/a&gt; wich has several elements. One of its element is &lt;a href='http://tipsclip.blogspot.com/2009/08/visual-basic-toolbox.html'target='_blank'&gt;Toolbox that contains object and controls&lt;/a&gt;, and I also already written in the next posting. Now I'll write another component, it is Visual Basic Form Designer Window. Ok, let's go on.&lt;br /&gt;&lt;br /&gt;Likes another visual programming software, Visual Basic also &lt;span class="fullpost"&gt;has Form Designer Window. When you open your Visual Basic software, and select a type of project type, it will create a Form. By default a new Visual Basic Form contains minimum parts of it. It contains Form area where you can place controls you want, Title Bar where you can place title of your Form, Minimize button, Maximize button, and close button.&lt;br /&gt;&lt;br /&gt;Look at below picture for your illustration.&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/SnzXR4s_I9I/AAAAAAAAAEo/mj5h6N_3bsM/s1600-h/VB+Form+Designer+Window.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 346px;" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/SnzXR4s_I9I/AAAAAAAAAEo/mj5h6N_3bsM/s400/VB+Form+Designer+Window.JPG" border="0" alt="Visual Basic Form Designer Window"id="BLOGGER_PHOTO_ID_5367401558197609426" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now what's the Form Designer Window used for ?&lt;br /&gt;Applications that develop with Visual Basic Programming Language usually contain one Form or more. You can design your form in a Form Designer Window by adding controls you need, arrange and set them up to make your program interface. So you can make your user friendly program. You can setup your controls at design time in this form.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-1659460118240134637?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/1659460118240134637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/form-designer-window-in-visual-basic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/1659460118240134637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/1659460118240134637'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/form-designer-window-in-visual-basic.html' title='Form Designer Window in Visual Basic'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/SnzXR4s_I9I/AAAAAAAAAEo/mj5h6N_3bsM/s72-c/VB+Form+Designer+Window.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-2746829332255013560</id><published>2009-08-07T07:28:00.195+07:00</published><updated>2009-09-07T12:23:32.969+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Sample Program'/><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>Temperature Conversion with Multiple Base in VB6</title><content type='html'>In the earlier posting you have learnt several simple VB programming tips how to convert temperature with basis &lt;a href="http://tipsclip.blogspot.com/2009/09/how-to-convert-degree-from-celcius-to.html" target="_blank"&gt;Celcius&lt;/a&gt;, &lt;a href="http://tipsclip.blogspot.com/2009/07/how-to-convert-degree-from-fahrenheit.html" target="_blank"&gt;Fahrenheit&lt;/a&gt;, &lt;a href="http://tipsclip.blogspot.com/2009/07/how-to-convert-degree-from-rheamur-to.html" target="_blank"&gt;Rheamur&lt;/a&gt; and &lt;a href="http://tipsclip.blogspot.com/2009/08/how-to-convert-degree-from-kelvin-to.html" target="_blank"&gt;Kelvin&lt;/a&gt;. In this posting you will learn how to make a simple application to convert temperature with multiple basis with VB6 programming. You can select the temperature basis when the program's running.&lt;br /&gt;&lt;br /&gt;The scenario of this simple application is as follow:&lt;br /&gt;&lt;li&gt;You can select the temperature basis when the program's running&lt;br /&gt;&lt;li&gt;Once you select a temperature basis the conversion process will occur when a value of temperature is not empty (contains a number)&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;li&gt;Also when you typing a temperature on the temperature text box conversion process will automatically occurs&lt;br /&gt;&lt;li&gt;When you typing a number in temperature box, if the basis is empty, it will be automatically set to "Celcius" as default&lt;br /&gt;&lt;br /&gt;Now, how to built your simple application? Let's go on to the simple VB programming tips.&lt;br /&gt;First, you have to create a screen design likes below image:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_8Lv2D47OOvg/SnvHXD20hvI/AAAAAAAAAEg/U-mdX3QJXHc/s1600-h/Convert+Temperature+VB6+01.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5367102579928237810" style="WIDTH: 390px; CURSOR: hand; HEIGHT: 329px" alt="Temperature Conversion Sample Program with multiple basis" src="http://2.bp.blogspot.com/_8Lv2D47OOvg/SnvHXD20hvI/AAAAAAAAAEg/U-mdX3QJXHc/s400/Convert+Temperature+VB6+01.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;How to create the screen design? Follow step by step of below instructions:&lt;br /&gt;&lt;li&gt;Open your VB program, create a project (Project1) and a standard form (Form1)&lt;br /&gt;&lt;li&gt;Create 7 label controls&lt;br /&gt;&lt;li&gt;Change the label captions into &lt;em&gt;Temperature Conversion&lt;/em&gt;, &lt;em&gt;Temperature&lt;/em&gt;, &lt;em&gt;Celcius&lt;/em&gt;, &lt;em&gt;Fahrenheit&lt;/em&gt;, &lt;em&gt;Rheamur&lt;/em&gt;, &lt;em&gt;Kelvin&lt;/em&gt;, and &lt;em&gt;Basis&lt;/em&gt;&lt;br /&gt;&lt;li&gt;Create 5 text box controls&lt;br /&gt;&lt;li&gt;Clear the text of each text box&lt;br /&gt;&lt;li&gt;Rename the text box 1,2,3,4 and 5 into TxtTem, TxtCel, TxtFah, TxtRhe, and TxtKel&lt;br /&gt;&lt;li&gt;Create a combo box&lt;br /&gt;&lt;li&gt;Clear the combo box text&lt;br /&gt;&lt;li&gt;Rename the combo box into cboBasis&lt;br /&gt;Ok, the screen design already finished. Now, what's the program coding like?&lt;br /&gt;&lt;br /&gt;Here it is the program coding. Follow the next simple VB programming tips.&lt;br /&gt;&lt;li&gt;Double-click anywhere in form1 area to create Sub Procedure Form_Load()&lt;br /&gt;&lt;li&gt;Write down below program coding in Sub Procedure Form_Load() area&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#3333ff;"&gt;    'to add items in combo box&lt;br /&gt;    cboBasis.AddItem "Celcius"&lt;br /&gt;    cboBasis.AddItem "Fahrenheit"&lt;br /&gt;    cboBasis.AddItem "Rheamur"&lt;br /&gt;    cboBasis.AddItem "Kelvin"&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;Double-click TxtTemp text box to create a Sub TxtTemp_Change()&lt;br /&gt;&lt;li&gt;Write down below program coding in the Sub TxtTemp_Change() area&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#3333ff;"&gt;    'call procedure ConvPro&lt;br /&gt;    ConvPro&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;Double-click cboBasis object&lt;br /&gt;&lt;li&gt;In the program editor window select "Click" event from drop-down list to create Sub cboBasis_Click()&lt;br /&gt;&lt;li&gt;Write down below program code in the Sub cboBasis_Click() area&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#3333ff;"&gt;    'call procedure ConvPro&lt;br /&gt;    ConvPro&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;In the program editor window click General from drop-down list&lt;br /&gt;&lt;li&gt;Write down below program code in (General) - (Declarations) area to create a Sub ConvPro()&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#3333ff;"&gt;&lt;br /&gt;   Private Sub ConvPro()&lt;br /&gt;     If TxtTemp.Text = "" Then&lt;br /&gt;        'clear the text of text boxes&lt;br /&gt;        TxtCel.Text = ""&lt;br /&gt;        TxtFah.Text = ""&lt;br /&gt;        TxtRhe.Text = ""&lt;br /&gt;        TxtKel.Text = ""&lt;br /&gt;        Exit Sub&lt;br /&gt;     End If&lt;br /&gt;&lt;br /&gt;     'if Basis is blank then fill in with "Celcius" as default&lt;br /&gt;     If cboBasis.Text = "" Then&lt;br /&gt;        cboBasis.Text = "Celcius"&lt;br /&gt;     End If&lt;br /&gt;     Select Case cboBasis.Text&lt;br /&gt;       Case "Celcius"&lt;br /&gt;          GoTo ConvCel&lt;br /&gt;       Case "Fahrenheit"&lt;br /&gt;          GoTo ConvFah&lt;br /&gt;       Case "Rheamur"&lt;br /&gt;          GoTo ConvRhe&lt;br /&gt;       Case Else&lt;br /&gt;          GoTo ConvKel&lt;br /&gt;     End Select&lt;br /&gt;&lt;br /&gt;   'conversion for celcius basis&lt;br /&gt;   ConvCel:&lt;br /&gt;      TxtCel.Text = Val(TxtTemp.Text)&lt;br /&gt;      TxtFah.Text = Val(TxtTemp.Text) * 1.8 + 32&lt;br /&gt;      TxtRhe.Text = Val(TxtTemp.Text) * 0.8&lt;br /&gt;      TxtKel.Text = Val(TxtTemp.Text) + 273.15&lt;br /&gt;      Exit Sub&lt;br /&gt;&lt;br /&gt;   'conversion for fahrenheit basis&lt;br /&gt;   ConvFah:&lt;br /&gt;      TxtFah.Text = Val(TxtTemp.Text)&lt;br /&gt;      TxtCel.Text = (Val(TxtTemp.Text) - 32) / 1.8&lt;br /&gt;      TxtRhe.Text = ((Val(TxtTemp.Text) - 32) / 1.8) * 0.8&lt;br /&gt;      TxtKel.Text = ((Val(TxtTemp.Text) - 32) / 1.8) + 273.15&lt;br /&gt;      Exit Sub&lt;br /&gt;&lt;br /&gt;   'conversion for rheamur basis&lt;br /&gt;   ConvRhe:&lt;br /&gt;      TxtRhe.Text = Val(TxtTemp.Text)&lt;br /&gt;      TxtCel.Text = Val(TxtTemp.Text) / 0.8&lt;br /&gt;      TxtFah.Text = ((Val(TxtTemp.Text) / 0.8) * 1.8) + 32&lt;br /&gt;      TxtKel.Text = (Val(TxtTemp.Text) / 0.8) + 273.15&lt;br /&gt;      Exit Sub&lt;br /&gt;&lt;br /&gt;   'conversion for kelvin basis&lt;br /&gt;   ConvKel:&lt;br /&gt;      TxtKel.Text = Val(TxtTemp.Text)&lt;br /&gt;      TxtCel.Text = Val(TxtTemp.Text) - 273.15&lt;br /&gt;      TxtRhe.Text = (Val(TxtTemp.Text) - 273.15) * 0.8&lt;br /&gt;      TxtFah.Text = ((Val(TxtTemp.Text) - 273.15) * 1.8) + 32&lt;br /&gt;   End Sub&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;So your program will look like below listing:&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#009900;"&gt;   Private Sub ConvPro()&lt;br /&gt;      If TxtTemp.Text = "" Then&lt;br /&gt;         'clear text of text boxex&lt;br /&gt;         TxtCel.Text = ""&lt;br /&gt;         TxtFah.Text = ""&lt;br /&gt;         TxtRhe.Text = ""&lt;br /&gt;         TxtKel.Text = ""&lt;br /&gt;         Exit Sub&lt;br /&gt;      End If&lt;br /&gt;      'if Basis is blank then fill in with "Celcius"&lt;br /&gt;      If cboBasis.Text = "" Then&lt;br /&gt;         cboBasis.Text = "Celcius"&lt;br /&gt;      End If&lt;br /&gt;      Select Case cboBasis.Text&lt;br /&gt;         Case "Celcius"&lt;br /&gt;            GoTo ConvCel&lt;br /&gt;         Case "Fahrenheit"&lt;br /&gt;            GoTo ConvFah&lt;br /&gt;         Case "Rheamur"&lt;br /&gt;            GoTo ConvRhe&lt;br /&gt;         Case Else&lt;br /&gt;            GoTo ConvKel&lt;br /&gt;      End Select&lt;br /&gt;&lt;br /&gt;   'conversion for celcius basis&lt;br /&gt;   ConvCel:&lt;br /&gt;         TxtCel.Text = Val(TxtTemp.Text)&lt;br /&gt;         TxtFah.Text = Val(TxtTemp.Text) * 1.8 + 32&lt;br /&gt;         TxtRhe.Text = Val(TxtTemp.Text) * 0.8&lt;br /&gt;         TxtKel.Text = Val(TxtTemp.Text) + 273.15&lt;br /&gt;         Exit Sub&lt;br /&gt;&lt;br /&gt;   'conversion for fahrenheit basis&lt;br /&gt;   ConvFah:&lt;br /&gt;         TxtFah.Text = Val(TxtTemp.Text)&lt;br /&gt;         TxtCel.Text = (Val(TxtTemp.Text) - 32) / 1.8&lt;br /&gt;         TxtRhe.Text = ((Val(TxtTemp.Text) - 32) / 1.8) * 0.8&lt;br /&gt;         TxtKel.Text = ((Val(TxtTemp.Text) - 32) / 1.8) + 273.15&lt;br /&gt;         Exit Sub&lt;br /&gt;&lt;br /&gt;   'conversion for rheamur basis&lt;br /&gt;   ConvRhe:&lt;br /&gt;         TxtRhe.Text = Val(TxtTemp.Text)&lt;br /&gt;         TxtCel.Text = Val(TxtTemp.Text) / 0.8&lt;br /&gt;         TxtFah.Text = ((Val(TxtTemp.Text) / 0.8) * 1.8) + 32&lt;br /&gt;         TxtKel.Text = (Val(TxtTemp.Text) / 0.8) + 273.15&lt;br /&gt;         Exit Sub&lt;br /&gt;&lt;br /&gt;   'conversion for kelvin basis&lt;br /&gt;   ConvKel:&lt;br /&gt;         TxtKel.Text = Val(TxtTemp.Text)&lt;br /&gt;         TxtCel.Text = Val(TxtTemp.Text) - 273.15&lt;br /&gt;         TxtRhe.Text = (Val(TxtTemp.Text) - 273.15) * 0.8&lt;br /&gt;         TxtFah.Text = ((Val(TxtTemp.Text) - 273.15) * 1.8) + 32&lt;br /&gt;&lt;br /&gt;   End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   Private Sub cboBasis_Click()&lt;br /&gt;      'call procedure ConvPro&lt;br /&gt;      ConvPro&lt;br /&gt;   End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   Private Sub Form_Load()&lt;br /&gt;      'to add items in combo box&lt;br /&gt;      cboBasis.AddItem "Celcius"&lt;br /&gt;      cboBasis.AddItem "Fahrenheit"&lt;br /&gt;      cboBasis.AddItem "Rheamur"&lt;br /&gt;      cboBasis.AddItem "Kelvin"&lt;br /&gt;   End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   Private Sub TxtTemp_Change()&lt;br /&gt;      'call procedure ConvPro&lt;br /&gt;      ConvPro&lt;br /&gt;   End Sub&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;Run your program by clicking Start button on your VB Toolbar&lt;br /&gt;&lt;li&gt;Type a number in the text box with label Temperature&lt;br /&gt;&lt;li&gt;Select and click different Base from the list on the combo box&lt;br /&gt;What happen? The conversion should automatically occurs, so the results appear on the each text box. Look at below image for your illustration. Your program should look like it.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_8Lv2D47OOvg/Sn0y7D1-IpI/AAAAAAAAAFI/brf3mgAmSk8/s1600-h/Convert+Temperature+VB6+02.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5367502321120846482" style="WIDTH: 361px; CURSOR: hand; HEIGHT: 272px" alt="Simple VB Program Temperature Conversion with Multiple Basis" src="http://2.bp.blogspot.com/_8Lv2D47OOvg/Sn0y7D1-IpI/AAAAAAAAAFI/brf3mgAmSk8/s400/Convert+Temperature+VB6+02.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-2746829332255013560?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/2746829332255013560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/temperature-conversion-with-multiple.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/2746829332255013560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/2746829332255013560'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/temperature-conversion-with-multiple.html' title='Temperature Conversion with Multiple Base in VB6'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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://2.bp.blogspot.com/_8Lv2D47OOvg/SnvHXD20hvI/AAAAAAAAAEg/U-mdX3QJXHc/s72-c/Convert+Temperature+VB6+01.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-3604181348674457235</id><published>2009-08-06T07:13:00.209+07:00</published><updated>2009-09-07T12:42:58.314+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>Visual Basic Toolbox</title><content type='html'>The Visual Baisc Toolbox contains the objects and controls that you can add to forms to create the user interface of your VB applications. In the next time I'll explain how to place the controls from toolbox into Visual Basic Screen Design area in Screen Design Window.  This toolbox is the General Toolbox. There is also a Datareport Toolbox that contains objects and controls that you can use for your Datareport design.&lt;br /&gt;&lt;br /&gt;You can add additional controls to the Toolbox by using Components command on the &lt;span class="fullpost"&gt;Project menu. Also you can right-click anywhere in the Toolbox and select Component from the pop up menu.&lt;br /&gt;Look at below screen shot for your illustration.&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_8Lv2D47OOvg/SnokSodMzpI/AAAAAAAAAEA/0XwGHe4xl8A/s1600-h/VB+Toolbox.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 268px; height: 202px;" src="http://3.bp.blogspot.com/_8Lv2D47OOvg/SnokSodMzpI/AAAAAAAAAEA/0XwGHe4xl8A/s400/VB+Toolbox.JPG" border="0" alt="Visual Basic Toolbox contains controls"id="BLOGGER_PHOTO_ID_5366641808481504914" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Below is a simple VB programming tips how to add controls to the Toolbox. Keep on reading the tips.&lt;br /&gt;&lt;li&gt;Click Project menu on your Visual Basic Toolbar&lt;br /&gt;&lt;li&gt;Click Components menu&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_8Lv2D47OOvg/Snoo62fwg8I/AAAAAAAAAEI/ykue_B-MafU/s1600-h/VB+Toolbox+01.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 253px; height: 330px;" src="http://4.bp.blogspot.com/_8Lv2D47OOvg/Snoo62fwg8I/AAAAAAAAAEI/ykue_B-MafU/s400/VB+Toolbox+01.JPG" border="0" alt="Add components to Your Visual Basic Toolbox"id="BLOGGER_PHOTO_ID_5366646897491608514" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;A Components window will appear on your screen.&lt;br /&gt;&lt;li&gt;Click check box of the components you want to add (in the left of component's description)&lt;br /&gt;&lt;li&gt;Click OK to close the components windows&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_8Lv2D47OOvg/SnopJ0S29JI/AAAAAAAAAEQ/HV-r7SFelOY/s1600-h/VB+Toolbox+02.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 362px;" src="http://2.bp.blogspot.com/_8Lv2D47OOvg/SnopJ0S29JI/AAAAAAAAAEQ/HV-r7SFelOY/s400/VB+Toolbox+02.JPG" border="0" alt="Click the component you want in Component Window"id="BLOGGER_PHOTO_ID_5366647154598671506" /&gt;&lt;/a&gt;It is a very easy thing to do!&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-3604181348674457235?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/3604181348674457235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/visual-basic-toolbox.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/3604181348674457235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/3604181348674457235'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/visual-basic-toolbox.html' title='Visual Basic Toolbox'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/SnokSodMzpI/AAAAAAAAAEA/0XwGHe4xl8A/s72-c/VB+Toolbox.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-8817387093693348294</id><published>2009-08-04T07:27:00.265+07:00</published><updated>2009-09-07T12:42:43.428+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>What's Visual Basic Development Environment ?</title><content type='html'>When you start your Visual Basic and select a project type, a graphical development environment appears on your screen. In this Visual Basic Development Environment you can develop your Visual Basic applications. You can design your Visual Basic program interface and write your program code. And also you can run your Visual Basic Program for testing and compile them.&lt;br /&gt;&lt;br /&gt;Development Environment in Visual Basic has several elements, such as:&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;li&gt;Visual Basic Project&lt;br /&gt;&lt;li&gt;Visual Basic Standard Toolbar&lt;br /&gt;&lt;li&gt;Visual Basic Toolbox&lt;br /&gt;&lt;li&gt;Visual Basic Form Designer&lt;br /&gt;&lt;li&gt;Visual Basic Project Explorer Window&lt;br /&gt;&lt;li&gt;Visual Basic Properties Window&lt;br /&gt;&lt;li&gt;Visual Basic Code Editor Window&lt;br /&gt;&lt;li&gt;Visual Basic Immediate Window&lt;br /&gt;&lt;br /&gt;Each elements has specific funcions, however they all make easy to develop your VB applications.&lt;br /&gt;Look at below image for your illustration.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_8Lv2D47OOvg/SneJYmJSQ9I/AAAAAAAAAD4/h8OWpYa4v_g/s1600-h/Visual+Basic+Development+Environment.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://2.bp.blogspot.com/_8Lv2D47OOvg/SneJYmJSQ9I/AAAAAAAAAD4/h8OWpYa4v_g/s400/Visual+Basic+Development+Environment.JPG" border="0" alt="Your Visual Basic Development Environment"id="BLOGGER_PHOTO_ID_5365908536684594130" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In the next posting I will explain each above component, what they used for, and how to use them.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-8817387093693348294?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/8817387093693348294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/whats-visual-basic-development.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/8817387093693348294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/8817387093693348294'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/whats-visual-basic-development.html' title='What&apos;s Visual Basic Development Environment ?'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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://2.bp.blogspot.com/_8Lv2D47OOvg/SneJYmJSQ9I/AAAAAAAAAD4/h8OWpYa4v_g/s72-c/Visual+Basic+Development+Environment.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-3493641098362400474</id><published>2009-08-03T07:40:00.289+07:00</published><updated>2009-09-07T12:42:29.258+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>How to Save Your VB Program?</title><content type='html'>In the pervious posting I have written a tips &lt;a href="http://tipsclip.blogspot.com/2009/08/how-to-start-using-vb-6-programming.html" target="_blank"&gt;how to start using VB6 programming software&lt;/a&gt;. When you open your VB program software a project (Project1) and a form (Form1) automatically created. These are your VB programs. However at the moment they just saved in the memory of your computer, so if suddenly your computer is off the programm will loose from your computer memory. You can't use your programm you have created next time before you save them into your harddisk. In order you can use your programm next time you must save your programm into your harddisk. After you save your programs into your harddisk you can reopen, reuse and edit your programs whenever you want.&lt;br /&gt;&lt;br /&gt;Now, how to save your VB program into your harddisk? Keep on reading below simple VB programming tips.&lt;span class="fullpost"&gt;&lt;br /&gt;It's just a simple way to do. It's a good thing before you save your programs, you have to define first "&lt;em&gt;what your VB project name&lt;/em&gt;", "&lt;em&gt;what your VB form name&lt;/em&gt;", and "&lt;em&gt;where your program will be saved in(which folder)&lt;/em&gt;".&lt;br /&gt;&lt;br /&gt;For example you will save your program in a folder called &lt;em&gt;D:\MyVBPrg&lt;/em&gt;, and your project name is &lt;em&gt;MyFirstProj&lt;/em&gt;, and your form is &lt;em&gt;MyFirstForm&lt;/em&gt;. Now, lets do the following instructions to save your VB program:&lt;br /&gt;&lt;li&gt;Open your windows Explorer, then create a folder called &lt;em&gt;MyVBPrg&lt;/em&gt; in drive D:&lt;br /&gt;&lt;li&gt;Click menu File on your VB design screen&lt;br /&gt;&lt;li&gt;Click menu &lt;em&gt;Save Project As...&lt;/em&gt;&lt;br /&gt;Look at below screen shot.&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/SnZuc4sRq7I/AAAAAAAAADQ/1_u-EPicIHI/s1600-h/Save+Program.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5365597448592010162" style="WIDTH: 233px; CURSOR: hand; HEIGHT: 400px" alt="How to Save Your VB Program" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/SnZuc4sRq7I/AAAAAAAAADQ/1_u-EPicIHI/s400/Save+Program.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then a &lt;em&gt;Save File As&lt;/em&gt; window will appear on your screen.&lt;br /&gt;&lt;li&gt;Type &lt;em&gt;MyFirstForm&lt;/em&gt; in the cell with label &lt;em&gt;File Name&lt;/em&gt;:&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_8Lv2D47OOvg/SnZvFjZDKxI/AAAAAAAAADY/NdgJb499blQ/s1600-h/Save+Program+01.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5365598147248859922" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 278px" alt="How to Save VB Program - Type Form Name" src="http://2.bp.blogspot.com/_8Lv2D47OOvg/SnZvFjZDKxI/AAAAAAAAADY/NdgJb499blQ/s400/Save+Program+01.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Click the cell with label &lt;em&gt;Save in:&lt;/em&gt;&lt;br /&gt;&lt;li&gt;Choose the folder &lt;em&gt;D:\MyVBPrg&lt;/em&gt;&lt;br /&gt;&lt;li&gt;Click &lt;em&gt;Save&lt;/em&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_8Lv2D47OOvg/SnZv0JHK33I/AAAAAAAAADg/Iy2GqhaFCw8/s1600-h/Save+Program+02.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5365598947648397170" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 279px" alt="How to Save VB Program - Select Folder" src="http://3.bp.blogspot.com/_8Lv2D47OOvg/SnZv0JHK33I/AAAAAAAAADg/Iy2GqhaFCw8/s400/Save+Program+02.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then a &lt;em&gt;Save Project As&lt;/em&gt; window will appears on your screen&lt;br /&gt;&lt;li&gt;Type &lt;em&gt;MyFirstProj&lt;/em&gt; in the cell with label &lt;em&gt;File Name&lt;/em&gt;&lt;br /&gt;&lt;li&gt;Click &lt;em&gt;Save&lt;/em&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_8Lv2D47OOvg/SnZwCjlvEQI/AAAAAAAAADo/YhHP6o_wvsQ/s1600-h/Save+Program+03.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5365599195274088706" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 279px" alt="How to Save VB Program - Click Save" src="http://2.bp.blogspot.com/_8Lv2D47OOvg/SnZwCjlvEQI/AAAAAAAAADo/YhHP6o_wvsQ/s400/Save+Program+03.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now your program's been saved already in folder &lt;em&gt;D:\MyVBPrg&lt;/em&gt; with file name &lt;em&gt;MyFirstProj.vbp&lt;/em&gt; (a VB Project file) and &lt;em&gt;MyFirstForm.frm&lt;/em&gt; (a VB Form file). The extention &lt;em&gt;.vbp&lt;/em&gt; and &lt;em&gt;.frm&lt;/em&gt; are automatically given by Visual Basic software. Look at below image for your illustration.&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/SnZwghqyGUI/AAAAAAAAADw/8hg-KXZwt-c/s1600-h/Save+Program+04.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5365599710154463554" style="WIDTH: 217px; CURSOR: hand; HEIGHT: 186px" alt="This is your VB Program" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/SnZwghqyGUI/AAAAAAAAADw/8hg-KXZwt-c/s400/Save+Program+04.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Have you any comment? Please write down your commant in below comment box.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-3493641098362400474?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/3493641098362400474/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/how-to-save-your-vb-programme.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/3493641098362400474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/3493641098362400474'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/how-to-save-your-vb-programme.html' title='How to Save Your VB Program?'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/SnZuc4sRq7I/AAAAAAAAADQ/1_u-EPicIHI/s72-c/Save+Program.JPG' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-8156351014044583736</id><published>2009-08-02T12:11:00.289+07:00</published><updated>2009-09-07T12:42:16.069+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>How to Start Using VB 6 Programming ?</title><content type='html'>You can find out the right order of the postings in a posting with title. &lt;a href='http://tipsclip.blogspot.com/2009/07/contents.html'&gt;"Contents"&lt;/a&gt;. This posting for you who using VB6 programming software for the first time.&lt;br /&gt;&lt;br /&gt;Before you start using VB6 programming software, you must have a VB6 software installed in your computer with Operating System Windows family. To start using it you can follow below instructions.&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;li&gt;Click Windows Start&lt;br /&gt;&lt;li&gt;Point to Program menu&lt;br /&gt;&lt;li&gt;Point to Microsoft Visual Basic 6.0 menu&lt;br /&gt;&lt;li&gt;Click Microsoft Visual Basic 6.0 program&lt;br /&gt;Please look at below image for your illustration:&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_8Lv2D47OOvg/SnUjZmqUYeI/AAAAAAAAAC4/Gloj7MMAz6k/s1600-h/Start+VB6.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 275px;" src="http://2.bp.blogspot.com/_8Lv2D47OOvg/SnUjZmqUYeI/AAAAAAAAAC4/Gloj7MMAz6k/s400/Start+VB6.JPG" border="0" alt="How to Open Your VB Software"id="BLOGGER_PHOTO_ID_5365233453863559650" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Click Open&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/SnUk9c-MnrI/AAAAAAAAADA/GUoH_uKGMIs/s1600-h/Start+VB6+01.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/SnUk9c-MnrI/AAAAAAAAADA/GUoH_uKGMIs/s400/Start+VB6+01.JPG" border="0" alt="Click the Project Type, then Click Open"id="BLOGGER_PHOTO_ID_5365235169249500850" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;A VB project (Project1) and a Form (Form1) are automatically created. Now you are ready to design and create your VB6 program. Look at below picture for illustration.&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_8Lv2D47OOvg/SnUmGxs_a8I/AAAAAAAAADI/_rYVU8zAipk/s1600-h/Start+VB6+02.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://2.bp.blogspot.com/_8Lv2D47OOvg/SnUmGxs_a8I/AAAAAAAAADI/_rYVU8zAipk/s400/Start+VB6+02.JPG" border="0" alt="You can Develop your VB Application here"id="BLOGGER_PHOTO_ID_5365236428944927682" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;What do you think? Please write down in below comment box.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-8156351014044583736?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/8156351014044583736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/how-to-start-using-vb-6-programming.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/8156351014044583736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/8156351014044583736'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/how-to-start-using-vb-6-programming.html' title='How to Start Using VB 6 Programming ?'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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://2.bp.blogspot.com/_8Lv2D47OOvg/SnUjZmqUYeI/AAAAAAAAAC4/Gloj7MMAz6k/s72-c/Start+VB6.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-7668366739803428280</id><published>2009-08-01T12:07:00.316+07:00</published><updated>2009-09-07T12:42:01.887+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Sample Program'/><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>How to Convert Degree from Kelvin to Another in VB 6 Programming?</title><content type='html'>In this posting I will write a simple VB programming tips "How to convert degree from Kelvin into Celcius, Fahrenheit and Rheamur" using VB6 programming. Let's go on to the simple tips.&lt;br /&gt;We have &lt;a href="http://tipsclip.blogspot.com/2009/09/how-to-convert-degree-from-celcius-to.html" target="_blank"&gt;three previous conversion formulas (Celcius base) as follow&lt;/a&gt; in the erlier postings:&lt;br /&gt;&lt;span style="color:#330099;"&gt;&lt;strong&gt;Fahrenheit = ( Celcius X 1.8 ) + 32&lt;br /&gt;Rheamur = Celcius X 0.8&lt;br /&gt;Kelvin = Celcius + 273.15&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;From previous formulas we got another three formulas with Kelvin degree basis as the following:&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;span style="color:#330099;"&gt;&lt;strong&gt;Celcius = Kelvin - 273.15&lt;br /&gt;Fahrenheit = ( ( Kelvin - 273.15 ) X 1.8 ) + 32&lt;br /&gt;Rheamur = ( Kelvin - 273.15 ) X 0.8&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Let's implement these formulas in a simple VB6 programming.&lt;br /&gt;First you should create a screen design like below image (just a simple screen design):&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_8Lv2D47OOvg/SnPbr0Cu7cI/AAAAAAAAACo/CU_N2agnPk8/s1600-h/Convert+Degree+07.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5364873126879358402" style="WIDTH: 322px; CURSOR: hand; HEIGHT: 242px" alt="Design Simple VB6 Program - Degree Conversion" src="http://3.bp.blogspot.com/_8Lv2D47OOvg/SnPbr0Cu7cI/AAAAAAAAACo/CU_N2agnPk8/s400/Convert+Degree+07.JPG" border="0" /&gt;&lt;/a&gt; &lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;How to create this screen design? Follow below instructions for the tips.&lt;br /&gt;&lt;li&gt;Open your Visual Basic6 program software&lt;br /&gt;&lt;li&gt;Create a project for example Project1&lt;br /&gt;&lt;li&gt;Create a standard form for example Form1&lt;br /&gt;&lt;li&gt;Create 5 labels for example Label1, Label2, Label3, Label4, Label5&lt;br /&gt;&lt;li&gt;Create 4 text boxes for example Text1, Text2, Text3, Text4&lt;br /&gt;&lt;li&gt;Click Label1 object so properties of Label1 appears&lt;br /&gt;&lt;li&gt;Change its Caption into "Degree Conversion", and change its Font Size into 14&lt;br /&gt;&lt;li&gt;Click Label2, and change its Caption into "Kelvin"&lt;br /&gt;&lt;li&gt;Like Label2 do with the same way for Label3, Label4, Label5 and change their Captions into "Celius", "Fahrenheit" and "Rheamur"&lt;br /&gt;&lt;li&gt;Click Command1, change its Caption into "Convert", and change its Name into "cmdConvert"&lt;br /&gt;&lt;li&gt;Click Text1, delete its Text, and change its Name into "txtKelvin"&lt;br /&gt;&lt;li&gt;Do with the same way for Text2, Text3, Text4 and change their Names into "txtCelcius", "txtFahrenheit", and "txtRheamur"&lt;br /&gt;&lt;li&gt;Double click cmdConvert (the command button with Caption "Convert") to create a Sub cmdConvert_Click()&lt;br /&gt;&lt;li&gt;Write down the following program coding in the Sub cmdConvert_Click() area&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;'conversion process&lt;br /&gt;txtCelcius.Text = Val(txtKelvin.Text) - 273.15&lt;br /&gt;txtRheamur.Text = (Val(txtKelvin.Text) - 273.15) * 0.8&lt;br /&gt;txtFahrenheit.Text = ((Val(txtKelvin.Text) - 273.15) * 1.8) + 32&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Your program will look like below coding:&lt;br /&gt;&lt;span style="color:#009900;"&gt;Private Sub cmdConvert_Click()&lt;br /&gt;'conversion process&lt;br /&gt;txtCelcius.Text = Val(txtKelvin.Text) - 273.15&lt;br /&gt;txtRheamur.Text = (Val(txtKelvin.Text) - 273.15) * 0.8&lt;br /&gt;txtFahrenheit.Text = ((Val(txtKelvin.Text) - 273.15) * 1.8) + 32&lt;br /&gt;End Sub&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Now the time to test your program.&lt;br /&gt;&lt;li&gt;Run your program by clicking Start button on your VB Toolbar&lt;br /&gt;&lt;li&gt;Type a number for example 373.15 in "Kelvin" text box &lt;br /&gt;&lt;li&gt;Click command Convert&lt;br /&gt;&lt;li&gt;Look at the results on Celcius, Fahrenheit and Rheamur text box, they should be 100, 212 and 80&lt;br /&gt;&lt;br /&gt;Look at below image, and your result should look like it.&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/SnPcKZQ2yFI/AAAAAAAAACw/5OtPSDb2xgk/s1600-h/Convert+Degree+08.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5364873652266780754" style="WIDTH: 320px; CURSOR: hand; HEIGHT: 240px" alt="Simple VB Program Degree Conversion from Kelvin" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/SnPcKZQ2yFI/AAAAAAAAACw/5OtPSDb2xgk/s400/Convert+Degree+08.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;What about your idea? Any comment?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-7668366739803428280?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/7668366739803428280/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/08/how-to-convert-degree-from-kelvin-to.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/7668366739803428280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/7668366739803428280'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/08/how-to-convert-degree-from-kelvin-to.html' title='How to Convert Degree from Kelvin to Another in VB 6 Programming?'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/SnPbr0Cu7cI/AAAAAAAAACo/CU_N2agnPk8/s72-c/Convert+Degree+07.JPG' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-1114920562570196200</id><published>2009-07-29T07:28:00.318+07:00</published><updated>2009-09-07T12:41:31.212+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Sample Program'/><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>How to Convert Degree from Fahrenheit to Another in VB 6 Programming?</title><content type='html'>&lt;p&gt;In the previous posting I've told you a simple VB programming tips &lt;a href="http://tipsclip.blogspot.com/2009/09/how-to-convert-degree-from-celcius-to.html" target="_blank"&gt;"How to convert degree from Celcius into another one"&lt;/a&gt;. In this posting I'll tell you a tips "How to convert degree from Fahrenheit into another one", so the base degree is Fahrenheit. It will be converted into Celcius, Rheamur and Kelvin. As we know that we have three previous conversion formulas (Celcius base):&lt;br /&gt;&lt;span style="color:#330099;"&gt;&lt;strong&gt;Fahrenheit = ( Celcius X 1.8 ) + 32&lt;br /&gt;Rheamur = Celcius X 0.8&lt;br /&gt;Kelvin = Celcius + 273.15&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;From above formulas, we are able to generate three other formulas (Fahrenheit base) as below:&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;span style="color:#330099;"&gt;&lt;strong&gt;Celcius = ( Fahrenheit - 32 ) / 1.8&lt;br /&gt;Rheamur = ( ( Fahrenheit - 32 ) / 1.8 ) X 0.8&lt;br /&gt;Kelvin = ( ( Fahrenheit - 32 ) / 1.8 ) + 273.15&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now let's implement these formulas in VB6 simple programming. Please follow below steps for your tips!&lt;br /&gt;&lt;li&gt;Create a VB project for example Project1&lt;br /&gt;&lt;li&gt;Create a VB standard form for example Form1&lt;br /&gt;&lt;li&gt;Create 5 labels for example Label1, Label2, Label3, Label4, Label5&lt;br /&gt;&lt;li&gt;Go to Label1 properties by clicking Label1 object, and then change Label1 Caption into "Degree Conversion", and change Font Size into 14.&lt;br /&gt;&lt;li&gt;Go to Label2 properties, and then change Label2 Caption into "Fahrenheit"&lt;br /&gt;&lt;li&gt;Go to Label3 properties, and then change Label3 Caption into "Celcius"&lt;br /&gt;&lt;li&gt;Go to Label4 properties, and then change Label4 Caption into "Rheamur"&lt;br /&gt;&lt;li&gt;Go to Label5 properties, and then change Label5 Caption into "Kelvin"&lt;br /&gt;&lt;li&gt;Create 4 text boxes for example Text1, Text2, Text3, Text4&lt;br /&gt;&lt;li&gt;Create a command button for example Command1&lt;br /&gt;&lt;li&gt;Go to Command1 properties, and change Command1 caption into "Convert"&lt;br /&gt;&lt;br /&gt;So your design will look like below image (just a simple Screen Design):&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/Sm_NDkDFJaI/AAAAAAAAACE/CfMTsIYM3-8/s1600-h/Convert+Degree+03.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5363731142321448354" style="WIDTH: 319px; CURSOR: hand; HEIGHT: 238px" alt="" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/Sm_NDkDFJaI/AAAAAAAAACE/CfMTsIYM3-8/s400/Convert+Degree+03.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Double click any where in Form1 area to create a Sub Form_Load()&lt;br /&gt;Write down below program coding in the Sub Form_Load() area&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#3333ff;"&gt;    'to clear the content of text boxes&lt;br /&gt;    Text1.Text = ""&lt;br /&gt;    Text2.Text = ""&lt;br /&gt;    Text3.Text = ""&lt;br /&gt;    Text4.Text = ""&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;Double click Command1 command button (with caption "Convert") to create a Sub Command1_Click()&lt;br /&gt;Write down below program coding in the Sub Command1_Click() area&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#3333ff;"&gt;    'conversion process&lt;br /&gt;    'Text1 represents Fahrenheit&lt;br /&gt;    'Text2 represents Celcius&lt;br /&gt;    'Text3 represents Rheamur&lt;br /&gt;    'Text4 represents Kelvin&lt;br /&gt;    Text2.Text = (Val(Text1.Text) - 32) / 1.8&lt;br /&gt;    Text3.Text = ((Val(Text1.Text) - 32) / 1.8) * 0.8&lt;br /&gt;    Text4.Text = ((Val(Text1.Text) - 32) / 1.8) + 273.15&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;So your program should look like below listing:&lt;br /&gt;&lt;span style="color:#009900;"&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;strong&gt;Private Sub Command1_Click()&lt;/strong&gt;&lt;br /&gt;    'conversion process&lt;br /&gt;    'Text1 represents Fahrenheit&lt;br /&gt;    'Text2 represents Celcius&lt;br /&gt;    'Text3 represents Rheamur&lt;br /&gt;    'Text4 represents Kelvin&lt;br /&gt;    Text2.Text = (Val(Text1.Text) - 32) / 1.8&lt;br /&gt;    Text3.Text = ((Val(Text1.Text) - 32) / 1.8) * 0.8&lt;br /&gt;    Text4.Text = ((Val(Text1.Text) - 32) / 1.8) + 273.15&lt;br /&gt;&lt;strong&gt;End Sub&lt;/strong&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;strong&gt;Private Sub Form_Load()&lt;/strong&gt;&lt;br /&gt;    'to clear the content of text boxes&lt;br /&gt;    Text1.Text = ""&lt;br /&gt;    Text2.Text = ""&lt;br /&gt;    Text3.Text = ""&lt;br /&gt;    Text4.Text = ""&lt;br /&gt;&lt;strong&gt;End Sub&lt;/strong&gt;&lt;/p&gt;&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;Note: In this simple VB program we haven't used variables yet, but we just use controls from Toolbox. Mybe in the next program we will use variables.&lt;br /&gt;&lt;br /&gt;Ok, your program finish. Test your program by clicking Start button on your VB toolbar to know whether your program's working properly or not.&lt;br /&gt;&lt;li&gt;Type a number in Text1 for example 212 (in the text box with label "Fahrenheit")&lt;br /&gt;&lt;li&gt;Click command button with label "Convert"&lt;br /&gt;If the results are 100 in Text2 (Celcius), 80 in Text3 (Rheamur), and 373.15 in Text4 (Kelvin), it means that your program is correct and working properly.&lt;br /&gt;Look at below image for your illustration. Your program should like it.&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/Sm_NRSUGoTI/AAAAAAAAACM/nvrFRwlg_oA/s1600-h/Convert+Degree+04.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5363731378079179058" style="WIDTH: 320px; CURSOR: hand; HEIGHT: 239px" alt="A Simple VB Program Degree Conversion from Fahrenheit" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/Sm_NRSUGoTI/AAAAAAAAACM/nvrFRwlg_oA/s400/Convert+Degree+04.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It's an easy simple VB program isn't it? Would you like to try it?&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;/li&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-1114920562570196200?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/1114920562570196200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/07/how-to-convert-degree-from-fahrenheit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/1114920562570196200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/1114920562570196200'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/07/how-to-convert-degree-from-fahrenheit.html' title='How to Convert Degree from Fahrenheit to Another in VB 6 Programming?'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/Sm_NDkDFJaI/AAAAAAAAACE/CfMTsIYM3-8/s72-c/Convert+Degree+03.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-7927305575807798619</id><published>2009-07-25T13:09:00.330+07:00</published><updated>2009-09-07T12:41:13.110+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Sample Program'/><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Table of Contents'/><title type='text'>Table of Contents</title><content type='html'>&lt;table border="2" width="100%"&gt;&lt;tr&gt;&lt;td width="100%"&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/08/stop-dreaming-start-action.html"&gt;&lt;span style="font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;Stop Dreaming Start Action&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/08/how-to-start-using-vb-6-programming.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;How to Start Using VB 6 Programming?&lt;/span&gt;&lt;/a&gt;&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/08/how-to-save-your-vb-programme.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;How to Save Your VB Program?&lt;/span&gt;&lt;/a&gt;&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/08/whats-visual-basic-development.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;What's Visual Basic Development Environment ?&lt;/span&gt;&lt;/a&gt;&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/08/8-basic-steps-to-create-program-in.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;8 Basic Steps to Create Program in Visual Basic&lt;/span&gt;&lt;/a&gt;&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/08/visual-basic-toolbox.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;Visual Basic Toolbox&lt;/span&gt;&lt;/a&gt;&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/08/form-designer-window-in-visual-basic.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;Form Designer Window in Visual Basic&lt;/span&gt;&lt;/a&gt;&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/08/visual-basic-properties-window.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;Visual Basic Properties Window&lt;/span&gt;&lt;/a&gt;&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/08/project-explorer-window-in-visual-basic.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;Project Explorer Window in Visual Basic&lt;/span&gt;&lt;/a&gt;&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/08/code-editor-window-in-visual-basic.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;Visual Basic Code Editor Window&lt;/span&gt;&lt;/a&gt;&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/08/visual-basic-standard-toolbar.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;Visual Basic Standard Toolbar&lt;/span&gt;&lt;/a&gt;&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/08/withend-with-statement-to-set.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;With..End With Statement to Set Object Properties in VB6&lt;/span&gt;&lt;/a&gt;&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/07/how-to-copy-image-or-picture-to.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;How to Copy an Image or Picture to Clipboard in VB 6 Programming?&lt;/span&gt;&lt;/a&gt;&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/07/how-to-convert-numbers-into-letters-in_15.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;How to Convert Numbers into Letters in VB 6 Programming?&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:130%;"&gt;&lt;/span&gt;&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/07/how-to-automate-convert-numbers-into.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;How to Automate Conversion Numbers into Letters in VB 6 Programming?&lt;/span&gt;&lt;/a&gt;&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/09/how-to-convert-degree-from-celcius-to.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;How to Convert Degree from Celcius to Another in VB 6 Programming&lt;/span&gt;&lt;/a&gt;?&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/07/how-to-convert-degree-from-fahrenheit.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;How to Convert Degree from Fahrenheit to Another in VB 6 Programming?&lt;/span&gt;&lt;/a&gt;&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/09/how-to-convert-degree-from-rheamur-to.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;How to Convert Degree from Rheamur to Another in VB 6 Programming?&lt;/span&gt;&lt;/a&gt;&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/08/how-to-convert-degree-from-kelvin-to.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;How to Convert Degree from Kelvin to Another in VB 6 Programming?&lt;/span&gt;&lt;/a&gt;&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/08/temperature-conversion-with-multiple.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;Temperature Conversion with Multiple Base in VB6 Programming?&lt;/span&gt;&lt;/a&gt;&lt;hr&gt;&lt;li&gt;&lt;a href="http://tipsclip.blogspot.com/2009/08/ifthenelseend-if-statement-in-vb6.html" target="_blank"&gt;&lt;span style="font-size:130%;color:#990000;"&gt;If..Then..Else..End If VB6 Sample Program 1&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;      &lt;/ol&gt;&lt;br /&gt;    &lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-7927305575807798619?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/7927305575807798619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/07/contents.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/7927305575807798619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/7927305575807798619'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/07/contents.html' title='Table of Contents'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-7118872705257084317</id><published>2009-07-22T13:06:00.313+07:00</published><updated>2009-09-07T12:40:51.774+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Sample Program'/><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>How to Automate Conversion Numbers into Letters in VB 6 Programming?</title><content type='html'>How to automate conversion numbers? In the previous posting you have learnt &lt;a href="http://tipsclip.blogspot.com/2009/07/how-to-convert-numbers-into-letters-in_15.html" target="_blank"&gt;how to convert numbers into letters with &lt;em&gt;Select Case..End Select&lt;/em&gt; control structure, &lt;em&gt;If..Then..Else..End If&lt;/em&gt; control structure, and command button&lt;/a&gt;. The conversion will be processed after you clik command button. In this session you still learn how to convert number into letter with &lt;span style="color:#009900;"&gt;&lt;em&gt;Select Case..End Select&lt;/em&gt; and &lt;em&gt;If..Then..Else..End If&lt;/em&gt;&lt;/span&gt;, however you don't need a command button anymore. The conversion will automatically processed when you typing a number in the text box. How to do this? What's the program like?&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;This is just an easy thing to do. You can use the previous program conversion number you have created. You just write down your coding in Sub Text1_Change() and Sub Text2_Change(). This two Subs that make conversion process automatically done. For detail how to do, you can follow below instructions (it's a simple VB programming tips).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;1. Using &lt;span style="color:#009900;"&gt;if..then..else..end if&lt;/span&gt; control structure&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;li&gt;Create a VB project for example Project1&lt;br /&gt;&lt;li&gt;Create a VB standard form for example Form1&lt;br /&gt;&lt;li&gt;Create a text box for example Text1&lt;br /&gt;&lt;li&gt;Create another text box for example Text2&lt;br /&gt;&lt;li&gt;Create a label for example Label1&lt;br /&gt;&lt;li&gt;Create another label for example Label2&lt;br /&gt;&lt;li&gt;Doubleclick Text1 text box to create a Sub Text1_Change()&lt;br /&gt;&lt;li&gt;Write down below program coding in the Sub Text1_Change() area&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#009900;"&gt;    If Val(Text1.Text) = 0 Then&lt;br /&gt;        Label1.Caption = "zero"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 1 Then&lt;br /&gt;        Label1.Caption = "one"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 2 Then&lt;br /&gt;        Label1.Caption = "two"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 3 Then&lt;br /&gt;        Label1.Caption = "three"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 4 Then&lt;br /&gt;        Label1.Caption = "four"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 5 Then&lt;br /&gt;        Label1.Caption = "five"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 6 Then&lt;br /&gt;        Label1.Caption = "six"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 7 Then&lt;br /&gt;        Label1.Caption = "seven"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 8 Then&lt;br /&gt;        Label1.Caption = "eight"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 9 Then&lt;br /&gt;        Label1.Caption = "nine"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 10 Then&lt;br /&gt;        Label1.Caption = "ten"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 11 Then&lt;br /&gt;        Label1.Caption = "eleven"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 12 Then&lt;br /&gt;        Label1.Caption = "twelve"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 13 Then&lt;br /&gt;        Label1.Caption = "thirteen"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 14 Then&lt;br /&gt;        Label1.Caption = "forteen"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 15 Then&lt;br /&gt;        Label1.Caption = "fifteen"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 16 Then&lt;br /&gt;        Label1.Caption = "sixteen"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 17 Then&lt;br /&gt;        Label1.Caption = "seventeen"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 18 Then&lt;br /&gt;        Label1.Caption = "eighteen"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 19 Then&lt;br /&gt;        Label1.Caption = "nineteen"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 20 Then&lt;br /&gt;        Label1.Caption = "twenty"&lt;br /&gt;    Else&lt;br /&gt;        Label1.Caption = "unrecognize number"&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;/span&gt;&lt;/P&gt;&lt;/pre&gt; &lt;/li&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;2. Using &lt;span style="color:#009900;"&gt;Select Case..End Select&lt;/span&gt; control structure&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;li&gt;Doubleclick Text2 text box to create a Sub Text2_Change()&lt;br /&gt;&lt;li&gt;Write down below program coding in the Sub Text2_Change() area&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#009900;"&gt;    Select Case Val(Text2.Text)&lt;br /&gt;        Case 0&lt;br /&gt;            Label2.Caption = "zero"&lt;br /&gt;        Case 1&lt;br /&gt;            Label2.Caption = "one"&lt;br /&gt;        Case 2&lt;br /&gt;            Label2.Caption = "two"&lt;br /&gt;        Case 3&lt;br /&gt;            Label2.Caption = "three"&lt;br /&gt;        Case 4&lt;br /&gt;            Label2.Caption = "four"&lt;br /&gt;        Case 5&lt;br /&gt;            Label2.Caption = "five"&lt;br /&gt;        Case 6&lt;br /&gt;            Label2.Caption = "six"&lt;br /&gt;        Case 7&lt;br /&gt;            Label2.Caption = "seven"&lt;br /&gt;        Case 8&lt;br /&gt;            Label2.Caption = "eight"&lt;br /&gt;        Case 9&lt;br /&gt;            Label2.Caption = "nine"&lt;br /&gt;        Case 10&lt;br /&gt;            Label2.Caption = "ten"&lt;br /&gt;        Case 11&lt;br /&gt;            Label2.Caption = "eleven"&lt;br /&gt;        Case 12&lt;br /&gt;            Label2.Caption = "twelve"&lt;br /&gt;        Case 13&lt;br /&gt;            Label2.Caption = "thirteen"&lt;br /&gt;        Case 14&lt;br /&gt;            Label2.Caption = "forteen"&lt;br /&gt;        Case 15&lt;br /&gt;            Label2.Caption = "fifteen"&lt;br /&gt;        Case 16&lt;br /&gt;            Label2.Caption = "sixteen"&lt;br /&gt;        Case 17&lt;br /&gt;            Label2.Caption = "seventeen"&lt;br /&gt;        Case 18&lt;br /&gt;            Label2.Caption = "eighteen"&lt;br /&gt;        Case 19&lt;br /&gt;            Label2.Caption = "nineteen"&lt;br /&gt;        Case 20&lt;br /&gt;            Label2.Caption = "twenty"&lt;br /&gt;        Case Else&lt;br /&gt;            Label2.Caption = "unrecognize number"&lt;br /&gt;    End Select&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;You can run your program by clicking &lt;em&gt;&lt;strong&gt;Start&lt;/strong&gt;&lt;/em&gt; button on your VB toolbar to check whether your program is correct or not.&lt;br /&gt;&lt;/span&gt;&lt;li&gt;&lt;span style="color:#000000;"&gt;Type a number in Text1 box for example 15&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;&lt;/li&gt;&lt;/span&gt;&lt;li&gt;&lt;span style="color:#000000;"&gt;Type a number in Text2 box for example 15&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;&lt;br /&gt;If letter "fifteen" appears in both Label1 and Label2, it means that your program is correct, and running properly.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_8Lv2D47OOvg/Sma_7te5xmI/AAAAAAAAABs/9jn8OCTxjII/s1600-h/Convert+Number+to+Letter+in+VB+Automatic.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5361183438973552226" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 278px" alt="" src="http://4.bp.blogspot.com/_8Lv2D47OOvg/Sma_7te5xmI/AAAAAAAAABs/9jn8OCTxjII/s400/Convert+Number+to+Letter+in+VB+Automatic.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-7118872705257084317?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/7118872705257084317/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/07/how-to-automate-convert-numbers-into.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/7118872705257084317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/7118872705257084317'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/07/how-to-automate-convert-numbers-into.html' title='How to Automate Conversion Numbers into Letters in VB 6 Programming?'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/Sma_7te5xmI/AAAAAAAAABs/9jn8OCTxjII/s72-c/Convert+Number+to+Letter+in+VB+Automatic.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-5681776162499355436</id><published>2009-07-15T12:03:00.336+07:00</published><updated>2009-09-07T12:39:23.379+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Sample Program'/><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>How to Convert Numbers into Letters in VB 6 Programming?</title><content type='html'>&lt;p&gt;In this posting I will tell you a simple VB programming tips how to convert numbers from 0 until 20 into letters. To the application you can use either &lt;strong&gt;&lt;em&gt;&lt;span style="color:#009900;"&gt;If..Then..Else...End If&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt; or &lt;strong&gt;&lt;em&gt;&lt;span style="color:#009900;"&gt;Select Case..End Select&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt; control structure. In this application just demonstrate how to use both control structures. What is the simple program like? Please look at below simple VB programming tips.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;1. Using &lt;span style="color:#009900;"&gt;If..Then..Else..End If&lt;/span&gt; control structure&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/p&gt;&lt;li&gt;Create a VB project for example Project1&lt;br /&gt;&lt;li&gt;Create a VB standard form for example Form1&lt;br /&gt;&lt;li&gt;Create a command button for example Command1&lt;br /&gt;&lt;li&gt;Create another command button for example Command2&lt;br /&gt;&lt;li&gt;Create a text box for example Text1&lt;br /&gt;&lt;li&gt;Create another text box for example Text2&lt;br /&gt;&lt;li&gt;Create a label for example Label1&lt;br /&gt;&lt;li&gt;Create another label for example Label2&lt;br /&gt;&lt;li&gt;Doubleclick Command1 commandbutton to create a Sub Command1_Click()&lt;br /&gt;&lt;li&gt;Write down below simple VB program coding in the Sub Command1_Click() area&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#009900;"&gt;    If Val(Text1.Text) = 0 Then&lt;br /&gt;        Label1.Caption = "zero"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 1 Then&lt;br /&gt;        Label1.Caption = "one"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 2 Then&lt;br /&gt;        Label1.Caption = "two"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 3 Then&lt;br /&gt;        Label1.Caption = "three"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 4 Then&lt;br /&gt;        Label1.Caption = "four"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 5 Then&lt;br /&gt;        Label1.Caption = "five"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 6 Then&lt;br /&gt;        Label1.Caption = "six"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 7 Then&lt;br /&gt;        Label1.Caption = "seven"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 8 Then&lt;br /&gt;        Label1.Caption = "eight"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 9 Then&lt;br /&gt;        Label1.Caption = "nine"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 10 Then&lt;br /&gt;        Label1.Caption = "ten"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 11 Then&lt;br /&gt;        Label1.Caption = "eleven"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 12 Then&lt;br /&gt;        Label1.Caption = "twelve"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 13 Then&lt;br /&gt;        Label1.Caption = "thirteen"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 14 Then&lt;br /&gt;        Label1.Caption = "forteen"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 15 Then&lt;br /&gt;        Label1.Caption = "fifteen"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 16 Then&lt;br /&gt;        Label1.Caption = "sixteen"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 17 Then&lt;br /&gt;        Label1.Caption = "seventeen"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 18 Then&lt;br /&gt;        Label1.Caption = "eighteen"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 19 Then&lt;br /&gt;        Label1.Caption = "nineteen"&lt;br /&gt;    Else&lt;br /&gt;    If Val(Text1.Text) = 20 Then&lt;br /&gt;        Label1.Caption = "twenty"&lt;br /&gt;    Else&lt;br /&gt;        Label1.Caption = "unrecognize number"&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;    End If&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;2. Using &lt;span style="color:#009900;"&gt;select case...end select&lt;/span&gt; control structure&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;li&gt;Doubleclick Command2 command button to create a Sub Command2_Click()&lt;br /&gt;&lt;li&gt;Write down below program coding in the Sub Command2_Click() area&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#009900;"&gt;    Select Case Val(Text2.Text)&lt;br /&gt;        Case 0&lt;br /&gt;            Label2.Caption = "zero"&lt;br /&gt;        Case 1&lt;br /&gt;            Label2.Caption = "one"&lt;br /&gt;        Case 2&lt;br /&gt;            Label2.Caption = "two"&lt;br /&gt;        Case 3&lt;br /&gt;            Label2.Caption = "three"&lt;br /&gt;        Case 4&lt;br /&gt;            Label2.Caption = "four"&lt;br /&gt;        Case 5&lt;br /&gt;            Label2.Caption = "five"&lt;br /&gt;        Case 6&lt;br /&gt;            Label2.Caption = "six"&lt;br /&gt;        Case 7&lt;br /&gt;            Label2.Caption = "seven"&lt;br /&gt;        Case 8&lt;br /&gt;            Label2.Caption = "eight"&lt;br /&gt;        Case 9&lt;br /&gt;            Label2.Caption = "nine"&lt;br /&gt;        Case 10&lt;br /&gt;            Label2.Caption = "ten"&lt;br /&gt;        Case 11&lt;br /&gt;            Label2.Caption = "eleven"&lt;br /&gt;        Case 12&lt;br /&gt;            Label2.Caption = "twelve"&lt;br /&gt;        Case 13&lt;br /&gt;            Label2.Caption = "thirteen"&lt;br /&gt;        Case 14&lt;br /&gt;            Label2.Caption = "forteen"&lt;br /&gt;        Case 15&lt;br /&gt;            Label2.Caption = "fifteen"&lt;br /&gt;        Case 16&lt;br /&gt;            Label2.Caption = "sixteen"&lt;br /&gt;        Case 17&lt;br /&gt;            Label2.Caption = "seventeen"&lt;br /&gt;        Case 18&lt;br /&gt;            Label2.Caption = "eighteen"&lt;br /&gt;        Case 19&lt;br /&gt;            Label2.Caption = "nineteen"&lt;br /&gt;        Case 20&lt;br /&gt;            Label2.Caption = "twenty"&lt;br /&gt;        Case Else&lt;br /&gt;            Label2.Caption = "unrecognize number"&lt;br /&gt;    End Select&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;You can run your program by clicking &lt;em&gt;&lt;strong&gt;Start&lt;/strong&gt;&lt;/em&gt; button on your VB toolbar to check whether your program is correct or not.&lt;br /&gt;&lt;/span&gt;&lt;li&gt;&lt;span style="color:#000000;"&gt;Type a number in Text1 box for example 15&lt;br /&gt;&lt;/span&gt;&lt;li&gt;&lt;span style="color:#000000;"&gt;Click Command1 commandbutton&lt;br /&gt;&lt;/span&gt;&lt;li&gt;&lt;span style="color:#000000;"&gt;Type a number in Text2 box for example 15&lt;br /&gt;&lt;/span&gt;&lt;li&gt;&lt;span style="color:#000000;"&gt;Click Command2 commandbutton&lt;br /&gt;If letter "fifteen" appears in both Label1 and Label2, it means that your program is correct, and running properly.&lt;br /&gt;&lt;br /&gt;Look at below screen shot for your illustration.&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/Sl2Z7vNbxsI/AAAAAAAAABk/YzrVS_1HhKQ/s1600-h/Convert+Number+to+Letter+in+VB.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5358608383204902594" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 221px" alt="Sample a Simple VB6 Program Conversion Number to Letter" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/Sl2Z7vNbxsI/AAAAAAAAABk/YzrVS_1HhKQ/s400/Convert+Number+to+Letter+in+VB.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;What do you think about it? It is an easy simple VB programming tips isn't it? Would you like to try?&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;/li&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-5681776162499355436?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/5681776162499355436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/07/how-to-convert-numbers-into-letters-in_15.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/5681776162499355436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/5681776162499355436'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/07/how-to-convert-numbers-into-letters-in_15.html' title='How to Convert Numbers into Letters in VB 6 Programming?'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/Sl2Z7vNbxsI/AAAAAAAAABk/YzrVS_1HhKQ/s72-c/Convert+Number+to+Letter+in+VB.JPG' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800143061145110699.post-1748959232935692486</id><published>2009-07-11T11:03:00.302+07:00</published><updated>2009-09-07T12:37:31.108+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Sample Program'/><category scheme='http://www.blogger.com/atom/ns#' term='VB6 Programming'/><title type='text'>How to Copy Image or Picture to Clipboard in VB 6 Programming?</title><content type='html'>In many VB program applications display images. And maybe you want to copy the image and paste into other office program like MS Excel, MS Word, etc. To do this thing in VB6 programming, please follow below steps of simple VB programming tips:&lt;br /&gt;First, you should have a picture that will be loaded by the program. For example you have a picture or image file named Adenium.jpg, and you save your picture in a folder with name D:\MyPicture&lt;br /&gt;&lt;li&gt;Open your Microsoft VB6 program &lt;li&gt;Create a VB project for example Project1 &lt;li&gt;Create a standard form for example Form1 &lt;li&gt;Create an image object from the toolbox for example Image1 &lt;li&gt;Create a command button for example Command1&lt;br /&gt;Please look at below screen shot for your illustration.&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_8Lv2D47OOvg/Slgi3tbuQVI/AAAAAAAAAA0/-jSln_oI3LY/s1600-h/Copy+Picture+VB6.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5357070097241227602" style="WIDTH: 320px; CURSOR: hand; HEIGHT: 288px" alt="How to Copy Image to Clipboard VB Program" src="http://3.bp.blogspot.com/_8Lv2D47OOvg/Slgi3tbuQVI/AAAAAAAAAA0/-jSln_oI3LY/s320/Copy+Picture+VB6.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;li&gt;Double click any where in Form1 area to create a Sub Form_Load() &lt;li&gt;And then type below program coding in the Sub Form_Load() area&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#3333ff;"&gt;   'Load picture into image box&lt;br /&gt;   Image1.Picture = LoadPicture("D:\MyPicture\Adenium.JPG")&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;Double_click Command1 button to create a Sub Command1_Click() &lt;li&gt;Write down below program coding in Sub Command1_Click() area&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#3333ff;"&gt;   'Clear clipboard first&lt;br /&gt;   Clipboard.Clear&lt;br /&gt;   'Load the picture from Image1 into Clipboard&lt;br /&gt;   Clipboard.SetData Image1.Picture&lt;/p&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;p&gt;So your program will look like the following list:&lt;br /&gt;&lt;pre&gt;&lt;p style="background-color: #FFFFCC"&gt;&lt;span style="color:#009900;"&gt;Private Sub Command1_Click()&lt;br /&gt;    'Clear clipboard first&lt;br /&gt;    Clipboard.Clear&lt;br /&gt;    'Load the picture from Image1 into Clipboard&lt;br /&gt;    Clipboard.SetData Image1.Picture&lt;br /&gt;End Sub&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;Private Sub Form_Load()&lt;br /&gt;    'Load picture into image box&lt;br /&gt;    Image1.Picture = LoadPicture("D:\MyPicture\Adenium.JPG")&lt;br /&gt;End Sub&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;Please look at below screen shot for your illustration.&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_8Lv2D47OOvg/Slgk-4LzM6I/AAAAAAAAAA8/ZMg-yzFFrY4/s1600-h/Copy+Picture+VB6+01.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5357072419409572770" style="WIDTH: 320px; CURSOR: hand; HEIGHT: 235px" alt="How to Copy Image to Clipboard VB program" src="http://1.bp.blogspot.com/_8Lv2D47OOvg/Slgk-4LzM6I/AAAAAAAAAA8/ZMg-yzFFrY4/s320/Copy+Picture+VB6+01.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;To check whether your program works or not:&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;li&gt;Click Start panel on your VB design screen&lt;br /&gt;If your Image appears on your screen it means that your Sub Form_Load() is working.&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_8Lv2D47OOvg/SlglrsfGJII/AAAAAAAAABE/agZQHak9FTw/s1600-h/Copy+Picture+VB6+02.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5357073189363393666" style="WIDTH: 320px; CURSOR: hand; HEIGHT: 169px" alt="How to Copy Image to Clipboard VB Program" src="http://3.bp.blogspot.com/_8Lv2D47OOvg/SlglrsfGJII/AAAAAAAAABE/agZQHak9FTw/s320/Copy+Picture+VB6+02.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Click Command1 command button to copy your image into clipboard &lt;li&gt;Open an Office Program like MS Excel &lt;li&gt;Place your pointer in one of MS Excel cell (for example place in cell A1) &lt;li&gt;Right_Click, then click Paste&lt;br /&gt;If your picture appears on your MS Excel sheet it means that your program is working properly.&lt;/li&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_8Lv2D47OOvg/SlgmTr2ZrCI/AAAAAAAAABM/_x_xNgARSxg/s1600-h/Copy+Picture+VB6+03.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5357073876387474466" style="WIDTH: 320px; CURSOR: hand; HEIGHT: 222px" alt="How to Copy Image to Clipboard VB Program" src="http://2.bp.blogspot.com/_8Lv2D47OOvg/SlgmTr2ZrCI/AAAAAAAAABM/_x_xNgARSxg/s320/Copy+Picture+VB6+03.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_8Lv2D47OOvg/Slgmloi1mhI/AAAAAAAAABU/Ts82WbiUSyQ/s1600-h/Copy+Picture+VB6+04.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5357074184737757714" style="WIDTH: 284px; CURSOR: hand; HEIGHT: 320px" alt="How to Copy Image to Clipboard VB Program" src="http://2.bp.blogspot.com/_8Lv2D47OOvg/Slgmloi1mhI/AAAAAAAAABU/Ts82WbiUSyQ/s320/Copy+Picture+VB6+04.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It's just a very easy thing to do, isn't it?&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;hr&gt;&lt;div class="blogger-post-footer"&gt;New update!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800143061145110699-1748959232935692486?l=tipsclip.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsclip.blogspot.com/feeds/1748959232935692486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsclip.blogspot.com/2009/07/how-to-copy-image-or-picture-to.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/1748959232935692486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800143061145110699/posts/default/1748959232935692486'/><link rel='alternate' type='text/html' href='http://tipsclip.blogspot.com/2009/07/how-to-copy-image-or-picture-to.html' title='How to Copy Image or Picture to Clipboard in VB 6 Programming?'/><author><name>Clip of Tips</name><uri>http://www.blogger.com/profile/08145604869277685181</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/_8Lv2D47OOvg/Slgi3tbuQVI/AAAAAAAAAA0/-jSln_oI3LY/s72-c/Copy+Picture+VB6.JPG' height='72' width='72'/><thr:total>2</thr:total></entry></feed>
