<?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-2861437668357595060</id><updated>2011-11-27T16:10:46.255-08:00</updated><category term='Visual Basic'/><category term='Objective Questions'/><category term='Formatting'/><title type='text'>VB.Net - Visual Basic Interview Questions &amp; Answers</title><subtitle type='html'>Frequently asked Interview Questions and answers</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vbfaqs.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://vbfaqs.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</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>96</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2861437668357595060.post-6788706915091576100</id><published>2009-06-24T19:55:00.000-07:00</published><updated>2009-06-24T19:57:05.460-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Formatting'/><title type='text'>Formatting Decimals In Visual Basic</title><content type='html'>got a project from my programming book, which using for this subject.&lt;br /&gt;now, when i put in the dollar amount, and click calculate, it does not show &lt;br /&gt;the orrigional prices in a decimal format.&lt;br /&gt;so put in a variable called Dim decOriginalPrice as decimal = 0&lt;br /&gt;and then in my code, did put in to show the format, such as &lt;br /&gt;tbOrigionalPriceTextBox.Text = decOrigionalPrice.ToString("C")&lt;br /&gt;for the decimal passing, but it still just shows up as say for example &lt;br /&gt;125.55 instead of $125.00, but my discounted price amount and the total &lt;br /&gt;price is in dollars and cents.&lt;br /&gt;so my question is:&lt;br /&gt;&lt;br /&gt;is there some code to format the amount to dollars and cents?&lt;br /&gt;for the Origional Price.&lt;br /&gt;did put those variables and code in, but did not work so took them out.&lt;br /&gt;any ideas how i can fix this one?&lt;br /&gt;the application is to enter a price, enter the description for to recover &lt;br /&gt;callateral from a debt collector.&lt;br /&gt;wen you click the calculate button, it sets focus on the origional price &lt;br /&gt;text box, then it then shows the origional price, then in a group box and &lt;br /&gt;read only boxes, the discount which is 10% and formatted to the dollars and &lt;br /&gt;cents, then the total price of the discounted goods in dollars and cents &lt;br /&gt;format.&lt;br /&gt;will paste the code below.&lt;br /&gt;if any one can help me how to fix this strange and queer oddity or some &lt;br /&gt;thing i am missing, as rebuilding my projects from 2008 to 2005.&lt;br /&gt;cheers Marvin.&lt;br /&gt;&lt;br /&gt;'Program: Discount&lt;br /&gt;'Programmer: Marvin Hunkin&lt;br /&gt;'Date: Tuesday September 23 2008&lt;br /&gt;'Description: Calculate Discount Amounts For Lennie's Baol Bonds&lt;br /&gt;' Then display the discounted amount, the description, and total amount of &lt;br /&gt;discount at 10% for the total cost of the item being held&lt;br /&gt;&lt;br /&gt;Public Class frmDiscount&lt;br /&gt;&lt;br /&gt;Private Sub btnCalculateButton_Click(ByVal sender As Object, ByVal e As &lt;br /&gt;System.EventArgs) Handles btnCalculateButton.Click&lt;br /&gt;&lt;br /&gt;Dim constDiscountRate As Decimal = 0.1&lt;br /&gt;Dim decDiscountAmount As Decimal = 0&lt;br /&gt;Dim decDiscountedPrice As Decimal = 0&lt;br /&gt;&lt;br /&gt;If IsNumeric(tbOriginalPriceTextBox.Text) Then&lt;br /&gt;decDiscountAmount = CDec(tbOriginalPriceTextBox.Text) * &lt;br /&gt;constDiscountRate&lt;br /&gt;decDiscountedPrice = CDec(tbOriginalPriceTextBox.Text) - &lt;br /&gt;decDiscountAmount&lt;br /&gt;tbDiscountAmountTextBox.Text = decDiscountAmount.ToString("C")&lt;br /&gt;tbDiscountedPriceTextBox.Text = decDiscountedPrice.ToString("C")&lt;br /&gt;Else&lt;br /&gt;MessageBox.Show("Error: Price Field Not Numeric")&lt;br /&gt;tbOriginalPriceTextBox.Focus()&lt;br /&gt;GoTo ProcExit&lt;br /&gt;&lt;br /&gt;ProcExit:&lt;br /&gt;Return&lt;br /&gt;&lt;br /&gt;End If&lt;br /&gt;tbOriginalPriceTextBox.Focus()&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub btnClearButton_Click(ByVal sender As Object, ByVal e As &lt;br /&gt;System.EventArgs) Handles btnClearButton.Click&lt;br /&gt;&lt;br /&gt;tbOriginalPriceTextBox.Clear()&lt;br /&gt;tbDiscountAmountTextBox.Clear()&lt;br /&gt;tbDiscountedPriceTextBox.Clear()&lt;br /&gt;tbDescriptionTextBox.Clear()&lt;br /&gt;tbOriginalPriceTextBox.Focus()&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub btnExitButton_Click(ByVal sender As Object, ByVal e As &lt;br /&gt;System.EventArgs) Handles btnExitButton.Click&lt;br /&gt;&lt;br /&gt;'Exit the project&lt;br /&gt;&lt;br /&gt;Me.Close()&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;End Class&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2861437668357595060-6788706915091576100?l=vbfaqs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbfaqs.blogspot.com/feeds/6788706915091576100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2861437668357595060&amp;postID=6788706915091576100' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/6788706915091576100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/6788706915091576100'/><link rel='alternate' type='text/html' href='http://vbfaqs.blogspot.com/2009/06/formatting-decimals-in-visual-basic.html' title='Formatting Decimals In Visual Basic'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</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-2861437668357595060.post-2438488743613298177</id><published>2009-02-24T23:24:00.000-08:00</published><updated>2009-02-24T23:25:08.066-08:00</updated><title type='text'>For and Do loops in VB</title><content type='html'>&lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt; &lt;p&gt;&lt;br /&gt;Common features of all programming languages are:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;Output&lt;/li&gt;&lt;li&gt;Variables&lt;/li&gt;&lt;li&gt;Input&lt;/li&gt;&lt;li&gt;Repetition&lt;/li&gt;&lt;li&gt;Conditional evaluation&lt;/li&gt;&lt;li&gt;Functions&lt;/li&gt;&lt;/ul&gt; &lt;p&gt; Visual Basic manifests all of these. Examples:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;Output - the caption of a label control is a form of  screen output     to inform the user&lt;/li&gt;&lt;li&gt;Variables - you can declare them (Dim statement), assign values to them (=     operator), declare their type (e.g., AS Single clause), and control their     scope by placement (in a method, or in the General section of a form's code)     or declaration (local/global, private/public, static keywords).&lt;/li&gt;&lt;li&gt;Input - text boxes are a form of user input&lt;/li&gt;&lt;li&gt;Repetition - loops. There are different kinds. FOR/NEXT, DO/WHILE,     DO/UNTIL&lt;/li&gt;&lt;li&gt;Conditional evaluation - If then/End If and Select Case statements&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Functions - built-in functions (e.g., IsNumeric(), Val(), Format()) or user-defined functions&lt;br /&gt;&lt;br /&gt;&lt;b&gt;We are now focusing on repetition.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For...Next loops use a numeric variable as a counter to keep track of the number of times the loop actually needs to run. This variable is called an index. A typical For loop:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt; Dim Index&lt;br /&gt;&lt;br /&gt;For Index = 1 to 3&lt;br /&gt;&lt;br /&gt;    [ do something ]&lt;br /&gt;&lt;br /&gt;Next&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This will repeat any code between the For and Next statements three times. The value of variable Index will take the value 1, then 2, then 3 on the first, second, and third iteration of the loop, respectively.&lt;br /&gt;&lt;br /&gt;The Do loop is an alternative way to repeat a block of code. The Do/While loop is common, and has this form:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt; Do&lt;br /&gt;&lt;br /&gt;    [ do something ]&lt;br /&gt;&lt;br /&gt;Loop While [ condition ]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note the Do loop, unlike the For loop, does not necessarily involve a built-in variable (For can't run without one). A Do loop equivalent to the above For loop is:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt; Dim Limit As Integer&lt;br /&gt;Limit = 3&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color:#0000ff;"&gt;Do&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color:#0000ff;"&gt;    [ do something ]&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color:#0000ff;"&gt;    Limit = Limit - 1&lt;br /&gt;&lt;br /&gt;Loop While Limit &gt; 0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In both cases, when execution reaches the lower bound in the code (Next or Loop statement), a decision is made whether to repeat again based on a condition (with For, whether the index variable has reached the stated maximum; with Do, or whether the condition coded in the Loop statement remains true). If the decision is yes, the block of code inside the loop is repeated once again. If no, the loop has finished its job and the next statement below the loop gets executed.&lt;br /&gt;&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2861437668357595060-2438488743613298177?l=vbfaqs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbfaqs.blogspot.com/feeds/2438488743613298177/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2861437668357595060&amp;postID=2438488743613298177' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/2438488743613298177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/2438488743613298177'/><link rel='alternate' type='text/html' href='http://vbfaqs.blogspot.com/2009/02/for-and-do-loops-in-vb.html' title='For and Do loops in VB'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</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-2861437668357595060.post-5237996411249005819</id><published>2008-12-11T23:28:00.000-08:00</published><updated>2008-12-22T21:11:33.369-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>C Programmer’s Guide to Getting a little work done in Visual Basic 6.0</title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 12"&gt;&lt;meta name="Originator" content="Microsoft Word 12"&gt;&lt;link rel="File-List" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="themeData" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"&gt;&lt;link rel="colorSchemeMapping" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;JA&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;    &lt;w:usefelayout/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="&amp;#45;-"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:SimSun; 	panose-1:2 1 6 0 3 1 1 1 1 1; 	mso-font-alt:宋体; 	mso-font-charset:134; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:3 135135232 16 0 262145 0;} @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face 	{font-family:"\@SimSun"; 	panose-1:2 1 6 0 3 1 1 1 1 1; 	mso-font-charset:134; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:3 135135232 16 0 262145 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:SimSun; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi; 	mso-fareast-language:ZH-CN;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:SimSun; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi; 	mso-fareast-language:ZH-CN;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.0in 1.0in 1.0in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin-top:0in; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-fareast-language:ZH-CN;} &lt;/style&gt; &lt;![endif]--&gt;&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 18pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Introduction&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;The goal of this document is to allow someone with a little knowledge of C write very simple&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;programs in Visual Basic. By no means does it tell you all you need to know to be a good Visual&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Basic programmer, but I hope it gives you a feel for the language. After reading this, if you want&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;to write programs with lots of bells and whistles, you can buy a Visual Basic book and teach&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;yourself the fancy stuff.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Making a new Project&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;When you start up Visual Basic it should bring up the new project window (see below). (If it&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;doesn’t display the window when you start it up, select “New Project” from the file menu.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Click on Standard EXE and say OPEN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Creating a window&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;In Visual Basic, before you write any code, you have to design your form. Unlike in C, you can’t&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;do anything in Visual Basic without a form. You can design fancy forms, but we’re just going to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;do a very simple one that will allow you to get input from the user and display output.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;When your new project opens, you get a blank form labeled Form 1. This form is actually the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;window that your program will run in. You can see what it looks like running by pressing the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;“play” button (looks like a triangle) at the top of the page. Pressing the “stop” button (the square)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;stops the program.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Most people like their programs to have a special name at the top, instead of just form 1.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Go to the properties menu on the right side of the Visual basic window. It looks like the picture&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;below.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Highlight the words “Form1” under caption and change it to “My Way Cool Program”&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Hit play to look at your cool form, and then hit stop.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Adding a Button&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Let’s give your user something to click&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• On the toolbox (picture at right) double click on the button (right&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;below the box labelled “ab|”&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Drag the butoon down a bit on your form so it’s on the lower third of&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;the form.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Go to the properties box. Change the &lt;b&gt;Caption &lt;/b&gt;of your button to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Push Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Also in the properties box, change the &lt;b&gt;(name) &lt;/b&gt;of your button from&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Command1 to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;my_button&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Your form should now look like the picture below.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Run your program. You will now have a button you can click (but&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;that doesn’t do anything!)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Writing “Hello, World” (or, Adding a picture box)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Now let’s start doing a little programming. We’re going to write a program that prints “Hello,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;World” on the screen when you press the button.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• On the toolbox (picture at right) double click on the desert picture to get a picture box.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Slide it down and stretch it out a bit so that your picture looks like the one below&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Go to the properties box. Change the name of your picture box (at the top, under (Name) )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;from Picture1 to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;my_output&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Here’s how we want your program to work: When the user pushes the button, we want to print&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;something on the picture window. Do this as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Double click on your button (that says “push me”) to tell visual basic you want to program&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;what happens when the user clicks the button.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Write the following program:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Private Sub my_button_Click()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;my_output.Print "Hello, World"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;This program basically says “when my button gets clicked, print “Hello, World” on the picture&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;box called my_output. Close the program window, and run your program.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;If you want, add another line right after the first print line that says&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;my_output.Print "How are you?"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;and run your program again.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Adding a text box&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;It’s convenient to give your user a place to put information.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• On the toolbox (picture at right), double click on the “text box” button (labelled “ab|”)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Go to the “&lt;b&gt;Text&lt;/b&gt;” property, and erase the value on the right.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Go to the &lt;b&gt;(Name) &lt;/b&gt;of your textbox, and change it to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;my_input&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Move the objects around so that your form looks like the picture below.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Run your program. Now you can type whatever you want in the text box. It doesn’t do anything,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;but it’s fun to type.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Adding A label&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Labels help your user know that they are expected to enter data.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Click once on the capital letter A and drag it on your form to add a label. (You could also double&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;click like before)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Change the &lt;b&gt;caption &lt;/b&gt;(on properties) of your label to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Feet:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Click on the &lt;b&gt;font &lt;/b&gt;property and then click on the 3 dots and change it to Times New Roman 12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;point bold&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Use the drop down menu (triangle) on the properties to switch to the my_input textbox (or&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;double click on the text box), and change the text to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;(i.e. the number zero)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;• Modify your form so it looks like the picture below&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Some Programming Information&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;At this point you’re almost ready to write some more complex visual Basic Programs. Here’s&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;some basic information you need to know. Here are some common variable declarations in C and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;the corresponding declarations in VB. Notice that VB does not use semicolons in the declarations.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Assigning values to variables in VB is similar to C. Note, there are no semicolons in VB&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;assignment statements.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Getting input from the user is a little complicated in VB, because you have to know where they&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;are putting it. On our form, the user will be typing in the my_input window. Here’s how you do it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;NOTE: If you want to input more than one thing from the user, you need to create more input&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;boxes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Declaring Variables&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Declaration in C Declaration in Visual Basic&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;int my_favorite_num; Dim my_favorite_num as Integer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;float weight; Dim weight as Single&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;float height; Dim height as Single&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Some Assignment Statements&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Assignment in C Assignment in Visual Basic&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;my_favorite_num = 5; my_favorite_num = 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;weight = 6.2; weight = 6.2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;height = weight; height = weight&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;weight = weight + 2; weight = weight + 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Getting input from the user&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Input in C from stdin Input in the my_input text box in VB&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;scanf("%d",&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&amp;amp;my_favorite_num);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;my_favorite_num = Val(my_input.Text)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;scanf("%f",&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&amp;amp;height)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;height = Val(my_input.Text)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Comments&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Comments in C Comments in VB&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;/* This is a comment in C&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;*/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;’Comments in VB Start with a quote&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;’and go to the end of the line.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;’Multi-line comments need a quote&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;’at the start of each line&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;A more complex program: converting feet to inches&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Double click on the button again to bring up the code window. Edit the code so it looks like this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Private Sub my_button_Click()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;'Step 1: Declare two variables&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Dim how_many_feet As Single&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Dim computed_inches As Single&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;'Step 2: Get your input&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;how_many_feet = Val(my_input.Text)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;'Step 3: Convert from feet to inches&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;computed_inches = how_many_feet * 12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;'Step 4: Clear the picture window&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;my_output.Cls&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;'Step 5: Print your answer in the picture window&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;' Note that semicolons allow you to print things on&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;' the same line (i.e. they stop a \n)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;my_output.Print how_many_feet;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;my_output.Print " feet is the same as ";&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;my_output.Print computed_inches;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;my_output.Print " inches!"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;More Programming Information&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Conditionals in C and VB&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Conditionals in C Conditionals in VB&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;if &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;(expression)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;code;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;more code;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;even more code;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;If &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;expression &lt;b&gt;Then&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;more code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;even more code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;End If&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;if &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;(expression)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;code;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;more code;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;some more code;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;and a bit more;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;If &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;expression &lt;b&gt;Then&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;more code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;some more code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;and a bit more&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;End If&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Comparison Operators&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;C VB&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 24pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&gt; &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 24pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&gt;= &gt;=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 24pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt; &lt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 24pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;= &lt;=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 24pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;!= &lt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 24pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;= = =&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Another program to try:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Private Sub my_button_Click()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;'Step 1: Declare two variables&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Dim how_many_feet As Single&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Dim computed_inches As Single&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;'Step 2: Get your input&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;how_many_feet = Val(my_input.Text)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;'Step 3: Clear the output window&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;my_output.Cls&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;'Step 4: If the input is negative, complain&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;' Otherwise do the computation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;If how_many_feet &lt;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;my_output.Print "Please enter a positive number for feet!!!"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;computed_inches = how_many_feet * 12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;my_output.Print how_many_feet;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;my_output.Print " feet is the same as ";&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;my_output.Print computed_inches;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;my_output.Print " inches!"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;End If&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Loops&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Acknowledgements&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Thanks to Schneider’s “An Introduction to Programming Using Visual Basic 6.0” for some&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;introductory ideas.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Loops in C and VB&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;C VB&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;while (expression)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;code;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;more code;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Do While&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;more code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Loop&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;for (i=5; i&lt;=23; i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;code;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;more code;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;For i = 5 to 23&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;more code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Next i&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;for (i=10; i&lt;=30; i=i+5)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;code;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;more code;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;For i = 10 to 30 Step 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;more code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 12pt; line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Next i&lt;/span&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2861437668357595060-5237996411249005819?l=vbfaqs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbfaqs.blogspot.com/feeds/5237996411249005819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2861437668357595060&amp;postID=5237996411249005819' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/5237996411249005819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/5237996411249005819'/><link rel='alternate' type='text/html' href='http://vbfaqs.blogspot.com/2008/12/c-programmers-guide-to-getting-little.html' title='C Programmer’s Guide to Getting a little work done in Visual Basic 6.0'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</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-2861437668357595060.post-1150326183387218839</id><published>2008-11-20T02:01:00.000-08:00</published><updated>2008-12-22T21:11:33.370-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><category scheme='http://www.blogger.com/atom/ns#' term='Objective Questions'/><title type='text'>Visual Basic Objective Questions</title><content type='html'>  &lt;table style="border-collapse: collapse; width: 290pt;" border="0" cellpadding="0" cellspacing="0" width="387"&gt;&lt;col style="width: 35pt;" width="47"&gt;  &lt;col style="width: 86pt;" width="115"&gt;  &lt;col style="width: 40pt;" width="53"&gt;  &lt;col style="width: 43pt;" width="57"&gt;  &lt;col style="width: 39pt;" width="52"&gt;  &lt;col style="width: 30pt;" width="40"&gt;  &lt;col style="width: 17pt;" width="23"&gt;  &lt;tbody&gt;&lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual   Basic&lt;/td&gt;   &lt;td class="xl67" style="border-left: medium none; width: 86pt;" width="115"&gt;Isnull(),   IsEmpty() determines weather any variable&lt;span style=""&gt;    &lt;/span&gt;has been initialize or not&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-left: medium none; width: 43pt;" width="57"&gt;False&lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 76.5pt;" height="102"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 76.5pt; width: 35pt;" width="47" height="102"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;IsDate()   function returns true if its argument is a valid date and time&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 76.5pt;" height="102"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 76.5pt; width: 35pt;" width="47" height="102"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;It   is possible to declare 'Dynamic Array' in visual basic.&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;In   visual basic 'Break' statement could be used along with "Select   Case"&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Constants   are processed faster than variables :&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;It   is possible in visual basic to specifying array limit like from 1 to 10&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 51pt;" height="68"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 51pt; width: 35pt;" width="47" height="68"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;It   is possible to build an application without using any form:&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 51pt;" height="68"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 51pt; width: 35pt;" width="47" height="68"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Function   can return array as return value:&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 89.25pt;" height="119"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 89.25pt; width: 35pt;" width="47" height="119"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;When   using do loop-while statement then the statements within the loop body will   be executed only once if the condition does not fulfilled&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 76.5pt;" height="102"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 76.5pt; width: 35pt;" width="47" height="102"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;ABS()   function will generate a hole value when used with a number with fraction   part (ex: 125.26598)&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Time()   function is used to recover date &amp;amp; time.&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 76.5pt;" height="102"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 76.5pt; width: 35pt;" width="47" height="102"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Now()   function will return the current drive and directory you are working on as   return value.&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;The   amount of text any one can place in&lt;span style=""&gt;    &lt;/span&gt;text box is maximum 64 kb.&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;In   a text box control the default caption for text box is text1.&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 76.5pt;" height="102"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 76.5pt; width: 35pt;" width="47" height="102"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;It   is possible to change the password character property of text box control at   run time.&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Sorted   property of list box control is a design time property and cannot be changed   in runtime.&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 51pt;" height="68"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 51pt; width: 35pt;" width="47" height="68"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Sorted   property of list box control is a design time property and cannot be changed   in runtime.&lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 51pt;" height="68"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 51pt; width: 35pt;" width="47" height="68"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;List   count property returns total number of items in list box control.&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 76.5pt;" height="102"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 76.5pt; width: 35pt;" width="47" height="102"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;When   someone uses the code like list1.list(1); then it will return the first item   of the list box control.&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;It   is possible to insert a picture in a option button control.&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;It   is not possible to change the back color property of option button control at   run time.&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 38.25pt;" height="51"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 38.25pt; width: 35pt;" width="47" height="51"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl68" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;by   default 'Dim myvar' this statement:&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Sort   is a method by which elements can be sorted in flexgrid control&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 76.5pt;" height="102"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 76.5pt; width: 35pt;" width="47" height="102"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;CommonDialog   control is the default control that anyone can find in the toolbar when a new   project is started&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;The   title of the dialog box can be changed.&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 51pt;" height="68"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 51pt; width: 35pt;" width="47" height="68"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Dialog   title property is used to change the title of any dialog box&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 51pt;" height="68"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 51pt; width: 35pt;" width="47" height="68"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Flag   property is used to adjust the function of each common dialog box&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 102pt;" height="136"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 102pt; width: 35pt;" width="47" height="136"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;If   the Flag constant for the font common dialog box is cdlCFPrinterFonts then it   causes the dialog box to show only the fonts supports by the printer   specified by the hdc property&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;CommonDialogs   control is visible at runtime&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 51pt;" height="68"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 51pt; width: 35pt;" width="47" height="68"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Activate   event is called before load event&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 51pt;" height="68"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 51pt; width: 35pt;" width="47" height="68"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Terminate   is a valid event in form operation&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;In   runtime it is not possible to change the form size.&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;The   default startup object can not be changed in a project&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 89.25pt;" height="119"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 89.25pt; width: 35pt;" width="47" height="119"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;It   is possible to access a menu without using mouse, to access the menu   ;pressing the Ctrl key and the letter assigned to access the menu&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 76.5pt;" height="102"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 76.5pt; width: 35pt;" width="47" height="102"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;It   is possible to change the shortcut key assigned to any menu for accessing   within the menu editor.&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;The   project extension name of a VB project is .vbj&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 89.25pt;" height="119"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 89.25pt; width: 35pt;" width="47" height="119"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Delete   method of the recordset of Data Control or Data Access Object is delete the   record which is pointed out by the record pointer.&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 76.5pt;" height="102"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 76.5pt; width: 35pt;" width="47" height="102"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;The   other Single Document Interface forms are by default child of MDI form when   MDI form is inserted.&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;It   is possible to load a MDI form without any childform.&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 51pt;" height="68"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 51pt; width: 35pt;" width="47" height="68"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;The   arrange property of MDI form is available at design time.&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;True&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;False&lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;In   case of visual basic, IDE means :&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;Internal   Database Engineering.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;Integrated   Database Environment.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;Integrated   Development Environment.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;The   full form of IIS is :&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;Indian   Institute of Science.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;Internet   Information Service&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;Industrial   Information Services.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 76.5pt;" height="102"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 76.5pt; width: 35pt;" width="47" height="102"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;In   visual basic you can draw something in&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;Picture   box control.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;Image   control.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;Shape   control.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 76.5pt;" height="102"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 76.5pt; width: 35pt;" width="47" height="102"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;To   run an application you have to press :&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;F3&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;F6&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;F5&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;F7&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 76.5pt;" height="102"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 76.5pt; width: 35pt;" width="47" height="102"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;In   visual basic the default unit is :&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;centimeter.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;Inch.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;Dpi.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;Twips   .&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;D&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 102pt;" height="136"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 102pt; width: 35pt;" width="47" height="136"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Currency   variable stores fixed point numbers with :&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;2   decimal digits.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;3   decimal digits.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;4   decimal digits.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;6   decimal digits.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;The   size of 'Boolean' data type is :&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;1   Byte.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;2   Bytes.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;4   Bytes.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;8   Bytes.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 76.5pt;" height="102"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 76.5pt; width: 35pt;" width="47" height="102"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;In   database application, any field does not contain any values can be recognized   by:&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;Nothing   value.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;Null   value.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;Error   value.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;Empty   value.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Redim   statement is used to :&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;Rename   a variable.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;Rename   an array.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;Redimension   an array.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 114.75pt;" height="153"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 114.75pt; width: 35pt;" width="47" height="153"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Function   Add(Num1 as integer, Num2 as integer) as integer&lt;br /&gt;    Add=Num1+Num2&lt;br /&gt;    Num1=0&lt;br /&gt;    Num2=0&lt;br /&gt;    End function&lt;br /&gt;   &lt;br /&gt;    This body is an example of calling up a function by:&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;By   optional argument.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;By   value.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;By   reference.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;			&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 51pt;" height="68"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 51pt; width: 35pt;" width="47" height="68"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;To   get the property window in visual basic you have to press&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;F6&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;F3&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;F4&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;F5&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 51pt;" height="68"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 51pt; width: 35pt;" width="47" height="68"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;To   get the property window in visual basic you have to press :&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;F3&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;F6&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;F4&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;F6&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 38.25pt;" height="51"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 38.25pt; width: 35pt;" width="47" height="51"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Visual   Basic produce:&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;3   types of executable code.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;2   types of executable code.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;4   types of executable code&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;none   of the above.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 38.25pt;" height="51"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 38.25pt; width: 35pt;" width="47" height="51"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;In   visual basic Bool variable stores&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;2   bytes&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;1   bytes&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;4   bytes&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;none   of the above.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;D&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;By   default 'Dim myvar' this statement:&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;allocates   memory&lt;span style=""&gt;  &lt;/span&gt;for integer variable&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;allocates   memory&lt;span style=""&gt;  &lt;/span&gt;for variant variable&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;allocates   memory&lt;span style=""&gt;  &lt;/span&gt;for Double variable&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;allocates   memory&lt;span style=""&gt;  &lt;/span&gt;for Boolean variable&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 153pt;" height="204"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 153pt; width: 35pt;" width="47" height="204"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Suppose   there are two forms; form1 and form2 ; if there are codes like : In   form1.active event&lt;br /&gt;    Form2.show&lt;br /&gt;   &lt;br /&gt;    &lt;span style=""&gt;    &lt;/span&gt;And in form2.active event&lt;br /&gt;    	Form1.show&lt;br /&gt;   &lt;br /&gt;    Then what will be the output ?&lt;br /&gt;    &lt;span style=""&gt;  &lt;/span&gt;&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;Two   forms will be just showed.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;Two   forms will be showed and the control will passed continuously to each other.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;Nothing   will be displayed&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;None   of the above.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;A   single function of visual basic takes:&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;Fixed   number of parameters&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;Unlimited   number of parameters&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;All   of the above&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;None   of the above	&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 153pt;" height="204"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 153pt; width: 35pt;" width="47" height="204"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;In   a programme body :&lt;br /&gt;    Private sub form_load()&lt;br /&gt;    X=inputbox("First No. :")&lt;br /&gt;    Y=inputbox("Second No. :")&lt;br /&gt;    Z=val(X) +val(Y)&lt;br /&gt;    Print Z&lt;br /&gt;    End sub&lt;br /&gt;   &lt;br /&gt;    What will be the output ?&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;The   summation of two numbers given in two input box&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;It   will show the numbers given in the input box side by side&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;It   will show nothing&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;None   of the above&lt;span style=""&gt;  &lt;/span&gt;&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 165.75pt;" height="221"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 165.75pt; width: 35pt;" width="47" height="221"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;when   using 'do until-loop' statement as stated below&lt;br /&gt;    I=10&lt;br /&gt;    Do until I&gt;5&lt;br /&gt;    Print I&lt;br /&gt;    I=I+1&lt;br /&gt;    Loop&lt;br /&gt;   &lt;br /&gt;    This statement will print&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;it   will generate a run time error&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;no   output will be shown&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;10   11 12 13 14 15&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;none   of the above&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;which   control structure are working under false condition&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;do-while   loop &amp;amp; do loop-while&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;while-wend   &amp;amp; for loop&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;do-while   loop &amp;amp; while wend loop&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;do-until   loop &amp;amp; do loop-until&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;D&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 165.75pt;" height="221"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 165.75pt; width: 35pt;" width="47" height="221"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;what   will be the output of the code below :&lt;br /&gt;    private sub command_click()&lt;br /&gt;    dim I as integer&lt;br /&gt;    I=0&lt;br /&gt;    Do&lt;br /&gt;    Print I&lt;br /&gt;    Loop until I&gt;10&lt;br /&gt;    End sub&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;it   will generate compile time error&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;it   will generate runtime error&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;it   is an endless loop&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;0   1 2 3 4 5 6 7 8 9 10&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 89.25pt;" height="119"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 89.25pt; width: 35pt;" width="47" height="119"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;which   should be included when an application is used without any forms&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;subroutines&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;function&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;main&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;sub-main&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;D&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 89.25pt;" height="119"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 89.25pt; width: 35pt;" width="47" height="119"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;It   is possible to pass different number parameters to a function when call the   function on different time.&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;To   do this one can use in the parameter list of that function&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;paramarray   keyword with the array declaration&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;argument   should be passed as array&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;none   of the above&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 89.25pt;" height="119"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 89.25pt; width: 35pt;" width="47" height="119"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;To   break a loop abnormally when satisfying a condition, we can use&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;Break   statement&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;Exit   statement&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;Both   i &amp;amp; ii could be used.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;None   of the above.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 191.25pt;" height="255"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 191.25pt; width: 35pt;" width="47" height="255"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;&lt;span style=""&gt; &lt;/span&gt;What will be the output when the statements   below will execute :&lt;br /&gt;   &lt;br /&gt;    Dim a as integer&lt;br /&gt;    	a=0&lt;br /&gt;    while(a&lt;5)&lt;br /&gt;    &lt;span style=""&gt;  &lt;/span&gt;print a&lt;br /&gt;    a=a+1&lt;br /&gt;    end&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;It   will generate the output like 0 1 2 3 4&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;It   will generate a runtime error&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;It   will generate a compiler error&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;It   will display nothing&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 76.5pt;" height="102"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 76.5pt; width: 35pt;" width="47" height="102"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;You   can get the ASCII value of any character or number by using&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;ASC()   function&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;ASCII()   function&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;There   is no function to get the ascii value.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 76.5pt;" height="102"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 76.5pt; width: 35pt;" width="47" height="102"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Say   there is a string "Ramcharan"; when someone&lt;span style=""&gt;  &lt;/span&gt;using Mid() function like   MID("Ramcharan",2) then what will be the output:&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;"Ra"&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;"Ch"&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;"Amcharan"&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;None   of the above&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 51pt;" height="68"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 51pt; width: 35pt;" width="47" height="68"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;What   is the default value of MaxLength property of text box control?&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;255   characters&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;10   characters&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;0   characters&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;Any   of the above&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 140.25pt;" height="187"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 140.25pt; width: 35pt;" width="47" height="187"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Instr$(text1.text,"visual")   will returns :&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;No.   of times the string "visual" is present in the string in   text1.text.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;It   puts the control where it finds the text "visual" in the string   given in text1.text.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;First   occurrence of the text "visual" within the string given in   text1.text&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;None   of the above.&lt;span style=""&gt; &lt;/span&gt;&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 89.25pt;" height="119"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 89.25pt; width: 35pt;" width="47" height="119"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;What   is the default value for multi-select property of list box control.&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;1&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;2&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;0&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;none&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 102pt;" height="136"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 102pt; width: 35pt;" width="47" height="136"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;If   you want a list box control with check box option, which property of list box   control you will have to change.&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;Check   box property&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;Check   style property&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;Style   property&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;None&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 89.25pt;" height="119"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 89.25pt; width: 35pt;" width="47" height="119"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Which   property of list box control reports the number of selected items.&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;ListIndex&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;Selected&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;Selcount&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;NewIndex&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 102pt;" height="136"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 102pt; width: 35pt;" width="47" height="136"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Through   which property of option button control one can change the font color of the   caption.&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;Back   color&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;Font   color&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;Fore   color&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;None&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 89.25pt;" height="119"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 89.25pt; width: 35pt;" width="47" height="119"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;If   there is a control array of label for 10 elements, then what will be the   fifth element in the array?&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;label(5)&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;label(3)&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;label(4)&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;None&lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 51pt;" height="68"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 51pt; width: 35pt;" width="47" height="68"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;The   fundamental property of RichTextBox control is&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;Text   property&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;TextRTF   property&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;RTFText   property&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;All   of the above&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;One   can change or read the alignment of one or more paragraph of rich text box   control through&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;Text   Alignment property&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;AlignmentSet   property&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;SelAlignment   property&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;None&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 89.25pt;" height="119"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 89.25pt; width: 35pt;" width="47" height="119"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;RichTextBox1.BulletIndent=5   ; what will be the effect of this code if used in any program&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;It   will set the bulleted indentation by the specified value&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;It   will create a list of bullet of 5 items&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;All   of the above&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 114.75pt;" height="153"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 114.75pt; width: 35pt;" width="47" height="153"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;To   add the commondialog control to any project one has to include it from&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;File   menu-&gt;component-&gt;Microsoft Common Dialog Control 6.0&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;Project   menu-&gt;Component-&gt; Microsoft Common Dialog Control 6.0&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;Component   menu-&gt;project-&gt; Microsoft Common Dialog Control 6.0&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;None   of the above&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 127.5pt;" height="170"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 127.5pt; width: 35pt;" width="47" height="170"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;CommonDialog1.ShowOpen&lt;br /&gt;    Filename1=CommonDialog1.Filename&lt;br /&gt;    The above code will&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;Set   the filename1 by the selected filename from the common dialog contol.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;First   displays the open dialog box and let the user select any file from any&lt;span style=""&gt; &lt;/span&gt;&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;location   and then set the filename1 by the selected filename.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;Both   are true.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 102pt;" height="136"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 102pt; width: 35pt;" width="47" height="136"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Min   and Max property can be used with Font common dialog box to determine&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;To   controlling dialog box size&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;The   minimum and maximum size displayed in the size list&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;None   of the above&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 89.25pt;" height="119"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 89.25pt; width: 35pt;" width="47" height="119"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;To   enable apply button in dialog box ; flag value should be set to&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;cdlCFApply&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;cdlcfTTOnly&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;cdcclHelpButton&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;None   of the above&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 102pt;" height="136"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 102pt; width: 35pt;" width="47" height="136"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;If   the user wants to select the multiple files from file open and filesave   dialog boxes then the flag must be set to&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;cdlOFNMultiselsectAllow&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;cdlOFNAllowMultiselect&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;It   is not possible to select more than one file at a time&lt;span style=""&gt; &lt;/span&gt;&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;None&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 76.5pt;" height="102"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 76.5pt; width: 35pt;" width="47" height="102"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;To   draw a form on the screen which event is being called up&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;Draw   Event&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;Load   Event&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;Paint   Event&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;Either   i or iii&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 204pt;" height="272"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 204pt; width: 35pt;" width="47" height="272"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;In   form load event, if the following code is written then guess what will be the   output :&lt;br /&gt;    Dim I as integer, J as integer&lt;br /&gt;    I=0&lt;br /&gt;    J=5&lt;br /&gt;    While I&lt;J&lt;br /&gt;    Print I&lt;br /&gt;    I=I+1&lt;br /&gt;    Wend&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;output   will be 0 1 2 3 4&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;No   output, blank form will be shown&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;Compiler   error&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;None&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 114.75pt;" height="153"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 114.75pt; width: 35pt;" width="47" height="153"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Data1.Recordset.FindFirst   "State=NY"&lt;br /&gt;    The above code will find the record in a given database&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;Find   the first record in the given database&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;Find   the first record in the given database in which the state is NY.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;The   above command will find a record very fast where the state is NY&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;None   of the above&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 140.25pt;" height="187"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 140.25pt; width: 35pt;" width="47" height="187"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;Suppose   there is a data control named data1. What will be the effect if the following   code is inserted&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;Data1.recordset.movefirst&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;The   record pointer will move to the first record of the record set&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;The   pointer will move to the first record of the original table that contains the   data&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;It   will refresh the recordset&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 127.5pt;" height="170"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 127.5pt; width: 35pt;" width="47" height="170"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;MDI   form1.Arrange vbTileHorizontal; this code in a MDI form will&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;If   there are more than one MDI form then arrange them all in horizontal manner&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;Tiles   all child form in horizontal manner&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;Tiles   the MDI form horizontally&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;None   of the above.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;DocumentForm()   it is&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;A   function of MDI forms&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;An   array of forms using as child into MDIform&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;None   of the above&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 25.5pt;" height="34"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 25.5pt; width: 35pt;" width="47" height="34"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;&lt;span style=""&gt; &lt;/span&gt;Visual Basic has ____________ number of   editions&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;3&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;4&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;5&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;6&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;While   running an application you can change the value of any variable and see it's   effect through ___________ window.&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;intermediate&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;&lt;span style=""&gt; &lt;/span&gt;Immediate&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;current&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;&lt;span style=""&gt; &lt;/span&gt;You can get a dropdown list and as well as   can add some text directly to ____________ Control.&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;listbox&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;command&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;&lt;span style=""&gt; &lt;/span&gt;Combo Box.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;none   of this&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 76.5pt;" height="102"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 76.5pt; width: 35pt;" width="47" height="102"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;&lt;span style=""&gt; &lt;/span&gt;In _______________ control you can get only   drop-down list of the content but cannot add directly anything to that   control.&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;text   box&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;combo   box&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;&lt;span style=""&gt; &lt;/span&gt;List Box Control&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 51pt;" height="68"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 51pt; width: 35pt;" width="47" height="68"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;&lt;span style=""&gt; &lt;/span&gt;_____________ property of any control cannot   change at run time.&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;color&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;name&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;caption&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;B&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 38.25pt;" height="51"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 38.25pt; width: 35pt;" width="47" height="51"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;&lt;span style=""&gt; &lt;/span&gt;The maximum length of a variable is   _____________ characters.&lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;255&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;254&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;256&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;257&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 51pt;" height="68"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 51pt; width: 35pt;" width="47" height="68"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;&lt;span style=""&gt; &lt;/span&gt;In visual basic, number of loop control   structure is _____________.&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;4&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;5&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;6&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;7&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;C&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 51pt;" height="68"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 51pt; width: 35pt;" width="47" height="68"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;&lt;span style=""&gt; &lt;/span&gt;In timer control _____________ is the most   important property.&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;&lt;span style=""&gt; &lt;/span&gt;Interval.&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;Front&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;backcolor&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt; &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 63.75pt;" height="85"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 63.75pt; width: 35pt;" width="47" height="85"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;&lt;span style=""&gt; &lt;/span&gt;There are _________________ no. of built in   windows dialog boxes provided by common dialogs control.&lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;6&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;7&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;8&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;9&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 76.5pt;" height="102"&gt;   &lt;td class="xl66" style="border-top: medium none; height: 76.5pt; width: 35pt;" width="47" height="102"&gt;Visual Basic&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 86pt;" width="115"&gt;&lt;span style=""&gt; &lt;/span&gt;The extension name of a Visual Basic form is   _____________.&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    &lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 40pt;" width="53"&gt;&lt;span style=""&gt; &lt;/span&gt;.frm&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;.txt&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 39pt;" width="52"&gt;.prj&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 30pt;" width="40"&gt;.vbp&lt;/td&gt;   &lt;td class="xl67" style="border-top: medium none; border-left: medium none; width: 17pt;" width="23"&gt;A&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2861437668357595060-1150326183387218839?l=vbfaqs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbfaqs.blogspot.com/feeds/1150326183387218839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2861437668357595060&amp;postID=1150326183387218839' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/1150326183387218839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/1150326183387218839'/><link rel='alternate' type='text/html' href='http://vbfaqs.blogspot.com/2008/11/visual-basic-objective-questions.html' title='Visual Basic Objective Questions'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</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-2861437668357595060.post-5841100555666094304</id><published>2008-10-15T04:22:00.000-07:00</published><updated>2008-12-22T21:11:33.370-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>VB Best Faqs</title><content type='html'>1. How do you center a form? &lt;br /&gt;2. Can I send keystrokes to a DOS application? &lt;br /&gt;3. Convert an RGB value to a long, or a long to RGB. &lt;br /&gt;4. Implement smooth scrolling for either text, graphics or controls across a form. &lt;br /&gt;5. Implement some quick and easy encryption (can be something primitive). &lt;br /&gt;6. 4 different types of sorts: advantages and disadvantages. &lt;br /&gt;7. Compute CRC32 checksum, write a quick piece of code that accepts the packet of data and returns the CRC. &lt;br /&gt;8. How do you use the Mouse OFF event? &lt;br /&gt;9. How do I call Windows Help files from a VB program? &lt;br /&gt;10. How do I create a textbox that lets you insert tabs? &lt;br /&gt;11. How do I make text box that displays asterisks when the user types in data such as password? &lt;br /&gt;12. How do I create multi-column combo box? &lt;br /&gt;13. How do I make a menu popup from a CommandButton? &lt;br /&gt;14. How to create menus at run time in VB? &lt;br /&gt;15. Write a generic error handling routine. &lt;br /&gt;16. How to copy text to the Windows clipboard and from it. &lt;br /&gt;17. How can I call a Command button without clicking it? &lt;br /&gt;18. Write a simple app with Encrypt and Decrypt buttons and Textbox where the user can enter text for encryption and decryption. &lt;br /&gt;19. The Answer to question 17 is that u need to set the value property of command button to true &lt;br /&gt; Siddharth &lt;br /&gt;20. 16) How to copy text to the Windows clipboard and from it.&lt;br /&gt;ans :&lt;br /&gt;for Retreiving data from clipboard other then text&lt;br /&gt;Clipboard.getData for other then text format data&lt;br /&gt;for setting data other then text&lt;br /&gt;for assigning data to clipboard other then text&lt;br /&gt;Clipboard.setData for other then text format data&lt;br /&gt;Clipboard.getText&lt;br /&gt;Clipboard.SetText &lt;br /&gt;viceversa &lt;br /&gt; Siddharth &lt;br /&gt;21. Answer for 11 Question : Set Text Box PasswordChar Property to * &lt;br /&gt; Kalyani &lt;br /&gt;22. Answer to 1st Question: Set Form StartUpPostion Property to 2-CenterScreen.&lt;br /&gt;Answer to 13th and 14Th Questions :Use CreatePopupmenu API function . &lt;br /&gt; Kalyani &lt;br /&gt;23. LongValue = RGB(RedValue,GreenValue,BlueValue)&lt;br /&gt;can convert RGB to long value &lt;br /&gt; Manu &lt;br /&gt;24. Hello to all&lt;br /&gt;Some of the answers of Above questions are there at http://www11.brinkster.com/binoj/vbhowto.htm# &lt;br /&gt; Kalyani &lt;br /&gt;25. 1.&lt;br /&gt;‘ Center form on the screen&lt;br /&gt;formname.Left = Int(Screen.Width - formname.Width) / 2&lt;br /&gt;formname.Top = Int(Screen.Height - formname.Height) / 2 &lt;br /&gt; odette &lt;br /&gt;26. How do you center a form? &lt;br /&gt;Set Form StartUpPostion Property to 2-CenterScreen &lt;br /&gt;OR&lt;br /&gt;Private Sub Form Load ()&lt;br /&gt;Me. Top = Screen. Height / 2 - Me. Height / 2&lt;br /&gt;Me. Left = Screen. Width / 2 - Me. Width / 2&lt;br /&gt;End Sub &lt;br /&gt; Sumesh &lt;br /&gt;27. Can I send keystrokes to a DOS application?&lt;br /&gt;AppActivate (”C:\windows\system32\cmd.exe”) ‘ Appilcation caption&lt;br /&gt;SendKeys (”SA”) ’For sending one string&lt;br /&gt;SendKeys “% ep”, 1’ For sending Clipboard data to Dos &lt;br /&gt; Sumesh &lt;br /&gt;28. Convert an RGB value to a long, or a long to RGB&lt;br /&gt;RGB (210, 120, 34)&lt;br /&gt;QBColor (2) &lt;br /&gt; Sumesh &lt;br /&gt;29. Implement smooth scrolling for either text, graphics or controls across a form.&lt;br /&gt;Autoredraw = true &lt;br /&gt; Sumesh &lt;br /&gt;30. Implement some quick and easy encryption (can be something primitive). &lt;br /&gt;Take string, convert each charter to hex.&lt;br /&gt;get private key, get private key hexs added up.&lt;br /&gt;Add cahracted hex and pvtkey hex.&lt;br /&gt;Not it.&lt;br /&gt;give a seperator and do out.&lt;br /&gt;Reverse gives decoding as shown below&lt;br /&gt;Private Sub Form_Load()&lt;br /&gt;Dim A As String&lt;br /&gt;Dim str As String&lt;br /&gt;Dim str1 As String&lt;br /&gt;Dim I As Long&lt;br /&gt;Dim AscChar() As String&lt;br /&gt;Dim hexArray() As Long&lt;br /&gt;Dim pvtKey As String&lt;br /&gt;Dim hexKey() As Long&lt;br /&gt;Dim hexKeyVal As Long&lt;br /&gt;Dim outstring As String&lt;br /&gt;Dim strTmp() As String&lt;br /&gt;Dim GetVal() As Long&lt;br /&gt;Dim Decodedstr As String&lt;br /&gt;ReDim AscChar(0)&lt;br /&gt;ReDim hexArray(0)&lt;br /&gt;ReDim hexKey(0)&lt;br /&gt;str = “Sumesh” ‘ input string&lt;br /&gt;pvtKey = “vrs” ‘ private key for encryption&lt;br /&gt;For I = 1 To Len(pvtKey)&lt;br /&gt;ReDim Preserve hexKey(I)&lt;br /&gt;‘AscChar(I) = Mid(pvtKey, I, 1)&lt;br /&gt;hexKey(I) = Asc(Mid(pvtKey, I, 1))&lt;br /&gt;hexKeyVal = hexKeyVal + hexKey(I)&lt;br /&gt;Next I&lt;br /&gt;For I = 1 To Len(str)&lt;br /&gt;ReDim Preserve AscChar(I)&lt;br /&gt;ReDim Preserve hexArray(I)&lt;br /&gt;AscChar(I) = Mid(str, I, 1)&lt;br /&gt;hexArray(I) = Not (Asc(AscChar(I)) + hexKeyVal)&lt;br /&gt;If outstring = “” Then&lt;br /&gt;outstring = CStr(hexArray(I))&lt;br /&gt;Else&lt;br /&gt;outstring = outstring + “,” + CStr(hexArray(I))&lt;br /&gt;End If&lt;br /&gt;Next I&lt;br /&gt;strTmp = Split(outstring, “,”)&lt;br /&gt;ReDim GetVal(UBound(strTmp) + 1)&lt;br /&gt;For I = 0 To UBound(strTmp)&lt;br /&gt;GetVal(I) = Not (strTmp(I))&lt;br /&gt;GetVal(I) = GetVal(I) - hexKeyVal&lt;br /&gt;Decodedstr = Decodedstr + Chr$(GetVal(I))&lt;br /&gt;Next I&lt;br /&gt;MsgBox “Input string : ” + str + vbNewLine + “Encoded string : ” + outstring + vbNewLine + “Decoded string : ” + Decodedstr&lt;br /&gt;End Sub &lt;br /&gt; Sumesh &lt;br /&gt;31. How do you use the Mouse OFF event?&lt;br /&gt;Ole Drag drop &lt;br /&gt; Sumesh &lt;br /&gt;32. How do I call Windows Help files from a VB program?&lt;br /&gt;Public Declare Function WinHelp Lib “user32″ Alias “WinHelpA” (ByVal hWnd As Long, ByVal lpHelpFile As String, ByVal wCommand As Long, ByVal dwData As Any) As Long &lt;br /&gt; Sumesh &lt;br /&gt;33. How do I make text box that displays asterisks when the user types in data such as password?&lt;br /&gt;Text1.Passwordchar =”*” &lt;br /&gt; Sumesh &lt;br /&gt;34. How do I create multi-column combo box?&lt;br /&gt;Combo1.style = simple combo &lt;br /&gt; Sumesh &lt;br /&gt;35. How do I make a menu popup from a CommandButton&lt;br /&gt;Call TrackMenuPopup defined in user32.dll, declaration follows :&lt;br /&gt;Public Declare Function TrackPopupMenu Lib “user32″ (ByVal hMenu As Long, ByVal wFlags As Long, ByVal X As Long, ByVal Y As Long, ByVal nReserved As Long, ByVal hWnd As Long, lprc As Any) As Long &lt;br /&gt; Sumesh &lt;br /&gt;36. Write a generic error handling routine. &lt;br /&gt;Public Sub GenericErrMsg(I As Long, B As String)&lt;br /&gt;Dim A As String, I1 As Long&lt;br /&gt;B = StrAnsi(B)&lt;br /&gt;GTPRODUCT = “Sumesh’s new software”&lt;br /&gt;Select Case I&lt;br /&gt;Case 1&lt;br /&gt;A = “Can’t load project: ” + B: I1 = 48&lt;br /&gt;Case 2&lt;br /&gt;A = “Can’t save project” + B: I1 = 48&lt;br /&gt;Case 3&lt;br /&gt;A = “Can’t create net hook ” + B: I1 = 48&lt;br /&gt;Case 4&lt;br /&gt;A = “Can’t find project file: ” + B: I1 = 48&lt;br /&gt;Case 21&lt;br /&gt;A = “Range Error: ” + B: I1 = 48&lt;br /&gt;Case 22&lt;br /&gt;A = “Can’t load Sumes font, default assumed.” + B: I1 = 48&lt;br /&gt;Case 23&lt;br /&gt;A = “Can’t exceed 25 characters.” + B: I1 = 48&lt;br /&gt;Case 24&lt;br /&gt;A = “Password can’t exceed 8 characters.” + B: I1 = 48&lt;br /&gt;Case 101&lt;br /&gt;A = “Already exists: ” + B: I1 = 48&lt;br /&gt;End Select&lt;br /&gt;MsgBox A, I1 Or MB_SYSTEMMODAL, GTPRODUCT&lt;br /&gt;End Sub &lt;br /&gt; Sumesh &lt;br /&gt;37. What is the difference between ADO vs RDO ? &lt;br /&gt; Shiraz &lt;br /&gt;38. What is the difference between ActiveX Exe And Standard EXE ? &lt;br /&gt; Tushar &lt;br /&gt;39. what is called inprocess &amp; outprocess,? explain the differnce &lt;br /&gt; singanan &lt;br /&gt;40. 1).The answer of first question is set form startup-position to center-owner or center-screen. &lt;br /&gt; KingKalon &lt;br /&gt;41. Ans 15). u just call this function. &amp; u catch the compleate error Hierarchy very easily.&lt;br /&gt;Public Function MakeLogFile(ByVal ErrorPosition As String) As String&lt;br /&gt;Dim sFileName As String&lt;br /&gt;Dim iFileNo As Integer&lt;br /&gt;If ErrorPosition &lt;&gt; “” Then&lt;br /&gt;sFileName = App.path &amp; “\ErrorLogFile.txt”&lt;br /&gt;iFileNo = FreeFile&lt;br /&gt;Open sFileName For Append As #iFileNo&lt;br /&gt;Print #iFileNo, “Error No = ” &amp; Err.Number&lt;br /&gt;Print #iFileNo, “Error Description = ” &amp; Err.Description&lt;br /&gt;Print #iFileNo, “ErrorPosition = “; ErrorPosition&lt;br /&gt;Print #iFileNo, “Date = ” &amp; Date&lt;br /&gt;Print #iFileNo, “Time = ” &amp; Time&lt;br /&gt;Print #iFileNo, “”&lt;br /&gt;Close #iFileNo&lt;br /&gt;End If&lt;br /&gt;End Function&lt;br /&gt;if wants any more answers mail me at: kingkalon@yahoo.com &lt;br /&gt; KingKalon &lt;br /&gt;42. The answer for 17th question :&lt;br /&gt;private sub command1_click()&lt;br /&gt;msgbox(”Hello world”)&lt;br /&gt;end sub&lt;br /&gt;private sub Command2_click()&lt;br /&gt;command1_click&lt;br /&gt;end sub &lt;br /&gt; Vidya &lt;br /&gt;43. How do I make a menu popup from a CommandButton&lt;br /&gt;Ans : &lt;br /&gt;Private Sub Command1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)&lt;br /&gt;If Button = 2 Then&lt;br /&gt;PopupMenu Menuname&lt;br /&gt;End If&lt;br /&gt;End Sub&lt;br /&gt;By Jerrin &lt;br /&gt;To solve your queries visit http://www.websamba.com/jerrin enter ur questions as feedback. I will reply as mail &lt;br /&gt; Anonymous &lt;br /&gt;44. How do I make a menu popup from a CommandButton&lt;br /&gt;Ans : &lt;br /&gt;Private Sub Command1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)&lt;br /&gt;If Button = 2 Then&lt;br /&gt;PopupMenu Menuname&lt;br /&gt;End If&lt;br /&gt;End Sub&lt;br /&gt;By Jerrin &lt;br /&gt;To solve your queries visit http://www.websamba.com/jerrin enter ur questions as feedback. I will reply as mail &lt;br /&gt; Jerrin &lt;br /&gt;45. How do I make a menu popup from a CommandButton&lt;br /&gt;Ans : &lt;br /&gt;Private Sub Command1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)&lt;br /&gt;If Button = 2 Then&lt;br /&gt;PopupMenu Menuname&lt;br /&gt;End If&lt;br /&gt;End Sub&lt;br /&gt;By Jerrin &lt;br /&gt;To solve your queries visit http://www.websamba.com/jerrin and enter ur questions as feedback. I will reply in mail . &lt;br /&gt; Jerrin &lt;br /&gt;46. How do I make a menu popup from a CommandButton&lt;br /&gt;Ans : &lt;br /&gt;Private Sub Command1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)&lt;br /&gt;If Button = 2 Then&lt;br /&gt;PopupMenu Menuname&lt;br /&gt;End If&lt;br /&gt;End Sub&lt;br /&gt;By Jerrin &lt;br /&gt;To solve your queries visit http://www.websamba.com/jerrin and enter ur questions as feedback there. I will reply in mail . &lt;br /&gt; Jerrin &lt;br /&gt;47. Answers are to the point,&lt;br /&gt;Still some of the answers are breath taking (since i am novice to this vb) &lt;br /&gt; Sridhar.V &lt;br /&gt;48. How to copy text to the Windows clipboard and from it. &lt;br /&gt;Clipboard.SetData &lt;br /&gt;and &lt;br /&gt;Clipboard.GetData &lt;br /&gt; Sumeshvr@hotmail.com &lt;br /&gt;49. How can I call a Command button without clicking it? &lt;br /&gt;RaiseEvent &lt;br /&gt; Sumeshvr@hotmail.com &lt;br /&gt;50. How do I create multi-column combo box?&lt;br /&gt;VB6’s combo box doesn’t allow for multiple columns in its combo boxes.&lt;br /&gt;If you want to display multiple columns you can concatenate the columns together&lt;br /&gt;or create your own control&lt;br /&gt;or by a third party combo box control &lt;br /&gt; Judith &lt;br /&gt;51. how many cookies are stored in server?&lt;br /&gt;How to give the security in vb application and asp? &lt;br /&gt; gulam mohamed &lt;br /&gt;52. like ‘option explicit’ is there any thing like ‘option base..’ pls let me know.&lt;br /&gt;and what does it mean in visual basic &lt;br /&gt; amit jadhav &lt;br /&gt;53. Option Base is to set the Index of the Array to start from 0 or 1.&lt;br /&gt;Like option explicit.. declare “Option base 1″ at the top. now the array will start from Index 1.&lt;br /&gt;By default the index starts from 0. &lt;br /&gt; Anand &lt;br /&gt;54. Multi Column Combobox - If you need a Multicolumn combobox.. the best suitable control in VB is ListView Control. This should fit your need.. which can display multi column and also the checkbox facility for each row. &lt;br /&gt; Anand &lt;br /&gt;55. Q- difference between RDO and ADO&lt;br /&gt;A- ADO can access data from flat files as well as the databases,it is the encapsulation of DAO,RDO,OLE and hence called as OLE-DB technology.RDO follows a hierarchy model following its base objects rdoenvironment,rdoconnections,rdoresultset,rdoqueryobject which gives a way to manage multiple connections and multiple result set objects but is expensive to implement unwanted object persistence. &lt;br /&gt; Reena &lt;br /&gt;56. one can find good questions along with their answers over here :&lt;br /&gt;http://www11.brinkster.com/binoj/vbhowto.htm#How%20to%20use%20Len%20function? &lt;br /&gt; Reena &lt;br /&gt;57. This is a suitable site, candidates like me.&lt;br /&gt;Q. How do I know the caption-tip of menus in my MDI’s Status Bar? Like if I have a Menu:- File-&gt;Edit, as soon as the user move the mouse on this menu a description is shown in the Status Bar “Edit your tasks.”.&lt;br /&gt;Please mail the answer at g_arora@hotmail.com&lt;br /&gt;Thanks,&lt;br /&gt;Gaurav Arora &lt;br /&gt; Gaurav Arora &lt;br /&gt;58. I wish to thank all those who have shared their knowlede, and it was of great help.&lt;br /&gt;How do you detect if any one of the diffrent forms I have in an application is used ( either a keypress or a move movement).&lt;br /&gt;I have done this by keeping a global flag and keeping a timer on each form (some of which are not child to the mdi form). I am sure there is a better way to deal with this.&lt;br /&gt;Thanks&lt;br /&gt;SP &lt;br /&gt; shiburaj &lt;br /&gt;59. How to trap the alt key in the text box? &lt;br /&gt; jai &lt;br /&gt;60. What is the difference between ADO vs RDO ?&lt;br /&gt;ADO is most similar to RDO. ADO “flattens” the object model used by RDO, meaning that it contains fewer objects and more properties,methods and events. &lt;br /&gt; kiran &lt;br /&gt;61. To Trap the Alt Key in a TextBox you will probably have to make use of API’s in VB.&lt;br /&gt;Nitin Shinde&lt;br /&gt;Web Developer&lt;br /&gt;http://www.websamba.com/nitinshinde &lt;br /&gt; Nitin Shinde &lt;br /&gt;62. 1. How to test a dll?&lt;br /&gt;2. Two ways of creating objects.&lt;br /&gt;3. How to optimise the SQL statement?&lt;br /&gt;4. Diff types of Cursors, Locks&lt;br /&gt;5. Diffrence of Proc &amp; Fn in SQL Server&lt;br /&gt;6. Microsoft recommended method of connection&lt;br /&gt;7. Diff between left and right outer join &lt;br /&gt; Sudheer &lt;br /&gt;63. Great help for VB developers.Thanks for all those who share their knowledge. &lt;br /&gt; sureshnanubala &lt;br /&gt;64. i want to know about the different between rdo and ado.&lt;br /&gt;different between dll and com &lt;br /&gt; senthil &lt;br /&gt;65. what is the difference between ado,rdo and dao???? &lt;br /&gt; babita &lt;br /&gt;66. Option Explicit&lt;br /&gt;Private Type RECT&lt;br /&gt;Left As Long&lt;br /&gt;Top As Long&lt;br /&gt;Right As Long&lt;br /&gt;Bottom As Long&lt;br /&gt;End Type&lt;br /&gt;Private Declare Function SystemParametersInfo Lib “user32″ Alias “SystemParametersInfoA” (ByVal uAction As Long, ByVal uParam As Long, ByRef lpvParam As RECT, ByVal fuWinIni As Long) As Long&lt;br /&gt;Private Const SPI_GETWORKAREA = 48&lt;br /&gt;‘ Center the form taking the task bar&lt;br /&gt;‘ into account.&lt;br /&gt;Private Sub CenterForm(ByVal frm As Form)&lt;br /&gt;Dim wa_info As RECT&lt;br /&gt;Dim wa_wid As Single&lt;br /&gt;Dim wa_hgt As Single&lt;br /&gt;Dim wa_left As Single&lt;br /&gt;Dim wa_top As Single&lt;br /&gt;If SystemParametersInfo(SPI_GETWORKAREA, _&lt;br /&gt;0, wa_info, 0) 0 _&lt;br /&gt;Then&lt;br /&gt;‘ We got the work area bounds.&lt;br /&gt;‘ Center the form in the work area.&lt;br /&gt;wa_wid = ScaleX(wa_info.Right, vbPixels, vbTwips)&lt;br /&gt;wa_hgt = ScaleY(wa_info.Bottom, vbPixels, vbTwips)&lt;br /&gt;wa_left = ScaleX(wa_info.Left, vbPixels, vbTwips)&lt;br /&gt;wa_top = ScaleY(wa_info.Top, vbPixels, vbTwips)&lt;br /&gt;Else&lt;br /&gt;‘ We did not get the work area bounds.&lt;br /&gt;‘ Center the form on the whole screen.&lt;br /&gt;wa_wid = Screen.Width&lt;br /&gt;wa_hgt = Screen.Height&lt;br /&gt;End If&lt;br /&gt;‘ Center the form.&lt;br /&gt;frm.Move (wa_wid - Width + wa_left) / 2, _&lt;br /&gt;(wa_hgt - Height + wa_top) / 2&lt;br /&gt;End Sub&lt;br /&gt;‘ Center the form.&lt;br /&gt;Private Sub Form_Load()&lt;br /&gt;‘ Make the form really big so it’s&lt;br /&gt;‘ easy to see that it is centered.&lt;br /&gt;Width = Screen.Width - 1440&lt;br /&gt;Height = Screen.Height - 1440&lt;br /&gt;‘ Center the form.&lt;br /&gt;CenterForm Me&lt;br /&gt;End Sub &lt;br /&gt; rohit &lt;br /&gt;67. “Option base ” is used to set the start index for an array.It must be defined at the top of the code in the declaration part.&lt;br /&gt;e.g Option base 0 &lt;br /&gt; Yogi &lt;br /&gt;68. Q. How to trap the Alt key in the TextBox ?&lt;br /&gt;A. Use the KeyDown Event of the Text Box. The “Shift as integer” parameter in Keydown Event code holds the keycodes against the “Alt,Ctrl etc. keys). &lt;br /&gt; Yogi&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2861437668357595060-5841100555666094304?l=vbfaqs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbfaqs.blogspot.com/feeds/5841100555666094304/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2861437668357595060&amp;postID=5841100555666094304' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/5841100555666094304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/5841100555666094304'/><link rel='alternate' type='text/html' href='http://vbfaqs.blogspot.com/2008/10/vb-best-faqs.html' title='VB Best Faqs'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</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-2861437668357595060.post-1262496983558968795</id><published>2008-10-15T03:07:00.001-07:00</published><updated>2008-12-22T21:11:33.370-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>VB Faqs</title><content type='html'>1. 3 main differences between flexgrid control and dbgrid control &lt;br /&gt;2. ActiveX and Types of ActiveX Components in VB &lt;br /&gt;3. Advantage of ActiveX Dll over Active Exe &lt;br /&gt;4. Advantages of disconnected recordsets &lt;br /&gt;5. Benefit of wrapping database calls into MTS transactions &lt;br /&gt;6. Benefits of using MTS &lt;br /&gt;7. Can database schema be changed with DAO, RDO or ADO? &lt;br /&gt;8. Can you create a tabletype of recordset in Jet - connected ODBC database engine? &lt;br /&gt;9. Constructors and distructors &lt;br /&gt;10. Controls which do not have events &lt;br /&gt;11. Default property of datacontrol &lt;br /&gt;12. Define the scope of Public, Private, Friend procedures? &lt;br /&gt;13. Describe Database Connection pooling relative to MTS &lt;br /&gt;14. Describe: In of Process vs. Out of Process component. Which is faster? &lt;br /&gt;15. Difference between a function and a subroutine, Dynaset and Snapshot,early and late binding, image and picture controls,Linked Object and Embedded Object,listbox and combo box,Listindex and Tabindex,modal and moduless window, Object and Class,Query unload and unload in form, Declaration and Instantiation an object? &lt;br /&gt;16. Draw and explain Sequence Modal of DAO &lt;br /&gt;17. How can objects on different threads communicate with one another? &lt;br /&gt;18. How can you force new objects to be created on new threads? &lt;br /&gt;19. How does a DCOM component know where to instantiate itself? &lt;br /&gt;20. How to register a component? &lt;br /&gt;21. How to set a shortcut key for label? &lt;br /&gt;22. Kind of components can be used as DCOM servers &lt;br /&gt;23. Name of the control used to call a windows application &lt;br /&gt;24. Name the four different cursor and locking types in ADO and describe them briefly &lt;br /&gt;25. Need of zorder method, no of controls in form, Property used to add a menus at runtime, Property used to count number of items in a combobox,resize a label control according to your caption. &lt;br /&gt;26. Return value of callback function, The need of tabindex property &lt;br /&gt;27. Thread pool and management of threads within a thread pool &lt;br /&gt;28. To set the command button for ESC, Which property needs to be changed? &lt;br /&gt;29. Type Library and what is it’s purpose? &lt;br /&gt;30. Types of system controls, container objects, combo box &lt;br /&gt;31. Under the ADO Command Object, what collection is responsible for input to stored procedures? &lt;br /&gt;32. VB and Object Oriented Programming &lt;br /&gt;33. What are the ADO objects? Explain them. &lt;br /&gt;34. What are the different compatibility types when we create a COM component? &lt;br /&gt;35. What do ByVal and ByRef mean and which is the default? &lt;br /&gt;36. What does Option Explicit refer to? &lt;br /&gt;37. What does the Implements statement do? &lt;br /&gt;38. What is OLE and DDE? Explain. &lt;br /&gt;39. What is the difference between Msgbox Statement and MsgboxQ function? &lt;br /&gt;40. What keyword is associated with raising system level events in VB? &lt;br /&gt;41. What methods are called from the ObjectContext object to inform MTS that the transaction was successful or unsuccessful? &lt;br /&gt;42. What types of data access have you used. &lt;br /&gt;43. What was introduced to Visual Basic to allow the use of Callback Functions? &lt;br /&gt;44. Which controls can not be placed in MDI? &lt;br /&gt;45. Which controls have refresh method, clear method &lt;br /&gt;46. Which Property is used to compress a image in image control? &lt;br /&gt;47. Which property of menu cannot be set at run time? &lt;br /&gt;48. Which property of textbox cannot be changed at runtime and What’s the maximum size of a textbox? &lt;br /&gt;49. Which tool is used to configure the port range and protocols for DCOM communications? &lt;br /&gt;50. Question asked to me in interview:&lt;br /&gt;1) Assume i have created a dll in c++ which doesn’t have any class. It only have one function. How can i call that function in VB.&lt;br /&gt;2) What is control array and maximum limit of control array.&lt;br /&gt;3) Which one you will prefer for working with databases - OLEDB or ADO’s and why.&lt;br /&gt;4) What is the difference between Active X DLL &amp; Active X Exe. &lt;br /&gt;comment by Pramod &lt;br /&gt;51. What are Disconnected Recordsets? Advantages?&lt;br /&gt;The ADO has the ability to work offline with recordsets.&lt;br /&gt;The ADO Maintains the informations such as Database name,Server in which the database reside,username and password etc…After loacting a recordset it disconnects and work with them and finally send it back to the database by re-establishing the connection by making use of the already stored informations about the connetion and the database.&lt;br /&gt;Advantage: Minimizes the Load on the SErver&lt;br /&gt;1.what is MTS??&lt;br /&gt;2.Types of ActiveX Objects and Components??? is there any difference between both these??? &lt;br /&gt;comment by Prema &lt;br /&gt;52. respected Sir/madam&lt;br /&gt;i am jitendra Singh Bhaskar.Student of B.Sc(I.T) in Sikkim Manipal University.&lt;br /&gt;i have aproblem with some question of Visual basic .I am not able to define it.&lt;br /&gt;please solve my question.&lt;br /&gt;i am very glad to you&lt;br /&gt;thanking you&lt;br /&gt;jitendra singh bhaskar&lt;br /&gt;Q-Write an event procedure to check whether the given string is Palindrome or not.&lt;br /&gt;Q-Explain the different control structures by giving syntax and one suitable example for each:&lt;br /&gt;1)For…Next Loop.&lt;br /&gt;2)Select Case Statement&lt;br /&gt;3)Do While Loop &lt;br /&gt;comment by Jitendra Singh Bhaskar &lt;br /&gt;53. Respected Sir/Madam,i have a doubt from VB .&lt;br /&gt;1.what is the purpose of Visual Source safe in MicroSoft Visual Studio?&lt;br /&gt;2.What is the difference between datagrid and flex grid control?&lt;br /&gt;3.Explain MTS?&lt;br /&gt;4.What is the different between crystal report and data report?&lt;br /&gt;5.Need of zorder method, no of controls in form, Property used to add a menus at runtime, Property used to count number of items in a combobox,resize a label control according to your caption. &lt;br /&gt;comment by SHAILA &lt;br /&gt;54. Respected Sir/Madam,i have a doubt from VB .&lt;br /&gt;1.what is the purpose of Visual Source safe in MicroSoft Visual Studio?&lt;br /&gt;2.What is the difference between datagrid and flex grid control?&lt;br /&gt;3.Explain MTS?&lt;br /&gt;4.What is the different between crystal report and data report?&lt;br /&gt;5.Need of zorder method, no of controls in form, Property used to add a menus at runtime, Property used to count number of items in a combobox,resize a label control according to your caption. &lt;br /&gt;comment by rakesh kumar &lt;br /&gt;55. respected sir&lt;br /&gt;i have some question&lt;br /&gt;1. what is difference betn db grid and flexgrid&lt;br /&gt;2.how to call astored procedure in ado.&lt;br /&gt;3.what is query unload&lt;br /&gt;4.instancing property of dll. &lt;br /&gt;comment by rakesh kumar&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2861437668357595060-1262496983558968795?l=vbfaqs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbfaqs.blogspot.com/feeds/1262496983558968795/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2861437668357595060&amp;postID=1262496983558968795' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/1262496983558968795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/1262496983558968795'/><link rel='alternate' type='text/html' href='http://vbfaqs.blogspot.com/2008/10/vb-faqs.html' title='VB Faqs'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</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-2861437668357595060.post-8789520521196759855</id><published>2008-10-15T03:06:00.001-07:00</published><updated>2008-12-22T21:11:33.370-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>VB Questions</title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 12"&gt;&lt;meta name="Originator" content="Microsoft Word 12"&gt;&lt;link rel="File-List" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="themeData" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"&gt;&lt;link rel="colorSchemeMapping" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;X-NONE&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="&amp;#45;-"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="0" name="Hyperlink"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="0" name="Normal (Web)"&gt;   &lt;w:lsdexception locked="false" priority="0" name="HTML Cite"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1107304683 0 0 159 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman","serif"; 	mso-fareast-font-family:"Times New Roman";} a:link, span.MsoHyperlink 	{mso-style-unhide:no; 	color:blue; 	text-decoration:underline; 	text-underline:single;} a:visited, span.MsoHyperlinkFollowed 	{mso-style-noshow:yes; 	mso-style-priority:99; 	color:purple; 	mso-themecolor:followedhyperlink; 	text-decoration:underline; 	text-underline:single;} p 	{mso-style-unhide:no; 	mso-margin-top-alt:auto; 	margin-right:0in; 	mso-margin-bottom-alt:auto; 	margin-left:0in; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman","serif"; 	mso-fareast-font-family:"Times New Roman";} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	font-size:10.0pt; 	mso-ansi-font-size:10.0pt; 	mso-bidi-font-size:10.0pt;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;}  /* List Definitions */  @list l0 	{mso-list-id:1353415149; 	mso-list-template-ids:-1380293262;} @list l0:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in;} ol 	{margin-bottom:0in;} ul 	{margin-bottom:0in;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman","serif";} &lt;/style&gt; &lt;![endif]--&gt;  &lt;ol start="1" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;How do you represent your      menu description in the status Bbr of your MDI? So that when I move the      mouse over menu option, the description is shown in appropriate status      bar? &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;How would you make a program      which scans a bar code and perform action depending on the bar code value?      &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;What is the difference      between Windows programming and database programming? &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;How do you combine a number      of ActiveX control, which you developed, into a single app? &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;How do you interact with the      hardware level within your VB code if no APIs or documentation is      supplied?&lt;/li&gt;&lt;/ol&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;6.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Hi,&lt;/p&gt;  &lt;p style="margin-left: 0.5in;"&gt;Difference between Windows Programming and Database Programming&lt;br /&gt;Windows Programming&lt;br /&gt;——————-&lt;br /&gt;Windows programming is depends on designing windows based application software which is called Graphical user interface(GUI).&lt;br /&gt;Database Programming&lt;br /&gt;——————–&lt;br /&gt;Database programming are related to application programme for which we will have front-end and back-end. An application that are developed with the help of connecting database, RDBMS like Oracle,SQL server,windows access,Sybase,etc are known as database application. &lt;/p&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;7.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;How do you represent your menu description in the status Bbr of your MDI? So that when I move the mouse over menu option, the description is shown in appropriate status bar?&lt;br /&gt;How would you make a program which scans a bar code and perform action depending on the bar code value?&lt;br /&gt;How do you combine a number of ActiveX control, which you developed, into a single app?&lt;br /&gt;How do you interact with the hardware level within your VB code if no APIs or documentation is supplied? &lt;/p&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;8.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;How Many Control can Placed in VB Form &lt;/p&gt;  &lt;p style="margin-left: 0.5in;"&gt;&lt;cite&gt;comment by &lt;b&gt;&lt;a href="http://www.itmconsultancy.com/"&gt;Kumar&lt;/a&gt;&lt;/b&gt;&lt;/cite&gt; &lt;/p&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;9.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Ans 2&lt;br /&gt;for displaying the text in status bar subclass the mdi window and in windowproc look for WM_MENUSELECT message and display text as per the id&lt;/p&gt;  &lt;p style="margin-left: 0.5in;"&gt;Ans 3&lt;br /&gt;the maximum number of controls on a form are 256 however the limit can be bypassed by using control arrays . thus the total limit can be 256 * 32000 &lt;/p&gt;  &lt;p style="margin-left: 0.5in;"&gt;&lt;cite&gt;comment by &lt;b&gt;thencoder&lt;/b&gt;&lt;/cite&gt; &lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2861437668357595060-8789520521196759855?l=vbfaqs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbfaqs.blogspot.com/feeds/8789520521196759855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2861437668357595060&amp;postID=8789520521196759855' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/8789520521196759855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/8789520521196759855'/><link rel='alternate' type='text/html' href='http://vbfaqs.blogspot.com/2008/10/vb-questions.html' title='VB Questions'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</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-2861437668357595060.post-5787834529322405339</id><published>2008-07-24T06:14:00.000-07:00</published><updated>2008-12-22T21:11:33.370-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>VB6.0 vs. VB.NET</title><content type='html'>.NET Platform&lt;br /&gt;To understand VB.NET, we must first understand the .NET platform.&lt;br /&gt;&lt;br /&gt; .NET Framework: a set of approximately 3500 classes. &lt;br /&gt; These classes are divided into namespaces that group similar classes together.&lt;br /&gt; For organization, each class belongs to only one namespace.&lt;br /&gt; Most classes are lumped into a name space called System&lt;br /&gt;&lt;br /&gt;System.Data contains classes used for accessing data in a DB&lt;br /&gt;System.XML contains classes used for reading/writing XML&lt;br /&gt;System.Windows.Forms contains classed used for&lt;br /&gt;System.Net contains classes for communicating over the network.&lt;br /&gt;&lt;br /&gt; Essentially MS performed a massive re-organization of all the classes, no longer leaving methods or functions without clearly belonging to a specific class.  For example, note the difference between Messagebox() in VB6.0 and Messagebox.Show() in VB.NET (to be discussed later).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Visual Studio.NET&lt;br /&gt; Visual Studio.NET is the next version of IDE from MS. &lt;br /&gt;Note: VS.NET does require at least double its system requirements to function feasibly.&lt;br /&gt;Note: VS.NET can be installed on the same machine as VS 6.0.  Many have warned against it, yet personal experience has proven otherwise.&lt;br /&gt;&lt;br /&gt; VS.NET comes standard with VB.NET, C# (C-Sharp), and VC++.&lt;br /&gt;&lt;br /&gt; VS.NET supports more than 20 languages.&lt;br /&gt;&lt;br /&gt; All languages compile to .EXE and .DLLs containing Common Intermediate Language (CIL or IL), not machine native code.  C++ is the only exception offering an option to compile to machine native code.&lt;br /&gt;&lt;br /&gt; These CIL executables then run in the Common Language Runtime (CLR) using a Just-in-Time (JIT) compiler.  Note the similarity of .NET to JAVA and JVM.&lt;br /&gt;&lt;br /&gt; The JIT compiler dynamically converts the IL to machine native code during execution, and caches the native code for subsequent use. &lt;br /&gt; Advantages of CLR&lt;br /&gt;&lt;br /&gt; The JIT allows code to run in a protected environment as managed code.  The protected environment polices each application to run in its own memory segment.  This prevents a developer from shooting himself in the foot, but it also limits control.&lt;br /&gt;&lt;br /&gt; Using a JIT allows the IL code to be hardware independent.  As long as the .NET framework is installed, the IL code can be executed.&lt;br /&gt;&lt;br /&gt; The CLR also allows for enforcement of code access security.&lt;br /&gt;&lt;br /&gt; Verification of type safety.&lt;br /&gt;&lt;br /&gt; Access to Metadata (enhanced Type Information)&lt;br /&gt;&lt;br /&gt; Support for developer services (profiling, debugging)&lt;br /&gt;&lt;br /&gt; Interoperation between managed code, COM objects, pre-existing DLLs (unmanaged code and data).&lt;br /&gt;.NET components can access COM components.&lt;br /&gt;COM components can access .NET components by registering the .Net assembly using the regasm.exe utility.&lt;br /&gt;&lt;br /&gt; .NET provides a unified Programming Model&lt;br /&gt;Then: VB for RAD, VC++ for MFC/ATL, ASP for code embedded web pages&lt;br /&gt;Now: Any language to handle any .NET functionality.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.NET Framework supports Web Standards&lt;br /&gt;HTML&lt;br /&gt;XML&lt;br /&gt;XSLT&lt;br /&gt;SOAP&lt;br /&gt;WSDL for Web Services&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ILDASM&lt;br /&gt;The IL can be modified using Intermediate Language Dis-assembler (ILDASM).  ILDASM is a tool used to properly display IL in a human readable format.  A developer can then add remove code as needed for fine tuning.  Many developers speak highly of this method for fine tuning code.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Visual Studio.Net  vs. Visual Studio 6.0&lt;br /&gt; Syntax of event handling methods:&lt;br /&gt;Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;br /&gt;&lt;br /&gt; In VS.Net CTRL-ESC opens inteli-sense for easy searching of methods&lt;br /&gt;&lt;br /&gt; With VB6.0, project files were very simple:&lt;br /&gt;.VBP&lt;br /&gt;.VBW&lt;br /&gt;.CLS / .FRM / .RES&lt;br /&gt;&lt;br /&gt; File structure in .NET varies greatly from VB6.0 file structure.&lt;br /&gt;&lt;br /&gt;Note: For a tree diagram of the file structure, enter the following in a DOS prompt.&lt;br /&gt;C:\&gt;Tree C:\VBPrograms\WindowsApplication1  /F  /A&lt;br /&gt;&lt;br /&gt;C:\VBPROGRAMS\WINDOWSAPPLICATION1&lt;br /&gt;|   WindowsApplication1.vbproj&lt;br /&gt;|   AssemblyInfo.vb&lt;br /&gt;|   Form1.vb&lt;br /&gt;|   Form1.resx&lt;br /&gt;|   WindowsApplication1.vbproj.user&lt;br /&gt;|   WindowsApplication1.sln&lt;br /&gt;|&lt;br /&gt;+---bin&lt;br /&gt;|       WindowsApplication1.exe&lt;br /&gt;|       WindowsApplication1.pdb&lt;br /&gt;|&lt;br /&gt;\---obj&lt;br /&gt;    \---Debug&lt;br /&gt;        |   WindowsApplication1.Form1.resources&lt;br /&gt;        |   WindowsApplication1.pdb&lt;br /&gt;        |   WindowsApplication1.exe&lt;br /&gt;        |&lt;br /&gt;        +---temp&lt;br /&gt;        \---TempPE&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; Both .EXE are executable, pending the user has .NET framework installed.&lt;br /&gt;&lt;br /&gt; Use of “Imports System.IO” imports the System.IO.  This is similar to the With block code.&lt;br /&gt; Application Deployment&lt;br /&gt; Use XCOPY&lt;br /&gt; Downloading code is also available.&lt;br /&gt; No need to register components.&lt;br /&gt; Can run multiple component versions simultaneously.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2861437668357595060-5787834529322405339?l=vbfaqs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbfaqs.blogspot.com/feeds/5787834529322405339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2861437668357595060&amp;postID=5787834529322405339' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/5787834529322405339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/5787834529322405339'/><link rel='alternate' type='text/html' href='http://vbfaqs.blogspot.com/2008/07/vb60-vs-vbnet.html' title='VB6.0 vs. VB.NET'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</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-2861437668357595060.post-2688801288651047335</id><published>2008-07-24T03:03:00.001-07:00</published><updated>2008-12-22T21:11:33.370-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>VB Questions (General)</title><content type='html'>&lt;b&gt;&lt;u&gt;&lt;span style="font-family:Arial;font-size:130%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-family:Arial;"&gt; &lt;/span&gt;&lt;/u&gt;&lt;/b&gt; &lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;Dim x, y as integer. What is x and y data type?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;X as variant and y as integer. &lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;What is the size of the variant data type?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;   &lt;p&gt;Variant variable size = 22 + Actual data type size.&lt;/p&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;   &lt;li&gt;What is the return type of Instr and Strcmp?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Instr – integer (Numeric position)&lt;br /&gt;Strcmp - integer ( if    both the string are equal they result = 0)&lt;br /&gt;Strcmp (Str1, Str2,    Comparetype)&lt;br /&gt;Comparing mode = 0 – Binary Comparing    &lt;/span&gt;&lt;/b&gt;&lt;p&gt;&lt;b&gt;&lt;span style="font-family:Arial;"&gt;1 – Textual Comparing&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;b&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;   &lt;li&gt;What is the max size allowed for Msgbox Prompt and Input    Box?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;1024 &lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;Max label caption length. –&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;2,048    &lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;Max Text box length –&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;32,000    &lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;Max Control Names length –&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;255.    &lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;Extension in Visual Basic&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Frm, bas,    cls, res, vbx, ocx, &lt;b&gt;frx&lt;/b&gt;, vbp, exe &lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;What is frx?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;When some controls like    grid and third party control placed in our application then it will create frx    in run time. &lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;Name some date function&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Dateadd(),    Datediff(), Datepart(), Cdate() &lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;what will be the result for&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;15/4 =    3.75 and 15\4 = 3 &lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;What is keyword used to compare to objects?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;ISOperator – Returns Boolean. &lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;How many procedures are in VB?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;2.    function and sub procedures (Ask what is the diff. Between them?)   &lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;Where will we give the option explicit keyword and for what?    &lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;   &lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;p&gt;&lt;b&gt;&lt;b&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;In the general declarations section. To trap undeclared    variables.&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;What is Friend Variable?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Scope sharable    between projects.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;What is binding? What are types of binding?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Assigning variable with defined memory space.&lt;br /&gt;Late    Binding - Memory size is allotted in later stage.&lt;br /&gt;Ex:- Dim x as    object&lt;br /&gt;Early Binding - Memory size is allotted while declaring    itself.&lt;br /&gt;&lt;b&gt;New Key word is important.&lt;/b&gt;&lt;br /&gt;Ex:- Dim x as &lt;b&gt;New&lt;/b&gt;    Object &lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;What is the difference between Property Get, Set and Let.&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Let – Value is assigned to ActiveX Object from the    form.&lt;br /&gt;Let – Value is retried to ActiveX Object from the form.    &lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;What is Mask Edit and why it is used?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;Control. &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Restricted data input as well as formatted data    output.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;Drag and Drop state numbers and functions.&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;State 0 – Source control is being dragged with the range of    a target.&lt;br /&gt;1 – Out of the range of a target.&lt;br /&gt;2 – One positon in the    target to another.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;What are the type of validation available in VB?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Field, Form&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;With in the form we want to check all the text box control are typed or    not? How?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;For each currentcontrol in    controls&lt;br /&gt;if typeof currentcontrol is TextBox then&lt;br /&gt;end if   &lt;br /&gt;next&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;What is the result of Null * Any value = 0 (Zero).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  &lt;/li&gt;&lt;li&gt;What is control array and How many we can have it with in the    form?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Group of control share the same name.    Max 32, 767.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;What is the default model of the form? And what is it number?    &lt;dir&gt;&lt;span style="font-family:Arial;"&gt;   &lt;/span&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;VbModaless – 0 (Zero) – We can able to place another window above    this form.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/dir&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;li&gt;&lt;b&gt;Suppose from form1 to form2 object property settings will arise to ?   &lt;br /&gt;&lt;/b&gt;&lt;/li&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Invalid procedure call or argument (Run    time error – 5)&lt;br /&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;   &lt;li&gt;What is the diff between the Std and Class Module?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;Std Global with in the project. Cls Global through out the all    project only thing is we want to set the type lib. Class Modules can be    Instantiated.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;Different type of Instantiation?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;Private –    &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Only for the Specific Module.&lt;br /&gt;&lt;b&gt;Public not creatable – &lt;/b&gt;Private    &amp;amp; Public&lt;br /&gt;&lt;b&gt;Multi Use - &lt;/b&gt;Variable we have to declare.&lt;br /&gt;&lt;b&gt;Single    Use – &lt;/b&gt;Not possible through dll.&lt;br /&gt;&lt;b&gt;Global Multiuse – &lt;/b&gt;Have variable    not Required to Declare.&lt;br /&gt;&lt;b&gt;Global Single Use - " &lt;/b&gt;Only for exe.    &lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;How to declare Dll Procedure?&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Declare    function "&lt;function&gt;" lib "&lt;lib&gt;" Alias "&lt;alias&gt;" (Arg, …..) as Return type.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;What is MDI form? MDI Styles?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;We can    have only one MDI form for a project.&lt;b&gt; Multiple Document &lt;/b&gt;&lt;b&gt;Interface.    &lt;/b&gt;This form type is VBModal. We have set the Child property of the forms to    True to place forms inside this MDI.&lt;br /&gt;Style availables &lt;b&gt;1. VbCascade 2.    VbTitle Horizontal&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;How many images can be placed in the image list ?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;64&lt;br /&gt;  &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;b&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;   &lt;li&gt;What is Inprocess and Out of Process?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;Inprocess – &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;It will run with in the memory. ( Local    Machine).&lt;br /&gt;&lt;b&gt;Out of Process – &lt;/b&gt;It will run out of the memory Normally in    the server side.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;Diff type of Datatypes?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;LOB (Large    Object Data type).&lt;br /&gt;CLOB (Stores Character Objects).&lt;br /&gt;BLOB ( Store Binary    Objects such as Graphic, Video Chips and Sound files).&lt;br /&gt;BFILE(Store file    pointers to LOB It may Contain filename for photo’s store on    CD_ROM).&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;What is Zorder Method?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Object.Zorder =    1 or 0 Place a Specified mdiform form or control at the font or back of the    z-order with n its Graphical Level.&lt;br /&gt;  &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;b&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;   &lt;li&gt;What is diff between the Generic Variable and Specific    Variable?&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;   &lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;p&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;b&gt;&lt;b&gt;&lt;span style="font-family:Arial;"&gt;Generic Variable:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Create Object Ex:-Ole-Automation . No need    refer the object library.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Specific Variable:&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;Binding    Procedure Early and Late Binding ( Can be Remove from the    Memory).&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;b&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;   &lt;li&gt;What are properties available in Clip Board?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;No Properties Available. Only the methods they are SetText,    GetText, Setdata(), Getformat(), Clear.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;What is Dll?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;Libraries of procedures    external to the application but can be called from the    application.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;What is Tabstrip control? &lt;b&gt;What is the starting Index value?&lt;/b&gt;    &lt;b&gt;How to locate it?&lt;/b&gt;&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;It is tab control to    place our controls with in the form in multiple sheets.&lt;br /&gt;Index starts with    1. And to identify&lt;br /&gt;&lt;br /&gt;If Tabstrip1.SelectedItem.Index = 1    Then&lt;br /&gt;…..&lt;br /&gt;End if&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;Why we use Treeview Control?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;To list    the hierarchial list of the node objects. Such of files and    Directories.&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;Why we need OLE-Automation?Advantages?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Enables an application to exposes objects and methods to    other Applications.&lt;br /&gt;No need to reserve memory. No need to write functions.    Object library that simplify programming tasks. i.e., No need to Object    library. (OLB, TLB).&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;What is the diff between the Create Object and Get object?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;Create Object - &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;To create an instance of an    object.&lt;br /&gt;&lt;b&gt;Get Object – &lt;/b&gt;To get the reference to an existing    object.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;Have you create Properties and Methods for your own    Controls?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;Properties – &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Public variable of a    Class&lt;b&gt;&lt;br /&gt;Method – &lt;/b&gt;Public procedure of a class&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;What is Collection Objects?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;Similarly    to arrays but is preferred over an array because of the following    reasons.&lt;br /&gt;&lt;br /&gt;1. A collection objects uses less Memory than an array.&lt;br /&gt;2.    It provides methods to add and delete members.&lt;br /&gt;3. It does not required    reason statement when objects are added or deleted.&lt;br /&gt;4. It does not have    boundary limitations.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;What is Static Variable?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;Its Scope will    be available through out the life time.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;Private Dim x as integer.&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Private    cannot be used in front of DIM.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;What is Implicit?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Instance of specific    copy of a class with its own settings for the properties defined in that    class.&lt;br /&gt;Note: The implicity defined variable is never equal to nothing.   &lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;What are the scope of the class?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Public    , private, Friend&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;Can we able to set Instancing properties like Singleuse, GlobalSingleuse    to ActiveXDll?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;No.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;In project properties if we set Unattended what is it    mean?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;This cannot have user interface. This    can be used for the COM creation.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;What are the Style Properties of Combo Box?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Simple, Dropdown list – We can type and select.&lt;br /&gt;Dropdown    Compo – Only Drop Down.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;What are the Style properties of List Box?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Simple –Single Select , Extended. – Multiple    Select.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;What are the different type of Dialog Box?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Predefined, Custom, User Defined.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;What is Parser Bug?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;It is difficult to    use database objects declared in a module from within a    form.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;What is the Dll required for running the VB?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Vbrunxxx.dll&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;Can We create CGI scripts in VB?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Yes.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;How to change the Mouse Pointer?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;Screen.MousePointer =    VBHourGlass/VBNormal.&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial;color:#ff0000;"&gt;&lt;br /&gt;  &lt;li&gt;How to check the condition in Msgbox?&lt;br /&gt;&lt;/li&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Arial;"&gt;If(Msgbox("Do you want to delete this    Record",VbYesNo)=VbYes)Then End if&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2861437668357595060-2688801288651047335?l=vbfaqs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbfaqs.blogspot.com/feeds/2688801288651047335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2861437668357595060&amp;postID=2688801288651047335' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/2688801288651047335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/2688801288651047335'/><link rel='alternate' type='text/html' href='http://vbfaqs.blogspot.com/2008/07/vb-questions-general.html' title='VB Questions (General)'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</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-2861437668357595060.post-2443790834322814112</id><published>2008-07-17T20:03:00.001-07:00</published><updated>2008-12-22T21:11:33.370-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>vb questions 11</title><content type='html'>LockEdits property to False - Optimistic locking - update error&lt;br /&gt;What kind of error is the most expected with optmistic lock? Data changed;&lt;br /&gt;operation stopped&lt;br /&gt;Empty value ByVal 0&amp;amp;, vbNullString&lt;br /&gt;Char ByVal a As Byte&lt;br /&gt;Asciiz String ByVal as String&lt;br /&gt;2 deferent DLLs from 2 vendors - declare private or Use the alias keyword&lt;br /&gt;Adressof MyProc - Correct&lt;br /&gt;In which case is a new object created? set x=new form1&lt;br /&gt;Which Option will not allow to create instances : set Public to FALSE&lt;br /&gt;type library and New Keyword are required for Early Binding.&lt;br /&gt;How to raise an event? First to declare it, use the Event keyword,&lt;br /&gt;then Raise it.&lt;br /&gt;Ambient - change the background color of the control on the container&lt;br /&gt;Create a license package file with a utility from the LPK_TOOL directory.&lt;br /&gt;Run-time license: Application Setup Wizard&lt;br /&gt;Design-time license: Application Setup Wizard&lt;br /&gt;Internet license: LPK_TOOL.EXE, and create a reference to the .LPK file&lt;br /&gt;To navigate between the two ActiveX documents, use the HyperLink object and&lt;br /&gt;its NavigateTo method. Use the GoBack or GoForward methods to go backwards&lt;br /&gt;or forwards through the History list. WebBrowser Object - Use GoHome and&lt;br /&gt;GoSearch&lt;br /&gt;Hyperlink offers a help option on Web.&lt;br /&gt;Data persistence is the ability of a component to store and retrieve data.&lt;br /&gt;The Internet Explorer 3.0 (and higher) and Microsoft Office Binder allows&lt;br /&gt;you to write to a file using the PropertyBag.&lt;br /&gt;Create separate secondary .cab files to reduce download time.&lt;br /&gt;Which two project types can contain an ActiveX Document? ActiveX Dll,&lt;br /&gt;ActiveX Exe.&lt;br /&gt;What project types can have ActiveX documents? - All that can be a container&lt;br /&gt;How to convert an ActiveX.DLL to multithread? - Make it ActiveX. EXE&lt;br /&gt;Advantages of Using ActiveX Documents - Support for the Hyperlink object and&lt;br /&gt;AsyncRead method&lt;br /&gt;Which project template would you select to build an in-process code (ActiveX&lt;br /&gt;Document DLL)?&lt;br /&gt;The AsyncRead method initiates an asynchronous download.&lt;br /&gt;Datatypes to be downloaded: files, pictures, byte arrays&lt;br /&gt;Which 2 actions may disqualify a component for being marked as safe for&lt;br /&gt;scripting? inserts in/reads from registry&lt;br /&gt;When an error occurs in a component, call Err.Raise number.&lt;br /&gt;Err.Source returns the name of the object that generated an Error.&lt;br /&gt;Command1_Click() AND Command2_Click() call each other - Out of Stack Space&lt;br /&gt;error&lt;br /&gt;Which task can you accomplish by packaging in .cab file? register on users&lt;br /&gt;computer&lt;br /&gt;Q: There is a www server application that uses ActiveX controls you&lt;br /&gt;developed. When the application page is browsed with IE it does not show&lt;br /&gt;the ActiveX control. What may be happening?&lt;br /&gt;A1: No Internet download license file on the web server&lt;br /&gt;A2: Options in the Application Setup Wizard were not used correctly&lt;br /&gt;Q: Where do you define conditional compiling variables?&lt;br /&gt;Command line&lt;br /&gt;Project Properties dialog box (under the Make tab)&lt;br /&gt;In code&lt;br /&gt;•Q: Difference between debugging an ActiveX control project and an&lt;br /&gt;in-process component?&lt;br /&gt;A: The component code can run while the client is in Design mode&lt;br /&gt;•Q: When testing a UserControl, you add a standard.exe to your project&lt;br /&gt;group. UserControl in the Toolbox is dimmed. What should you do?&lt;br /&gt;A: Close the UserControl designer and then test again&lt;br /&gt;How to view contents of the Variant?&lt;br /&gt;- Use Debug.print             &lt;br /&gt;- Look at the Locals window   &lt;br /&gt;Q: What cannot be done when an Internet Control is packaged. (Choose Two)&lt;br /&gt;A: Write to a file&lt;br /&gt;Read from the registry&lt;br /&gt;Q: How can you build ActiveX components for Internet distribution?&lt;br /&gt;A: Use the Application Setup Wizard and pick the appropriate options&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;Q: Which function can the Setup Wizard (Enterprise Ed.) of VB 5 perform in&lt;br /&gt;addition to installing your ActiveX EXE project?&lt;br /&gt;A: install your project as an ActiveX shared component&lt;br /&gt;Q: What does locales show in different contexts?&lt;br /&gt;A: In Visual Basic, many functions use the user's system locale, which uses&lt;br /&gt;the Control Panel settings provided by the operating system to automatically&lt;br /&gt;determine the conventions at run time. These functions are called&lt;br /&gt;locale-aware functions.&lt;br /&gt;Q: When should you use public variables instead of property procedures for&lt;br /&gt;read-write properties?&lt;br /&gt;A: The property is a String data type, and there is no constrain on the size&lt;br /&gt;or value of the string.&lt;br /&gt;Q: Where and why to use Friend methods and properties&lt;br /&gt;A: The combination of public to classes in the same project and private to&lt;br /&gt;the external.&lt;br /&gt;Q: You have a Data Control with Bound Controls. You want to provide the&lt;br /&gt;ability to abort changes in the record currently being edited and to&lt;br /&gt;refresh the bound controls. How?&lt;br /&gt;A: Only invoke the UpdateControls method for the Data control.&lt;br /&gt;•Q: A list-box is used as a constituent control. The design window is&lt;br /&gt;closed and the control inserted on a form in another project. The user&lt;br /&gt;then sets the sort property of the control which in turn sets the sort&lt;br /&gt;property of the control. Why does the error occur?&lt;br /&gt;A: Compile the control project ?&lt;br /&gt;Q: How to set properties for the individual Column objects?&lt;br /&gt;A: You must make the DBGrid control UI-active: Select the right mouse&lt;br /&gt;button, and choose Edit. Then use pop-up menu.&lt;br /&gt;Q: How to remove column header?&lt;br /&gt;A: object.ColumnHeaders = False&lt;br /&gt;Q: How to refer a colmun?&lt;br /&gt;A: object.ColIndex [= value]&lt;br /&gt;This property returns the zero-based index of a column within the Columns&lt;br /&gt;collection.&lt;br /&gt;Q: How to check the value of a specific field in the current record?&lt;br /&gt;A: MyString = Data1.Recordset.Fields("Title").Value&lt;br /&gt;Data1.Recordset("PubID") = 43' Set the field values.&lt;br /&gt;Data1.Recordset("PubID") = "12345" ' Change the value.&lt;br /&gt;What are the benefits of Forms collection?&lt;br /&gt;- Allows faster unloading of all forms in the project *&lt;br /&gt;- Faster access&lt;br /&gt;- Standardized mechanism for tracking multiple instances of a form *&lt;br /&gt;- Group forms &amp;amp; drag the group&lt;br /&gt;How to handle resizing of the label in a UserControl?&lt;br /&gt;During design time - Label1_Resize          &lt;br /&gt;During run-time – UserControl1_resize&lt;br /&gt;How to refer to the contents of the child of the selected node of a TreeView?&lt;br /&gt;Set nodChild = TreeView1.Nodes(TreeView1.SelectedItem.Index).Child&lt;br /&gt;•&lt;br /&gt;•tvwMyTree.Nodes(10).Children ‘ return the number of children&lt;br /&gt;tvwMyTree.Nodes(10).Parent.Text ‘ return the Text of Parent&lt;br /&gt;What properties can you set while using the Add property for a list view?&lt;br /&gt;•ColumnHeader object.Add(index, key, text, width, alignment, icon)&lt;br /&gt;Which type of Instancing should you use for the class module?&lt;br /&gt;A. private&lt;br /&gt;B. multiUse&lt;br /&gt;C. GlobalMultiUse&lt;br /&gt;D. PublicNotCreatable         *&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2861437668357595060-2443790834322814112?l=vbfaqs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbfaqs.blogspot.com/feeds/2443790834322814112/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2861437668357595060&amp;postID=2443790834322814112' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/2443790834322814112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/2443790834322814112'/><link rel='alternate' type='text/html' href='http://vbfaqs.blogspot.com/2008/07/vb-questions-11.html' title='vb questions 11'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</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-2861437668357595060.post-8872809108123596720</id><published>2008-07-17T20:01:00.002-07:00</published><updated>2008-12-22T21:11:33.370-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>vb questions 10</title><content type='html'>Q: Why would you want to set the LockEdits property to False? &lt;br /&gt;A: Optimistic locking is in effect for editing. The 2K page containing the&lt;br /&gt;record is not locked until the Update method is executed. &lt;br /&gt;What kind of error is the most expected with optmistic lock? Data changed; &lt;br /&gt;operation stopped &lt;br /&gt;If recordset.lockedits=false, which would be the most like to occur: &lt;br /&gt;A. update error: record locked on &lt;machine_name&gt; by &lt;user_name&gt; * &lt;br /&gt;B. save error: record locked on &lt;machine_name&gt; by &lt;user_name&gt; &lt;br /&gt;C. can not read database... &lt;br /&gt;Incorporate dynamic-link libraries (DLLs) into an application. &lt;br /&gt;•Declare and call a DLL routine. &lt;br /&gt;Q: How to declare a DLL with a C Char datatype? &lt;br /&gt;A: ByVal variable As Byte &lt;br /&gt;Declare Function Publicname Lib "libname" [Alias "alias"] [Arguments List] &lt;br /&gt;As Type &lt;br /&gt;Empty value ByVal 0&amp;, vbNullString&lt;br /&gt;Char ByVal a As Byte &lt;br /&gt;Asciiz String ByVal as String &lt;br /&gt;There are 2 deferent DLL from 2 vendors and the DLL have the same name. &lt;br /&gt;What must you do to be able to call both functions?&lt;br /&gt;A. modify function name in one&lt;br /&gt;B. declare public in separate module use the alias keyword to&lt;br /&gt;C. declare private rename one function  *&lt;br /&gt;D. Use the alias keyword to rename one function *&lt;br /&gt;We obtained many DLL functions from different vendors. Two functions happen &lt;br /&gt;to have the same name but different purposes. What can we do? &lt;br /&gt;A. Using an alias *&lt;br /&gt;B. Declaring each Private in separate modules *&lt;br /&gt;C. Registering one with another name&lt;br /&gt;D. Modifying the DLL function. &lt;br /&gt;Pass argument contain address of a Vb subroutine named MyProc to a MicWind &lt;br /&gt;HPL&lt;br /&gt;A. Aressof := MyProc&lt;br /&gt;B. Adressof Me.MyProc&lt;br /&gt;C. Adressof MyProc *&lt;br /&gt;D. Adressof (MyProc) &lt;br /&gt;Which code will create a new instance of object named Form1 in Project1?&lt;br /&gt;A. Dim Frmx As Form1&lt;br /&gt;B. Dim Frmx As New Form1        *&lt;br /&gt;C. Set Frmx = Form1&lt;br /&gt;D. Set Frmx = GetObject("Project1.Form1")	&lt;br /&gt;How many instances of class1 after running exist after the following code?&lt;br /&gt;Dim a As Class1&lt;br /&gt;Dim b As new Class1&lt;br /&gt;	 b.MyProperty = 3&lt;br /&gt;Set a = new Class1&lt;br /&gt;A. 0&lt;br /&gt;B. 1&lt;br /&gt;C. 2   *&lt;br /&gt;D. 3&lt;br /&gt;In which case is a new object created? set x=new form1 &lt;br /&gt;Which Option will not allow to create instances : set Public to FALSE &lt;br /&gt;Create an Automation server that exposes objects, properties, methods, and &lt;br /&gt;events. &lt;br /&gt;Q: The differences between early binding vs. late binding &lt;br /&gt;•A: Late binding occurs when the compiler does not know about an object &lt;br /&gt;until run time. &lt;br /&gt;Early binding occurs when Visual Basic knows at compile time exactly which&lt;br /&gt;interface will be used with an object variable. &lt;br /&gt;Which two required for Early Binding?&lt;br /&gt;A. Type library *&lt;br /&gt;B. Dual Interface&lt;br /&gt;C. New Keyword *&lt;br /&gt;D. CreateObject Function &lt;br /&gt;For Early Binding &lt;br /&gt;Dim Varnaem as Class &lt;br /&gt;Set varname = CreateObject(ClassName) &lt;br /&gt;Create and use an ActiveX control. &lt;br /&gt;•Declare and raise events. &lt;br /&gt;How to raise an event? &lt;br /&gt;First to declare it, use the Event keyword, then Raise it. &lt;br /&gt;e.g. RaiseEvent ABC (arguments) &lt;br /&gt;How Project Groups can be used when debugging ActiveX controls(lots of Qs). &lt;br /&gt;Ambient &amp; Extender &lt;br /&gt;What is the property of a container that can be used to change the &lt;br /&gt;background color of the control on the container when the background color &lt;br /&gt;of the container changes?&lt;br /&gt;A. Ambient      *&lt;br /&gt;B. Extender&lt;br /&gt;C. Appearance&lt;br /&gt;D. Property Pages&lt;br /&gt;How do you create a license package file containing the licensing &lt;br /&gt;information for all controls on a Web page? &lt;br /&gt;A. With the Visual Basic License Manager.&lt;br /&gt;B. With the CODEBASE parameter of an HTML page's&lt;OBJECT&gt;tag.&lt;br /&gt;C. With the Visual Basic Application Wizard.&lt;br /&gt;D. With a utility from the LPK_TOOL directory on the Visual Basic CDROM. * &lt;br /&gt;Q: How to add a control to a web page? &lt;br /&gt;A: By scripting &lt;br /&gt;You want to minimize download time for an ActiveX document with several &lt;br /&gt;components. How package within a .cab file?&lt;br /&gt;In a single .cab file&lt;br /&gt;One .cab with ActiveX document. And a second .cab with referenced components&lt;br /&gt;One .cab with ActiveX document and an INF file that points to individual cab &lt;br /&gt;files for each component. *&lt;br /&gt;One .cab with ActiveX document, an INF file that points to a .cab file with &lt;br /&gt;the referenced components&lt;br /&gt;Q: How to reduce the time for downloading on Internet an ActiveX component? &lt;br /&gt;A: Create separate secondary .cab files ??? &lt;br /&gt;Users may already have these secondary .cab files on the system or the &lt;br /&gt;secondary .cab files can be downloaded from Microsoft's web site. &lt;br /&gt;Which two project types can contain an ActiveX Document?&lt;br /&gt;A. Standard EXE&lt;br /&gt;B. ActiveX Document EXE  *&lt;br /&gt;C. ActiveX Document DLL  *&lt;br /&gt;D. ActiveX Control&lt;br /&gt;Q: What project types can have ActiveX documents? &lt;br /&gt;A: All that can be a container &lt;br /&gt;Q: How to convert an ActiveX.DLL to multithread? &lt;br /&gt;A: Make it ActiveX. EXE &lt;br /&gt;Q:Advantages of Using ActiveX Documents (Choose 2). &lt;br /&gt;Q: What elements of ActiveX Components on a Web page contribute to security? &lt;br /&gt;•A: When you use ActiveX controls on a Web page, you can implement the &lt;br /&gt;following security measures: &lt;br /&gt;•Set the appropriate level of security in Internet Explorer&lt;br /&gt;•Provide users with information about the author of the control&lt;br /&gt;•Through digital codesigning&lt;br /&gt;•Create an Internet download by marking your Controls as safe for &lt;br /&gt;scripting and initialization &lt;br /&gt;Which project template would you select to build an in-process code &lt;br /&gt;(ActiveX Document DLL)?&lt;br /&gt;Hyperlink object &lt;br /&gt;Which 2 actions may disqualify a component for being marked as safe for &lt;br /&gt;scripting?&lt;br /&gt;A. the component creates a password&lt;br /&gt;B. the component writes information to a file   &lt;br /&gt;C. the component inserts data in registry        *&lt;br /&gt;D. the component reads information from registry *&lt;br /&gt;Q: There is a www server application that uses ActiveX controls you developed&lt;br /&gt;. When the application page is browsed with IE it does not show the ActiveX &lt;br /&gt;control. What may be happening?&lt;br /&gt;A1: No Internet download license file on the web server &lt;br /&gt;A2: Options in the Application Setup Wizard were not used correctly &lt;br /&gt;What ActiveX can do on WWW?&lt;br /&gt;A. create licensing files&lt;br /&gt;B. digital signing&lt;br /&gt;C. register your control on a user’s computer *&lt;br /&gt;D. modifying the users internet security settings&lt;br /&gt;If you want to offer an option in a help menu for users to access your Web &lt;br /&gt;Site, what ActiveX Document should you use? &lt;br /&gt;A. Automation&lt;br /&gt;B. WinSock &lt;br /&gt;C. Hyperlink *&lt;br /&gt;D. ActiveX component &lt;br /&gt;You have an ActiveX document that uses the AsyncRead method to obtain data &lt;br /&gt;from an intranet location. What type of data does it cannot return directly? &lt;br /&gt;A. Files &lt;br /&gt;B. Byte arrays &lt;br /&gt;C. Pictures &lt;br /&gt;D. Hyperlinks * &lt;br /&gt;What is the purpose of the ID parameter in an HTML &lt;OBJECT&gt; tag? &lt;br /&gt;A. Specifies a URL that points to a file containing an implementation of an &lt;br /&gt;object.&lt;br /&gt;B. Specifies the object's unique class identifier stored in the system &lt;br /&gt;registry.&lt;br /&gt;C. Specifies a URL that points to the name of the object.&lt;br /&gt;D. Specifies the object name. * &lt;br /&gt;An ActiveX component connects to a database, the connection to the database &lt;br /&gt;fails. What to do?&lt;br /&gt;A. Create an error event&lt;br /&gt;B. Set err object to false&lt;br /&gt;C. Call raise method of the err object  *&lt;br /&gt;D. Create a prop name connected that returns false&lt;br /&gt;Q: An error occurs in a component that you wrote, how to notify client: &lt;br /&gt;A: Err.Raise number &lt;br /&gt;Which property of the Err object returns the name of the object that &lt;br /&gt;generated an Error?&lt;br /&gt;A. Description&lt;br /&gt;B. Source               *&lt;br /&gt;C. Number&lt;br /&gt;D. Helpcontext&lt;br /&gt;Q: Which code segment would best trap a "division by zero" error handling? &lt;br /&gt;A: For example: (See Error Handling) &lt;br /&gt;•Public Sub ProcDivZero()&lt;br /&gt;On Error GoTo ErrTrapper&lt;br /&gt;X = 100 / 0&lt;br /&gt;Exit Sub&lt;br /&gt;End Sub&lt;br /&gt;ErrTrapper:&lt;br /&gt;If Err.Number = 11 Then Debug.Print "Division by Zero Found"&lt;br /&gt;End Sub &lt;br /&gt;When the following code executes. What will the user see? &lt;br /&gt;•Public Sub MyTest() &lt;br /&gt;On Error GoTo ErrHandler &lt;br /&gt;Dim X as Integer &lt;br /&gt;MyProc(X) &lt;br /&gt;MsgBox "XXX" &lt;br /&gt;Errhandler: &lt;br /&gt;MsgBox "YYY" &lt;br /&gt;End Sub &lt;br /&gt;Public Sub MyProc(X As Integer) &lt;br /&gt;On Error GoTo MyprocErr &lt;br /&gt;X = X / 0 &lt;br /&gt;MyprocErr: &lt;br /&gt;MsgBox "ZZZ" &lt;br /&gt;End Sub &lt;br /&gt;a) "XXX" Only &lt;br /&gt;b) "ZZZ" Only &lt;br /&gt;c) "XXX", "ZZZ" and "YYY" Only * &lt;br /&gt;d) "XXX" and "ZZZ" Only &lt;br /&gt;Q: What will be shown when this code is executed? &lt;br /&gt;Private Sub Command1_Click() &lt;br /&gt;Command2.Value = True &lt;br /&gt;End Sub &lt;br /&gt;Private Sub Command2_Click() &lt;br /&gt;•Command1.Value = True &lt;br /&gt;End Sub &lt;br /&gt;A: OUt of Stack Space error &lt;br /&gt;Q: What will happen if user presses command2? &lt;br /&gt;Sub Mysub() &lt;br /&gt;•Static intNum As Integer &lt;br /&gt;If intNum &lt;= 4 Then &lt;br /&gt;•Exit Sub &lt;br /&gt;Else &lt;br /&gt;•&lt;br /&gt;•intNum = intNum + 1 &lt;br /&gt;Mysub &lt;br /&gt;End If &lt;br /&gt;End Sub &lt;br /&gt;Private Sub Command2_Click() &lt;br /&gt;•Mysub &lt;br /&gt;End Sub &lt;br /&gt;A: The code will run OK &lt;br /&gt;Implement Help features in an application. &lt;br /&gt;You want to use the ShowHelp method to display specific Help file pages for &lt;br /&gt;your application without declaring a dll. Which object?&lt;br /&gt;A. App&lt;br /&gt;B. Menu&lt;br /&gt;C. MenuLine&lt;br /&gt;D. CommonDialog *&lt;br /&gt;Before you use the ShowHelp method, you must set the HelpFile and &lt;br /&gt;HelpCommand properties of the CommonDialog control to one of their &lt;br /&gt;appropriate constants or values. Otherwise, Winhlp32.exe doesn't display &lt;br /&gt;the Help file. &lt;br /&gt;CommonDialog1.ShowHelp &lt;br /&gt;HelpcontextID set to 0 for an option Button in a Frame, what will happen &lt;br /&gt;when press F1?&lt;br /&gt;A. Help conexts page is displayed&lt;br /&gt;B. HelpContextID property of form is evaluated&lt;br /&gt;C. HelpContextID property of the frame is evaluated *&lt;br /&gt;D. Context help for the Option Button control is displayed.&lt;br /&gt;Form’s HelpContextId is searched for non-zero value and if so, help is &lt;br /&gt;displayed for the Form &lt;br /&gt;If HelpContextID is set to 0, then Visual Basic looks in the HelpContextID&lt;br /&gt;of the object's container, and then that object's container, and so on. &lt;br /&gt;If a nonzero current context number can't be found, the F1 key is ignored. &lt;br /&gt;Debugging and Testing Issues &lt;br /&gt;•&lt;br /&gt;•&lt;br /&gt;Select appropriate compiler options. &lt;br /&gt;•&lt;br /&gt;•List and describe options for optimizing when compiling to native code.&lt;br /&gt;•List and describe the differences between compiling to p-code and &lt;br /&gt;compiling to native code. &lt;br /&gt;What code will have the most to gain on to be compiled to Native Code? &lt;br /&gt;A. Code that uses windows API &lt;br /&gt;B. Code that has much String functions &lt;br /&gt;C. Code that manipulates objects &lt;br /&gt;D. Code that have complex Financial calculations * &lt;br /&gt;Your application relies on arguments that are passed by reference. Which &lt;br /&gt;two native code compilation options should you select to optimize the &lt;br /&gt;performance of numeric processing? &lt;br /&gt;A. Assume no Aliasing   &lt;br /&gt;B. Optimize for small code&lt;br /&gt;C. Remove VB floating point error checks   *&lt;br /&gt;D. Remove Safe Pentium FDIV checks         *&lt;br /&gt;You are creating an application that is intended to run on only PentiumPro&lt;br /&gt;based servers. You want to maximize the performance of this application. &lt;br /&gt;Which compiler option should you use?&lt;br /&gt;A. Assuming no Aliasing &lt;br /&gt;B. Optimize for small code&lt;br /&gt;C. Create symbolic debug information&lt;br /&gt;D. Remove safe for Pentium FDIV checks *&lt;br /&gt;You want the code written for debugging should not be compiled. How will &lt;br /&gt;you accomplish this? &lt;br /&gt;A. Use If .. Then .. Else Statements &lt;br /&gt;B. Use the Err Object &lt;br /&gt;C. Use conditional compilation * &lt;br /&gt;Which element can you use in a conditional compilation directive?&lt;br /&gt;A. Public variable&lt;br /&gt;B. Public constant&lt;br /&gt;C. Literal expression   *&lt;br /&gt;D. Undefined constant&lt;br /&gt;Creating an application that uses conditional compilation to enable and&lt;br /&gt;disable elements of functionality, which two mechanisms can you use to set &lt;br /&gt;conditional compilation constants?&lt;br /&gt;A. Dim statement&lt;br /&gt;B. Constant statement&lt;br /&gt;C. #Constant directive  *&lt;br /&gt;D. Project property dialog box  *&lt;br /&gt;Q: Where do you define conditional compiling variables? &lt;br /&gt;A: Command line &lt;br /&gt;Project Properties dialog box (under the Make tab) &lt;br /&gt;In code &lt;br /&gt;Conditional compiling could be used to:&lt;br /&gt;1.designing an application to run on different platforms &lt;br /&gt;2.changing the date and currency display filters &lt;br /&gt;3.Remove debug code &lt;br /&gt;What expression is acceptable for #const Only literal and their operation &lt;br /&gt;except Is &lt;br /&gt;•&lt;br /&gt;•&lt;br /&gt;Set watch expressions during program execution. &lt;br /&gt;Q: When can you add watch variables? &lt;br /&gt;A: In Break and design mode &lt;br /&gt;Two advantages of using the context options in the Add watch dialog box are.&lt;br /&gt;A. Allow multiple projects scope&lt;br /&gt;B. Allow faster evaluation of expressions by narrowing content (of context) *&lt;br /&gt;C. Increase number of break mode options&lt;br /&gt;D. Viewing variables that have the same name but different scope *&lt;br /&gt;Sets the scope of variables watched in the expression. Use if you have &lt;br /&gt;variables of the same name with different scope. You can also restrict the &lt;br /&gt;scope of variables in watch expressions to a specific procedure or to a &lt;br /&gt;specific form or module, or you can have it apply to the entire application &lt;br /&gt;by selecting All Procedures and All Modules. Visual Basic can evaluate a &lt;br /&gt;variable in a narrow context more quickly. &lt;br /&gt;Monitor the values of expressions and variables by using the debugging &lt;br /&gt;windows. &lt;br /&gt;Which variable does the local window show? (select 2)&lt;br /&gt;A. All variables within a module&lt;br /&gt;B. All variables within your Application&lt;br /&gt;C. All variables within the Current procedure           *&lt;br /&gt;D. All object variables within the current scope        *&lt;br /&gt;Which task(s) can you perform by using the locals window&lt;br /&gt;A. Edit the call stack&lt;br /&gt;B. Define new variables&lt;br /&gt;C. View and change expressions&lt;br /&gt;D. View and change variables of the current procedure *&lt;br /&gt;Which three task can you perform by using the immediate window in break mode?&lt;br /&gt;A. declaring a variable as object&lt;br /&gt;B. declaring a function&lt;br /&gt;C. executing a function *&lt;br /&gt;D. executing the call stack&lt;br /&gt;E. view the value of the variable *&lt;br /&gt;F. changing the value of the variable *&lt;br /&gt;Immediate window: A control structure is valid only if it can be completely &lt;br /&gt;expressed on one line of code, use colons to separate the statements. &lt;br /&gt;You want to find out when a variable changes to a new value. Which tool would&lt;br /&gt;you use?&lt;br /&gt;- Watch window&lt;br /&gt;You are observing variable1 in Procedure1 in the Locals Window. Suddenly the&lt;br /&gt;Locals Window displays that the variable is "Out of Context" when it enters&lt;br /&gt;Procedure2. How was variable1 declared? &lt;br /&gt;A. As a Public in a standard Module &lt;br /&gt;B. As a Private variable in Procedure1 * &lt;br /&gt;C.As a Private variable in Procedure2 &lt;br /&gt;D. As a Private variable in the General Section of the Form &lt;br /&gt;You want to test the Unload behavior of an In-Process component.&lt;br /&gt;What should you do?&lt;br /&gt;A. Start another instance of the development environment and create a test &lt;br /&gt;project that references the component.&lt;br /&gt;B. Create a project group that contains both a test project and the component&lt;br /&gt; *&lt;br /&gt;C. Add debug statements to the DLL component&lt;br /&gt;D. Call the free library function in the MS Windows API&lt;br /&gt;A control to be used by all programmers in a company. You need debug control:&lt;br /&gt;interaction with the same process as one of your applications. How to do?&lt;br /&gt;A. add control project to your app project *&lt;br /&gt;B. load control project in second instance&lt;br /&gt;C. in the app proj add a reference to control project&lt;br /&gt;D. in the control proj add a reference to app project &lt;br /&gt;•Q: What is the difference between debugging an ActiveX control project and &lt;br /&gt;an in-process component? &lt;br /&gt;A: The component code can run while the client is in Design mode &lt;br /&gt;•Q: When testing a UserControl, you add a standard.exe to your project group.&lt;br /&gt;UserControl in the Toolbox is dimmed. What should you do? &lt;br /&gt;A: Close the UserControl designer and then test again &lt;br /&gt;What should you do to debug an out of process component?&lt;br /&gt;A. Start a second instance of the development environment *&lt;br /&gt;B. Compile the component by using symbolic debug information&lt;br /&gt;C. Create an error handler for the out of process component&lt;br /&gt;D. Create a project group &lt;br /&gt;Define the scope of a watch variable. &lt;br /&gt;How to view contents of the Variant?&lt;br /&gt;A. Use Debug.print              *&lt;br /&gt;B. Use Object browser&lt;br /&gt;C. Look at the Locals window    *&lt;br /&gt;D. Copy to Clipboard&lt;br /&gt;Create a setup program that installs and registers ActiveX controls.&lt;br /&gt;Manage the Windows system registry. &lt;br /&gt;pplication-specific information in the registry. •Register components &lt;br /&gt;by using the Regsvr32.exe utility. •Register components by using the Remote &lt;br /&gt;Automation Connection Manager. •Edit the registry manually. •Register a &lt;br /&gt;component automatically. &lt;br /&gt;Save settings?&lt;br /&gt;A. local_Machine&lt;br /&gt;B. current_User         *&lt;br /&gt;C. Current_Config&lt;br /&gt;D. Classes_Root&lt;br /&gt;IIS can not instantiate an object provided by the DLL (ActiveX) What should &lt;br /&gt;you do to the DLL?&lt;br /&gt;A. Digital Sign it&lt;br /&gt;B. Mark as safe for initialize&lt;br /&gt;C. Mark as safe for scripting&lt;br /&gt;D. Register by Regsvr32 utility *&lt;br /&gt;If you want to install your Visual Basic application in other computer, how &lt;br /&gt;do you find out about the components that are registered in that computer? &lt;br /&gt;REGSRV32.EXE &lt;br /&gt;Q: How to use Regsvr32.exe to install ActiveX DLL, EXE, OCX? &lt;br /&gt;A: To install ActiveX.dll - Regsvr32 dllname &lt;br /&gt;To install Activex.Exe - AX_exename /Regserver &lt;br /&gt;MSDN Deploying ActiveX Controls on the Web with the Internet Component &lt;br /&gt;Download &lt;br /&gt;DeSigning Controls for Use with HTML &lt;br /&gt;Which task can you accomplish by packaging in .cab file?&lt;br /&gt;A. creating license file&lt;br /&gt;B. digital sign it&lt;br /&gt;C. register on users computer           *&lt;br /&gt;D. modifying users internet security settings&lt;br /&gt;Q: What cannot be done when an Internet Control is packaged. (Choose Two) &lt;br /&gt;A: Write to a file &lt;br /&gt;Read from the registry &lt;br /&gt;Q: How can you build ActiveX components for Internet distribution? &lt;br /&gt;A: Use the Application Setup Wizard and pick the appropriate options &lt;br /&gt;Q: What type of files does the Setup Wizard generates for Internet download &lt;br /&gt;setup? *.CAB files. &lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;Q: Which function can the Setup Wizard of the Enterprise Edition of VB 5 &lt;br /&gt;perform in addition to installing your ActiveX EXE project? &lt;br /&gt;A: install your project as an ActiveX shared component &lt;br /&gt;Q: What does locales show in different contexts? &lt;br /&gt;A: In Visual Basic, many functions use the user's system locale, which uses &lt;br /&gt;the Control Panel settings provided by the operating system to automatically &lt;br /&gt;determine the conventions at run time. These functions are called &lt;br /&gt;What is the event trigger sequence? Initialize, Load, Resize, Activate, &lt;br /&gt;Paint &lt;br /&gt;How to add the column to a ListView? MyListView.ColumnHeaders.Add ,, &lt;br /&gt;"MyNewCol" &lt;br /&gt;A unique feature of the Report view is ColumnHeader objects. The ListView &lt;br /&gt;control contains a collection of ColumnHeader objects in the ColumnHeaders &lt;br /&gt;collection. &lt;br /&gt;For which control does the ImageList control act as a central repository of &lt;br /&gt;images? ListImage &lt;br /&gt;An ImageList control contains a collection of ListImage objects, each of &lt;br /&gt;which can be referred to by its index or key. &lt;br /&gt;Set pnlX = StatusBar1.Panels.Add() ' Add a new Panel object. &lt;br /&gt;Set pnlX.Picture = ImageList1.ListImages(1).Picture ' Setting Picture must &lt;br /&gt;use set. &lt;br /&gt;What Property will you use to access BUTTONS of TOOLBAR? Key &amp; Index &lt;br /&gt;StatusBar1.Style property allows the display of common data such as date, &lt;br /&gt;time, etc. &lt;br /&gt;Insert text to Statusbar SB1 Second panel-  SB1.panels(2).text = "text"&lt;br /&gt;Your application has just deleted a record from a dynaset-type Recordset. &lt;br /&gt;What is the current record? The delete record. &lt;br /&gt;Which properties of the data control can be changed at run time? Recordset, &lt;br /&gt;databasename, recordsource &lt;br /&gt;The data in the currently selected row can be accessed using the Bookmark &lt;br /&gt;property, which provides access to the underlying Recordset object’s current &lt;br /&gt;record. &lt;br /&gt;Which type of recordset you will use to populate country names into a &lt;br /&gt;istBox? Forward-only &lt;br /&gt;Which recordset you will use to find a record in multi-user environment? &lt;br /&gt;Dynaset &lt;br /&gt;recordset.{FindFirst | FindLast | FindNext | FindPrevious} criteria . &lt;br /&gt;criteria likes the WHERE clause. &lt;br /&gt;Which two project types can contain an ActiveX Document? ActiveX Dll, &lt;br /&gt;ActiveX Exe.&lt;br /&gt;What project types can have ActiveX documents? - All that can be a container &lt;br /&gt;How to convert an ActiveX.DLL to multithread? - Make it ActiveX. EXE &lt;br /&gt;Advantages of Using ActiveX Documents - Support for the Hyperlink object and&lt;br /&gt;AsyncRead method &lt;br /&gt;Which project template would you select to build an in-process code &lt;br /&gt;(ActiveX Document DLL)? &lt;br /&gt;The AsyncRead method initiates an asynchronous download. &lt;br /&gt;Datatypes to be downloaded: files, pictures, byte arrays &lt;br /&gt;Which 2 actions may disqualify a component for being marked as safe for &lt;br /&gt;scripting? inserts in/reads from registry &lt;br /&gt;ID parameter in an HTML &lt;OBJECT&gt; tag specifies the object name. &lt;br /&gt;When an error occurs in a component, call Err.Raise number. &lt;br /&gt;Err.Source returns the name of the object that generated an Error.&lt;br /&gt;Command1_Click() AND Command2_Click() call each other - Out of Stack Space &lt;br /&gt;error &lt;br /&gt;Before you use the CommonDialog.ShowHelp method, you must set the HelpFile &lt;br /&gt;and HelpCommand properties. &lt;br /&gt;If HelpContextID is set to 0, then Visual Basic looks in the HelpContextID &lt;br /&gt;of the object's container. &lt;br /&gt;Financial calculations will have the most to gain on to be compiled to &lt;br /&gt;Native Code. &lt;br /&gt;Optimize the numeric processing performance - Remove VB - Remove FDIV &lt;br /&gt;Literal expression can be used in a conditional compilation directive.&lt;br /&gt;How to set conditional compilation constants - #Constant directive, &lt;br /&gt;Project property dialog box &lt;br /&gt;When can you add watch variables? - In Break and design mode &lt;br /&gt;You can restrict the scope of variables in watch expressions to a specific &lt;br /&gt;context. Visual Basic can evaluate a variable in a narrow context more &lt;br /&gt;quickly.&lt;br /&gt;Locals window - View and change variables of the current procedure &lt;br /&gt;Immediate window - executing a function, view or change ariable&lt;br /&gt;Test behavior of an In-Process component - Create a project group &lt;br /&gt;Debug an out of process component - Start a second instance of IDE &lt;br /&gt;Save settings in – Hkey_current_User &lt;br /&gt;Find out about the components that are registered in that computer - &lt;br /&gt;REGSRV32.EXE &lt;br /&gt;To install ActiveX.dll - Regsvr32 dllname &lt;br /&gt;To install Activex.Exe - AX_exename /Regserver &lt;br /&gt;Which task can you accomplish by packaging in .cab file? register on users &lt;br /&gt;computer &lt;br /&gt;Q: There is a www server application that uses ActiveX controls you &lt;br /&gt;developed. When the application page is browsed with IE it does not show &lt;br /&gt;the ActiveX control. What may be happening?&lt;br /&gt;A1: No Internet download license file on the web server &lt;br /&gt;A2: Options in the Application Setup Wizard were not used correctly &lt;br /&gt;Q: Where do you define conditional compiling variables? &lt;br /&gt;Command line &lt;br /&gt;•Q: Difference between debugging an ActiveX control project and an &lt;br /&gt;in-process component&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2861437668357595060-8872809108123596720?l=vbfaqs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbfaqs.blogspot.com/feeds/8872809108123596720/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2861437668357595060&amp;postID=8872809108123596720' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/8872809108123596720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/8872809108123596720'/><link rel='alternate' type='text/html' href='http://vbfaqs.blogspot.com/2008/07/vb-questions-10.html' title='vb questions 10'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</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-2861437668357595060.post-79569706263600190</id><published>2008-07-17T20:01:00.001-07:00</published><updated>2008-12-22T21:11:33.370-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>vb questions 9</title><content type='html'>Debug windows&lt;br /&gt;Immediate window &lt;br /&gt;•Automatically opens in Break-mode&lt;br /&gt;•To evaluate any executable statement &lt;br /&gt;•To find and change the value of variables and properties.&lt;br /&gt;•To Query or changethe value of a variable while running an application. &lt;br /&gt;Watch Window &lt;br /&gt;•Add Watch : In Break or Design Mode from the Debug Menu &lt;br /&gt;•You can watch the expression, breaking when the value of the watch &lt;br /&gt;expression is true or breaking when the value changes &lt;br /&gt;•It shows the current watch expression&lt;br /&gt;•The context column indicates the &lt;br /&gt;procedure module(s) in which each watch expression is Evaluated&lt;br /&gt;•You can edit a value &lt;br /&gt;Locals Window &lt;br /&gt;•Automatically displays all of the declared variables in the current &lt;br /&gt;procedure scope and their values. &lt;br /&gt;Calls Stack lists all active procedure calls in the Application that where &lt;br /&gt;started but not completed. You can only display the Call stack window when &lt;br /&gt;the application is in break mode. &lt;br /&gt;q: You have two text boxes Text1 and Text2. the Tab index of text1 is set to&lt;br /&gt;0. what will happen when u set the tab index of text2 to 0? &lt;br /&gt;A: Tab index of text1 is set to 1 &lt;br /&gt;Which code fragment is proper use of the Forms collections?&lt;br /&gt;A. Dim form1 As Form                    *&lt;br /&gt;   For each form1 in Forms&lt;br /&gt;      MsgBox form1.Caption&lt;br /&gt;   Next Form1&lt;br /&gt;B. Dim form1 As Form&lt;br /&gt;   For each form1 in Forms&lt;br /&gt;      MsgBox Forms.Item(form1).caption&lt;br /&gt;   Next Form1&lt;br /&gt;C. Dim form1 As Form&lt;br /&gt;   For each form1 in forms&lt;br /&gt;      Msgbox form1.remove&lt;br /&gt;   Next Form1&lt;br /&gt;D. Dim form1 As Form&lt;br /&gt;   For each form1 in Forms&lt;br /&gt;      Msgbox form1.add()&lt;br /&gt;   Next Form1&lt;br /&gt;Which property is only valid for a collection object?&lt;br /&gt;A. UBOUND&lt;br /&gt;B. LBOUND&lt;br /&gt;C. Count *&lt;br /&gt;D. Index&lt;br /&gt;What are the benefits of Forms collection?&lt;br /&gt;- Allows faster unloading of all forms in the project * &lt;br /&gt;- Faster access&lt;br /&gt;- Standardized mechanism for tracking multiple instances of a form *&lt;br /&gt;- Group forms &amp; drag the group &lt;br /&gt;Default firing order of events of a form?&lt;br /&gt;A. Load, Initialize, Resize, Paint&lt;br /&gt;B. Load, Initialize, Paint, Resize&lt;br /&gt;C. Initialize, Load, Resize, Paint              *&lt;br /&gt;D. Initialize, Load, Paint, Resize&lt;br /&gt;Start from Main, contain form1, Form1.caption = "blah". Which events will be triggered?&lt;br /&gt;A. load&lt;br /&gt;B. initialize&lt;br /&gt;C. initialize, load     *&lt;br /&gt;D. initialize, load, activate&lt;br /&gt;•How do you dynamically load controls : Load object_name &lt;br /&gt;Q: What is the sequence in which the events in the form will trigger&lt;br /&gt;A: Initialize, Load, Resize, Activate, Paint &lt;br /&gt;Dim x As Integer &lt;br /&gt;What event gets fired? Initialize &lt;br /&gt;-----------------------------------------------------------------------&lt;br /&gt;Which control can you place directly on an MDI-Form?&lt;br /&gt;- Image&lt;br /&gt;– Richtext Box&lt;br /&gt;– Picture Box *&lt;br /&gt;- Hscrollbar &lt;br /&gt;- Option Control &lt;br /&gt;- Frame &lt;br /&gt;The PictureBox, Data controls, Timer controls and Menu controls are the only&lt;br /&gt;standard Visual Basic controls that you can place in the internal area of an &lt;br /&gt;MDI form. &lt;br /&gt;Form1 contains a command button control that has code in one of its events.&lt;br /&gt;To cut the control from form1 and than paste the control onto form2.&lt;br /&gt;Where is the event located?&lt;br /&gt;A. It is in the same event of the command button control of form2&lt;br /&gt;B. It is in a different event of the command button control on form2&lt;br /&gt;C. It is deleted when the command button control is cut from form1&lt;br /&gt;D. It is in the General object procedures of form1              *&lt;br /&gt;ProgressBar with visible property set true. To display progress of a lengthy&lt;br /&gt;operation in you application. Which property will you set?&lt;br /&gt;A. value        *&lt;br /&gt;B. width&lt;br /&gt;C. max&lt;br /&gt;D. index&lt;br /&gt;DragOver Form1 to change color of label1&lt;br /&gt;A. Target.color = true&lt;br /&gt;B. Source.color = true  *&lt;br /&gt;C. DragLabel.color = true&lt;br /&gt;D. DragControl.color = true&lt;br /&gt;Form1 allow dragging Label1. Which line code use in DragOver event of Form1 &lt;br /&gt;to change bg color of Label1 to red?&lt;br /&gt;A. Target.BC = vbRed&lt;br /&gt;B. Source= vbRed        *&lt;br /&gt;C. DragLabel= vbRed&lt;br /&gt;D. DragControl= vbRed&lt;br /&gt;Which OleDragOver event parameter indicates dragging onto or away from a &lt;br /&gt;target object?&lt;br /&gt;A. effect&lt;br /&gt;B. state        *&lt;br /&gt;C. index&lt;br /&gt;D. data&lt;br /&gt;Copy picture from picturebox control to other app which prop use?&lt;br /&gt;A. oledropMode of the picturebox control&lt;br /&gt;B. oledropMode of the form containing pictureBox control&lt;br /&gt;C. oledragMode of the picturebox control *&lt;br /&gt;D. oledragMode of the form containing pictureBox control &lt;br /&gt;You want to trap a function key in a textbox. - Use the Keydown event. &lt;br /&gt;A textbox to allow only numeric entries. - Use the Keypress event. &lt;br /&gt;Form1 and Form2 place code in the Terminate event of Form1. Which code to &lt;br /&gt;add in order to cause the Terminate event of Form1 to occur from Form2? &lt;br /&gt;A. F1.Click unload F1 &lt;br /&gt;B. F1.hide F1.close&lt;br /&gt;C. unload F1 set F1=nothing *&lt;br /&gt;D. unload F1 end &lt;br /&gt;You have a Label1 on an UserControl1, what event for Label1 to be stretched&lt;br /&gt;during design time?&lt;br /&gt;A. UserControl_Initialize&lt;br /&gt;B. UserControl_Resize&lt;br /&gt;C. Label1_Initialize&lt;br /&gt;D. Label1_Resize                *&lt;br /&gt;Q: You have a Label Control in USERCONTROL. If the user resizes the&lt;br /&gt;usercontrol during run-time, in which event will u handle the resizing of the&lt;br /&gt;label (so as to view the Label control)?&lt;br /&gt;A: USERCONTROL_RESIZE &lt;br /&gt;How do you find out if F2 is being pressed?&lt;br /&gt;A. Click&lt;br /&gt;B. Validate&lt;br /&gt;C. KeyDown              *&lt;br /&gt;D. KeyPressed&lt;br /&gt;Your form contains a command button control named Command1. The index&lt;br /&gt;property of command1 is set to 0. You want to load a second instance of the &lt;br /&gt;command button that has its index property set to&lt;br /&gt;1. Which line should you use?&lt;br /&gt;A. load command1.1&lt;br /&gt;B. load command1(1)             *&lt;br /&gt;C. load command1.index = 1&lt;br /&gt;D. load command1.index (1)&lt;br /&gt;Combine menu controls of object1 with the existing menu on form1&lt;br /&gt;A. form1.NegotiateMenu = true          *&lt;br /&gt;B. form1.NegotiatePosition = true&lt;br /&gt;C. object1.NegotiateMenu = true&lt;br /&gt;D. object1.NegotiatePosition = true&lt;br /&gt;Using the NegotiateMenus property, you determine if the menu bar of a form &lt;br /&gt;will share (or negotiate) space with the menus of an active object on the &lt;br /&gt;form.If you uncheck the Visible property for a menu item, the menu items &lt;br /&gt;below will move up to fill the empty space. &lt;br /&gt;How to attribute Access Keys to menus? &amp;Save &lt;br /&gt;What can you do with a dynamic menu? &lt;br /&gt;A. You can add function keys to it&lt;br /&gt;B. You can add pop-up menus to it *&lt;br /&gt;C. You can deleted it after creating it * &lt;br /&gt;D. You can create it from the Menu Editor &lt;br /&gt;How to allow menu items to be added at runtime?&lt;br /&gt;A. redimension the menu control array&lt;br /&gt;B. use the add method   *//dynamic menu&lt;br /&gt;C. use the load statement&lt;br /&gt;D. set up the menu with blank spaces initially and change at runtime&lt;br /&gt;Q: How will you allow users to edit your control at design time? &lt;br /&gt;A: Set the EditAtDesignTime property of your UserControl object to True. &lt;br /&gt;Q: How do you make your UserControl Object Invisible at run-time? &lt;br /&gt;A: Set the InvisibleAtRuntime property of the UserControl object to True. &lt;br /&gt;Menu control: Which property can only be changed during design time?&lt;br /&gt;- visible&lt;br /&gt;- caption&lt;br /&gt;- checked&lt;br /&gt;- shortcut      *&lt;br /&gt;How to refer to the contents of the child of the selected node of a TreeView? &lt;br /&gt;Set nodChild = TreeView1.Nodes(TreeView1.SelectedItem.Index).Child &lt;br /&gt;•tvwMyTree.Nodes(10).Children ‘ return the number of children &lt;br /&gt;tvwMyTree.Nodes(10).Parent.Text ‘ return the Text of Parent &lt;br /&gt;Display Icon for each item in the hierarchy of the website?&lt;br /&gt;A. Outline&lt;br /&gt;B. Listbox&lt;br /&gt;C. Listview&lt;br /&gt;D. Treeview     *&lt;br /&gt;A TreeView control displays a hierarchical list of Node objects, each of &lt;br /&gt;which consists of a label and an optional bitmap. A TreeView is typically &lt;br /&gt;used to display the headings in a document, the entries in an index, the &lt;br /&gt;files and directories on a disk, or any other kind of information that might&lt;br /&gt;usefully be displayed as a hierarchy.&lt;br /&gt;You are writing code for a Drag and Drop operation. You want to set the&lt;br /&gt;DropHighLight property to highlight the target TreeView control element?&lt;br /&gt;A. HitTest              *&lt;br /&gt;B. Drag&lt;br /&gt;C. TextHeight&lt;br /&gt;D. StartlabelEdit&lt;br /&gt;The DropHighlight property is typically used in combination with the HitTest&lt;br /&gt;method in drag-and-drop operations for TreeView and ListView Controls. &lt;br /&gt;You use the add method of the TreeView control, which parameter can you use &lt;br /&gt;to control the creation of a child node?&lt;br /&gt;A. Key&lt;br /&gt;B. Text&lt;br /&gt;C. Relative     *&lt;br /&gt;D. Relationship&lt;br /&gt;How to add the column to a ListView?&lt;br /&gt;MyListView.ColumnHeaders.Add ,, "MyNewCol" &lt;br /&gt;A unique feature of the Report view is ColumnHeader objects.&lt;br /&gt;The ListView control contains a collection of ColumnHeader objects in the&lt;br /&gt;ColumnHeaders collection. &lt;br /&gt;What properties can you set while using the Add property for a list view? &lt;br /&gt;•ColumnHeader object.Add(index, key, text, width, alignment, icon) &lt;br /&gt;•Provide controls with images by using the ImageList control. &lt;br /&gt;For which control does the ImageList control act as a central repository of &lt;br /&gt;images? ListImage &lt;br /&gt;An ImageList control contains a collection of ListImage objects, each of &lt;br /&gt;Which can be referred to by its index or key. &lt;br /&gt;Dim pnlX As Panel &lt;br /&gt;Set pnlX = StatusBar1.Panels.Add() ' Add a new Panel object. &lt;br /&gt;Set pnlX.Picture = ImageList1.ListImages(1).Picture ' Setting Picture must&lt;br /&gt;use set. &lt;br /&gt;TreeView1.ImageList = ImageList1 ' Specify ImageList &lt;br /&gt;TreeView1.Nodes(3).Image = 1 ' Use Index property of ImageList1. &lt;br /&gt;TreeView1.Nodes(3).Image = "image 1" ' or Use the Key property "image 1." &lt;br /&gt;What Property will you use to access BUTTONS of TOOLBAR?&lt;br /&gt;Key &amp; Index &lt;br /&gt;Which StatusBar property allows the display of common data such as date, time&lt;br /&gt;etc? &lt;br /&gt;A. Text &lt;br /&gt;B. Style * &lt;br /&gt;C. Object &lt;br /&gt;D. SimpleText &lt;br /&gt;Statusbar SB1 Second panel set key property to panel2&lt;br /&gt;Which display the message "blah" in second panel&lt;br /&gt;A. SB1.(2)Text = ..&lt;br /&gt;B. SB1.panels(2).text = .. *&lt;br /&gt;C. SB1.Panels.(panel2).text = ..&lt;br /&gt;D. SB1.PanelItems("panel2").text = ..   &lt;br /&gt;If you intend to add a user control or any ActiveX control to your form, &lt;br /&gt;you must either add the control to the Toolbox, or add its License key to &lt;br /&gt;the Licenses collection. &lt;br /&gt;•Option Explicit&lt;br /&gt;Private WithEvents extCtl As VBControlExtender&lt;br /&gt;Private Sub Form_Load()&lt;br /&gt;   Licenses.Add "project1.WeeksCtl", "xydsfasfjewfe"&lt;br /&gt;   Set extCtl = Form1.Controls.Add("project1.WeeksCtl", "ctl1")&lt;br /&gt;   extCtl.Visible = True  ' The control is invisible by default.&lt;br /&gt;End Sub&lt;br /&gt;Q: When should you use public variables instead of property procedures for&lt;br /&gt;read-write properties? &lt;br /&gt;A: The property is a String data type, and there is no constrain on the size&lt;br /&gt;or value of the string. &lt;br /&gt;Correctly use of ParamArray keyword?&lt;br /&gt;- At the end of the (……. As….. , ……As ……,   Param Array )&lt;br /&gt;- And not in combination with the Optional keyword&lt;br /&gt;You have a variable x. You use the Watch window to see the contents of x. At one time the value of x=100 and the next step is says. It has occurred when the 1 process was finished and the second process was started. How was x declared?&lt;br /&gt;A. Local to 1st procedure               *&lt;br /&gt;B. Local to 2end procedure&lt;br /&gt;C. Public in a procedure&lt;br /&gt;D. Public in the General declaration section of the form&lt;br /&gt;Procedure in class module visible to the project not to other application&lt;br /&gt;A. private function Report1 as bool&lt;br /&gt;B. private function Report1() as bool&lt;br /&gt;C. public function Report1() as bool &lt;br /&gt;D. friend function Report1() as bool * &lt;br /&gt;A variable is declared as Public in a form. From where can the Variable be &lt;br /&gt;referenced?&lt;br /&gt;A. Only from other procedures in the same form.&lt;br /&gt;B. Only from forms in the same project&lt;br /&gt;C. From anywhere in the same project    *&lt;br /&gt;D. From modules in other project&lt;br /&gt;Which elements are supported in the definition of property procedures&lt;br /&gt;- optional argument     *&lt;br /&gt;- address of operator&lt;br /&gt;- alias keyword&lt;br /&gt;- paramArray keyword    *&lt;br /&gt;You want a procedure to be visible only to objects in the current project.&lt;br /&gt;You want that this procedure should be accessible by external clients. &lt;br /&gt;How will you declare the Procedure? &lt;br /&gt;A. Private &lt;br /&gt;B. Friend &lt;br /&gt;C. Public &lt;br /&gt;D. Static &lt;br /&gt;How can you create a read-only property Private and a write-only property &lt;br /&gt;Public. Which of the following are true? &lt;br /&gt;•A. Private Property Get Name() As String * &lt;br /&gt;Name = txtname.text &lt;br /&gt;End Property &lt;br /&gt;Public Property Let Name(ByVal NewName as String) &lt;br /&gt;TxtName.text = NewName &lt;br /&gt;PropertyChanged "Name" &lt;br /&gt;End Property &lt;br /&gt;B. Public Property Set Name() As String &lt;br /&gt;•Name = txtname.text &lt;br /&gt;End Property &lt;br /&gt;Private Property Let Name(ByVal NewName as String)&lt;br /&gt;TxtName.text = NewName&lt;br /&gt;PropertyChanged "Name"&lt;br /&gt;End Property &lt;br /&gt;C. Public Property Let Name() As String&lt;br /&gt;Name = txtname.text&lt;br /&gt;End Property &lt;br /&gt;Public Property Set Name(ByVal NewName as String)&lt;br /&gt;TxtName.text = NewName&lt;br /&gt;PropertyChanged "Name"&lt;br /&gt;End Property &lt;br /&gt;You have to indicate the property changes for an object.&lt;br /&gt;Which of the following is best suited for the above scenario?&lt;br /&gt;A. Property Get&lt;br /&gt;B. property Let&lt;br /&gt;C. Public Sub() *&lt;br /&gt;D. Public Function() &lt;br /&gt;How can you create a read-only property for a class? &lt;br /&gt;A. Define a Property Get procedure and define a Property Let procedure with &lt;br /&gt;no arguments.&lt;br /&gt;B. Define a Property Get procedure and a Property Let procedure.&lt;br /&gt;C. Define a Property Get procedure without a Property Set or Property Let&lt;br /&gt; procedure. *&lt;br /&gt;D. Define a Property Set or Property Let procedure without a Property Get &lt;br /&gt;procedure. &lt;br /&gt;How can you create a read-only property? &lt;br /&gt;A. Omit the Property Let procedure * &lt;br /&gt;B. Omit the Property Set procedure &lt;br /&gt;C. Set its ReadOnly property to true &lt;br /&gt;D. Use the Private keyword when declaring the procedure &lt;br /&gt;What are the two restrictions on how the Implements statement can be used?&lt;br /&gt;A. It requires a reference to a type Library    *&lt;br /&gt;B. It can be used only once in an application&lt;br /&gt;C. It cannot be used in standard module         *&lt;br /&gt;D. It cannot be placed in the general declaration section of a module&lt;br /&gt;Q: What is the purpose of the Implements keyword? &lt;br /&gt;•A: The Implements keyword is used to create a secondary interface.&lt;br /&gt;For instance, if your application has a reference to a type library that &lt;br /&gt;describes the IGrowth interface, you could create a secondary interface in a&lt;br /&gt;class module using "Implements IGrowth". &lt;br /&gt;You want to create an instance of an ActiveX component that can Asynchronously&lt;br /&gt;signal projects that use it. What should you create? (Choose two) &lt;br /&gt;A. an event &lt;br /&gt;B. an object callback * &lt;br /&gt;C. the Addressof Operator * &lt;br /&gt;D. the Implements statement &lt;br /&gt;Which type of Instancing should you use for the class module?&lt;br /&gt;A. private&lt;br /&gt;B. multiUse&lt;br /&gt;C. GlobalMultiUse *&lt;br /&gt;D. PublicNotCreatable         &lt;br /&gt;Sink the events of class1. How define a variable MyVar&lt;br /&gt;A. Dim MyVar as object&lt;br /&gt;B. Dim MyVar as Variant&lt;br /&gt;C. Dim MyVar as new Class1&lt;br /&gt;D. Dim WithEvents my as class1          *&lt;br /&gt;Q: Where and why to use Friend methods and properties &lt;br /&gt;A: The combination of public to classes in the same project and private to&lt;br /&gt;the external. &lt;br /&gt;You have a Data Control with Bound Controls.&lt;br /&gt;You want to provide the ability to abort changes in the record currently&lt;br /&gt;being edited and to refresh the bound controls. How? &lt;br /&gt;Only invoke the UpdateControls method for the Data control. &lt;br /&gt;UpdateRecord Updates database (recordset) with data from bound controls. &lt;br /&gt;UpdateControls Updates database (recordset) changes to bound controls. &lt;br /&gt;Refresh Creates a new recordset based on data control properties. &lt;br /&gt;Update Update recordset with data from bound controls or through code. &lt;br /&gt;Your application has just deleted a record from a dynaset-type Recordset.&lt;br /&gt;What is the current record? The delete record. &lt;br /&gt;Which properties of the data control can be changed at run time? &lt;br /&gt;Recordset, databasename, recordsource &lt;br /&gt;•Q: A list-box is used as a constituent control. The design window is closed &lt;br /&gt;and the control inserted on a form in another project. The user then sets the&lt;br /&gt;sort property of the control which in turn sets the sort property of the&lt;br /&gt;control. Why does the error occur? &lt;br /&gt;A: Compile the control project ? &lt;br /&gt;U have Form,a FRAME &amp; ListBox inside frame. If u set SORT property of Listbox&lt;br /&gt;at design time, what will happen. &lt;br /&gt;•box.List(index) &lt;br /&gt;box.RemoveItem index &lt;br /&gt;box.AddItem item[, index] &lt;br /&gt;DBGrid is a collection of Column objects.&lt;br /&gt;the DBGrid control depends on two other objects: &lt;br /&gt;•The Recordset object of the data control&lt;br /&gt;•The Columns collection of the DBGrid itself &lt;br /&gt;Each cell of a DBGrid control can hold text values, but not linked or &lt;br /&gt;embedded objects. &lt;br /&gt;•Add a data control to a new form, and set its DatabaseName and RecordSource &lt;br /&gt;properties to the database and table you want to display.&lt;br /&gt;•Add a DBGrid control to the form, and set its DataSource property to the &lt;br /&gt;data control you just created. The DBGrid column headers set automatically&lt;br /&gt;from a Data control's Recordset object. &lt;br /&gt;Q: How to set properties for the individual Column objects? &lt;br /&gt;A: You must make the DBGrid control UI-active: Select the right mouse button,&lt;br /&gt;and choose Edit. Then use pop-up menu. &lt;br /&gt;Q: How to remove column header? &lt;br /&gt;A: object.ColumnHeaders = False &lt;br /&gt;Q: How to refer a colmun? &lt;br /&gt;A: object.ColIndex [= value] &lt;br /&gt;This property returns the zero-based index of a column within the Columns &lt;br /&gt;collection. &lt;br /&gt;Q: How to check the value of a specific field in the current record? &lt;br /&gt;A: MyString = Data1.Recordset.Fields("Title").Value &lt;br /&gt;The data in the currently selected row can be accessed using the Bookmark &lt;br /&gt;property, which provides access to the underlying Recordset object’s current&lt;br /&gt;record. &lt;br /&gt;You have 2 tables based upon which reports are to be generated by making use &lt;br /&gt;of a common Field. The existing Table structure and Report definitions should&lt;br /&gt;not be changed. Which of the following is most appropriate.&lt;br /&gt;A. create a new table and use Filter &lt;br /&gt;B. Create a new table and use Sort &lt;br /&gt;C. create a new Dynaset using Filter* &lt;br /&gt;Which type of recordset you will use to populate country names into a&lt;br /&gt;ListBox? Forward-only Which recordset you will use to find a record in&lt;br /&gt;multi-user environment? Dynaset &lt;br /&gt;To locate specific records you can use the Find methods with dynaset- and &lt;br /&gt;snapshot-type Recordset objects, and the Seek method with table-type&lt;br /&gt;The Seek method works only with table type recordsets, because Visual Basic &lt;br /&gt;uses the table’s current index &lt;br /&gt;•table.Seek comparison, key1, key2 ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2861437668357595060-79569706263600190?l=vbfaqs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbfaqs.blogspot.com/feeds/79569706263600190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2861437668357595060&amp;postID=79569706263600190' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/79569706263600190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/79569706263600190'/><link rel='alternate' type='text/html' href='http://vbfaqs.blogspot.com/2008/07/vb-questions-9.html' title='vb questions 9'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</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-2861437668357595060.post-5089886432005828141</id><published>2008-07-17T19:59:00.001-07:00</published><updated>2008-12-22T21:11:33.371-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>vb questions 8</title><content type='html'>Class Module&lt;br /&gt;&lt;br /&gt;Property procedures&lt;br /&gt;Property Get - Returns the value of a property. &lt;br /&gt;Property Let - Sets the value of a property. – Let x = 3 &lt;br /&gt;Property Set - Sets the value of an object property. – Set objThing = New &lt;br /&gt;Thing &lt;br /&gt;•Property procedures are public by default. •The Property Get declaration &lt;br /&gt;must use arguments with the same name and data type and less one number as &lt;br /&gt;the arguments in the Property Let procedure. •&lt;Picture&gt;The data type of the &lt;br /&gt;final argument in a Property Set declaration must be either an object type or&lt;br /&gt; a Variant. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;••To create a read-only property, simply omit the Property Let or (for object&lt;br /&gt;&lt;br /&gt; properties) the Property Set. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Event &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;An object that raises events is called an event source. To handle the events&lt;br /&gt; raised by an event source, you can declare a variable of the object's class &lt;br /&gt;using the WithEvents keyword. WithEvents variables must be module-level &lt;br /&gt;variables. &lt;br /&gt;•&lt;br /&gt;•Option Explicit &lt;br /&gt;&lt;br /&gt;Private WithEvents mWidget As Widget &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Limitations on WithEvents Variables &lt;br /&gt;••A WithEvents variable cannot be a generic object variable. That is, you &lt;br /&gt;cannot declare it As Object. &lt;br /&gt;&lt;br /&gt;•You cannot declare a WithEvents variable As New. •You cannot declare &lt;br /&gt;WithEvents variables in a standard module. •You cannot create arrays of&lt;br /&gt;WithEvents variables. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Inside Class module, use Public Event … RaiseEvent… pair. Events are always &lt;br /&gt;Public.&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;DragOver event determines what happens after dragging is initiated and before&lt;br /&gt; a control drops onto a target. This event occurs only if OLEDropMode is set &lt;br /&gt;to 1 (Manual). &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Private Sub Form_DragOver(source As Control, x As Single, y As Single, _&lt;br /&gt;&lt;br /&gt;state As Integer)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Source - The control being dragged.&lt;br /&gt;&lt;br /&gt;State  - The transition state of the control being dragged in relation to a &lt;br /&gt;target form or control. 0: enter, 1: leave, 2: over.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Private Sub object_OLEDragOver(data As DataObject, effect As Long, button _&lt;br /&gt;&lt;br /&gt;As Integer, shift As Integer, x As Single, y As Single, state As Integer)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Moving DataObject (not Control) from one control or application to another.&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;KeyDown and KeyUp events occur when the user presses (KeyDown) or releases&lt;br /&gt; (KeyUp) a key while an object has the focus. (To interpret ANSI characters,&lt;br /&gt; use the KeyPress event.) &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Polymorphism&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;VB supports Interface inheritance by two steps:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1.&lt;br /&gt;1.2.Define interfaces – a class module by adding methods without code. &lt;br /&gt;3.Define Child class using keyword Implements, then implement all the &lt;br /&gt;properties and methods of parent interface. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Option Explicit &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Implements Animal &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Private Sub Animal_Move(ByVal Distance As Double) &lt;br /&gt;&lt;br /&gt;Debug.Print "Flea moved" &lt;br /&gt;&lt;br /&gt;End Sub &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;VB doesn’t support aggregation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Component Programming&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 declare an object variable for an object not defined in a type library &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim objAny As Object&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;The main difference between declaring a variable of a specific class and &lt;br /&gt;declaring a variable of the generic Object class is in how ActiveX binds &lt;br /&gt;the variable to the object. When you declare a variable of the generic &lt;br /&gt;Object class, ActiveX must use late binding. When you declare an object&lt;br /&gt; variable of a specific class, ActiveX uses early binding, which can speed &lt;br /&gt;object references. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Assigning an Object reference&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;If the ActiveX component supplies a type library, using NEW &lt;br /&gt;&lt;br /&gt;If not, using &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Set objectvariable = CreateObject("progID", ["servername"]) &lt;br /&gt;&lt;br /&gt;Or Set objectvariable = GetObject([pathname] [, progID]) &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;Dim xlApp As Object&lt;br /&gt;&lt;br /&gt;Set xlApp = CreateObject("Excel.Application") ‘late binding&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim wdApp As Word.Application &lt;br /&gt;&lt;br /&gt;Set wdApp = GetObject("", "Word.Application") &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Set X = GetObject(, "MySrvr.Application")&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;X references an existing Application object. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dependent objects are lower in an object hierarchy, and they can be accessed &lt;br /&gt;only by using a method of an externally creatable object. Defined by Class &lt;br /&gt;Instancing property - PublicNotCreatable. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Data associated with an embedded object is not persistent; that is, when a &lt;br /&gt;form containing an OLE container control is closed, any changes to the data &lt;br /&gt;associated with that control are lost. To save updated data from an object to&lt;br /&gt; a file, you use the OLE container control's SaveToFile method. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Private Sub cmdSaveObject_Click ()&lt;br /&gt;&lt;br /&gt;   Dim FileNum as Integer   ' Get file number.&lt;br /&gt;&lt;br /&gt;   FileNum = FreeFile       ' Open file to be saved.&lt;br /&gt;&lt;br /&gt;   Open "TEST.OLE" For Binary As #FileNum   ' Save the file.&lt;br /&gt;&lt;br /&gt;   oleObj1.SaveToFile FileNum               ' Close the file.&lt;br /&gt;&lt;br /&gt;   Close #FileNum&lt;br /&gt;&lt;br /&gt;End Sub&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;If the object is linked, then only the link information and an image of the &lt;br /&gt;data is saved to the specified file. The object's data is maintained by the &lt;br /&gt;application that created the object. If a user wants to save changes to a &lt;br /&gt;linked file, the user must choose the Save command from the ActiveX &lt;br /&gt;component's File menu because the SaveToFile method applies only to &lt;br /&gt;embedded objects. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Asynchronous notifications and implementation&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 client makes a method call and tells the component it wants to be &lt;br /&gt;notified when certain things happen. Then the client can be free to do &lt;br /&gt;other things while it’s waiting for component notification. Two &lt;br /&gt;implementations: An event is like an anonymous broadcast, while a call-back &lt;br /&gt;is like a handshake 4.&lt;Picture&gt;Using events – RaiseEvent - WithEvents &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;Picture&gt;Using Call-back&lt;br /&gt;&lt;br /&gt;Test ActiveX Component&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 test a component, you need to create a client application. &lt;br /&gt;If you’re creating components as part of an application, you can use the &lt;br /&gt;application itself as the test program. The test project must be an Exe &lt;br /&gt;project. To test call-backs, use an ActiveX Exe project. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To test In-process server: &lt;br /&gt;&lt;br /&gt;5.Create a Project Group containing the component and test project. 6.Set &lt;br /&gt;test project as active project and make a reference to the component. ( not &lt;br /&gt;necessary for ActiveX control) &lt;br /&gt;&lt;br /&gt;7.Add code to test the properties and methods of each public class provided &lt;br /&gt;by your component. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To test Out-of-process server: &lt;br /&gt;••Make &lt;project name&gt; Component executable. •Ctrl+F5 to run component &lt;br /&gt;project. You cannot add a reference to the component project unless it’s in&lt;br /&gt; run mode. &lt;br /&gt;&lt;br /&gt;•Open a second instance of the Visual Basic development environment. &lt;br /&gt;•Start a new test project and make a reference to the component. •Add code&lt;br /&gt; to test the properties and methods of each public class provided by your &lt;br /&gt;component. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The difference between debugging controls and debugging other objects is &lt;br /&gt;that some of the code in your control must execute while the testing form is&lt;br /&gt; in design mode. To put a control into a state such that its code can execute&lt;br /&gt; at design time, you must close the control's visual designer to enable the &lt;br /&gt;control's icon in the Toolbox. &lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Software Distribution &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Three ways to start the Package and Deployment Wizard: &lt;br /&gt;1.&lt;br /&gt;1.&lt;br /&gt;1.In your application project, start from Add-In 2.Run it as a stand-alone &lt;br /&gt;component from outside IDE. 3.Start it in silent mode by launching it from a &lt;br /&gt;command prompt. Unattended with script. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;•PDCmdLn.exe C:\Project1\Project1.vbp /p "Internet Package" /d Deployment1 &lt;br /&gt;&lt;br /&gt;/l "C:\Project1\SilentMode.log" &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Signing and licensing must be done outside of the packaging process. &lt;br /&gt;&lt;br /&gt;A dependency (.dep) file contains information about the run-time requirements&lt;br /&gt; of an application or component. In Visual Basic, dependency information is &lt;br /&gt;stored in files generated by the Package and Deployment Wizard or created &lt;br /&gt;manually by you. &lt;br /&gt;•Component Dependency File: A .dep file lists all the files required by a &lt;br /&gt;particular component. When you purchase or use a component from a vendor,&lt;br /&gt; you receive a .dep file from them. •The VB6dep.ini file provides the Package and Deployment Wizard with an all-purpose list of dependencies and references used by Visual Basic. This list is created when you install Visual Basic and resides in the \Wizards\PDWizard subdirectory of the main Visual Basic directory. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For a standard package, the information from the .dep files is written to a&lt;br /&gt; Setup.lst file that is stored outside the packaged .cab file. For an &lt;br /&gt;Internet package, the .dep file information is written to an .inf file that&lt;br /&gt; is stored within the packaged .cab file. &lt;br /&gt;&lt;br /&gt;The Setup Toolkit is a project installed with Visual Basic that is used by &lt;br /&gt;the Package and Deployment Wizard when it creates a setup program, &lt;br /&gt;setup1.exe. By default, the Setup Toolkit uses the \Program Files &lt;br /&gt;directory as the root location. When installing a file on the &lt;br /&gt;user's machine, you should not copy an older version of the file over a new &lt;br /&gt;version. &lt;br /&gt;&lt;br /&gt;The Setup.lst file describes all the files that must be installed on the &lt;br /&gt;user's machine for your application and contains crucial information for the &lt;br /&gt;setup process. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Internet Distribution &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The Setup Wizard will create a .cab file, known as the primary .cab file, &lt;br /&gt;which contains: &lt;br /&gt;•The project components, such as the ActiveX control, ActiveX DLL, or &lt;br /&gt;ActiveX EXE •The .inf file, which contains links to other .cab files that &lt;br /&gt;contain Visual Basic support files and controls, as well as other &lt;br /&gt;information, such as whether the control is safe for scripting and safe for &lt;br /&gt;initialization and registry information as defined by the user. This file &lt;br /&gt;replaces the Setup.lst file that the Setup Wizard creates in the standard &lt;br /&gt;setup. •Reserved space for digital signatures. •All files that are not in &lt;br /&gt;other (secondary) .cab files. Secondary .Cab Files: For ActiveX control &lt;br /&gt;projects, ActiveX EXEs, and ActiveX DLLs, all run-time components such as &lt;br /&gt;Msvbvm50.dll, individual controls, Data Access Objects (DAO), and Remote &lt;br /&gt;Data Objects (RDO) are packaged into separate .cab files, digitally signed&lt;br /&gt; by Microsoft, and placed on the Microsoft Web site. You can choose to link &lt;br /&gt;your files to the .cab files on the Microsoft Web site, or you can download &lt;br /&gt;local copies of them. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When you compile a ActiveX control with licensing support. The .VBL file &lt;br /&gt;will contain licensing info(use the "Requiere License"Key option, located &lt;br /&gt;in the General tab of the Project Properties dialog box.) &lt;br /&gt;&lt;br /&gt;Only an ActiveX control can be used with the Create Download Setup option &lt;br /&gt;in the Setup Wizard. &lt;br /&gt;&lt;br /&gt;ActiveX documents use the NavigateTo method to get to URL Adresses on WWW. &lt;br /&gt;The ActiveX document must be in a hyperling-aware containter and in a &lt;br /&gt;container that maintains a history of documents to use the "goBack" &lt;br /&gt;and "goForward" methods to move between previously visited documents. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Advantages of Using ActiveX Documents: &lt;br /&gt;••Support for the Hyperlink object •Support for the AsyncRead method &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The benefit of using secondary .cab files from a Web site are: &lt;br /&gt;&lt;br /&gt;You do not need to distribute all of the .cab files required by your &lt;br /&gt;application. The only file you need to distribute is the primary .cab file. &lt;br /&gt;The .inf file within the primary .cab file points to the Microsoft Web site&lt;br /&gt; and downloads the necessary .cab files based on the needs of the end user. &lt;br /&gt;They provide an efficient means of delivering updates to your product. &lt;br /&gt;If you cannot or do not want your application setup to require a connection &lt;br /&gt;to the Internet, you may place the secondary .cab files on a ser&lt;&lt;ul&gt;&lt;br /&gt;•Create a file with a name supplied by a script. •Read a file from the &lt;br /&gt;user's hard drive with a name supplied by a script. •Insert information &lt;br /&gt;into the Windows Registry (or into an .ini file), using a key (or filename) &lt;br /&gt;supplied by a script. •Retrieve information from the Windows Registry &lt;br /&gt;&lt;br /&gt;(or from an .ini file), using a key (or filename) supplied by a script. •&lt;br /&gt;Execute a Windows API function using information supplied by a &lt;br /&gt;script. •Create or manipulate external objects using programmatic IDs &lt;br /&gt;(for example, "Excel.Application") that the script supplies. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A safe for initialization control does not write or modify any registry &lt;br /&gt;entries, .ini files, or data files as a result of initialization parameters. &lt;br /&gt;&lt;br /&gt;The downloaded license key is not added to the registry. Instead, browser &lt;br /&gt;asks the control to create a run-time instance of itself, and passes it the &lt;br /&gt;downloaded license key. &lt;br /&gt;&lt;br /&gt;Only the DBGrid control requires a license key on a Web server. &lt;br /&gt;&lt;br /&gt;There is a fine line between a safe and unsafe action. For example, &lt;br /&gt;a control that always writes information to its own registry entry may be &lt;br /&gt;safe. A control that allows you to name the registry entry is unsafe. &lt;br /&gt;A control that creates a temporary file with a name it creates without using &lt;br /&gt;any initialization or scripting value may be safe. A control that allows the &lt;br /&gt;name of the temporary file to be assigned at initialization or by scripting &lt;br /&gt;is unsafe. &lt;br /&gt;&lt;br /&gt;A control marked safe for initialization guarantees to do nothing bad no &lt;br /&gt;matter what data it is initialized with The critical issue is what may &lt;br /&gt;happen as a result on initialization with particular values. A control that&lt;br /&gt; automatically sends information at initialization to an HTTP server may be&lt;br /&gt; safe, as long as the server address cannot be changed. You may create files&lt;br /&gt; and any other activities needed for the control as long as the file &lt;br /&gt;properties (name, file size) or activity’s nature does not change becau &lt;br /&gt;&lt;br /&gt;MSDN, "Deploying ActiveX Controls on the Web with the Internet Component &lt;br /&gt;Download"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2861437668357595060-5089886432005828141?l=vbfaqs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbfaqs.blogspot.com/feeds/5089886432005828141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2861437668357595060&amp;postID=5089886432005828141' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/5089886432005828141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/5089886432005828141'/><link rel='alternate' type='text/html' href='http://vbfaqs.blogspot.com/2008/07/vb-questions-8.html' title='vb questions 8'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</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-2861437668357595060.post-2906730015175912936</id><published>2008-07-17T19:58:00.000-07:00</published><updated>2008-12-22T21:11:33.371-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>vb questions 7</title><content type='html'>1) If your user wants to uninstall the application you developed, which&lt;br /&gt;method will you use to make it easy for him&lt;br /&gt;a) Use setup wizard (*)&lt;br /&gt;b) Customize the Setup.exe&lt;br /&gt;2) If you have a progress bar. what propertry would you use to show its &lt;br /&gt;status.&lt;br /&gt;a) Index&lt;br /&gt;b) Value(*)&lt;br /&gt;3) What error do you get if the following code is executed&lt;br /&gt;Private Command1_Click()&lt;br /&gt;Command2.Value = TRUE&lt;br /&gt;End sub&lt;br /&gt;Private Command2_Click()&lt;br /&gt;Command1.Value = TRUE&lt;br /&gt;End sub&lt;br /&gt;Ans : Stack Overflow error&lt;br /&gt;4) How do you create a Public read only and Private Read/Write. The options &lt;br /&gt;were something like&lt;br /&gt;a) Public Get Name()&lt;br /&gt;Name = stname&lt;br /&gt;End&lt;br /&gt;Private Let Name( stname as string)&lt;br /&gt;stname = Name&lt;br /&gt;End&lt;br /&gt;b) Public Get Name()&lt;br /&gt;Public Let Name()&lt;br /&gt;c) Private Get Name()&lt;br /&gt;Private Set Name()&lt;br /&gt;d) Public Get Name()&lt;br /&gt;Private Set Name()&lt;br /&gt;5) When a user browses a web page which has a control you developed and the &lt;br /&gt;browser displays a warning. what will you ask your user to do.&lt;br /&gt;Ans : Ask the user to set his browsers security level to none or zero.&lt;br /&gt;6) What event would you use if a user presses F2&lt;br /&gt;7) A ListBox is in a frame. The HelpContextId of the ListBox is set to 0. &lt;br /&gt;When the user presses F1 and the ListBox has focus What happens.&lt;br /&gt;8) If you have a number of controls to distribute over the Web. How would you&lt;br /&gt;decrease the download time for the user.&lt;br /&gt;9) When the following code executes. What will the user see&lt;br /&gt;Public Sub MyTest()&lt;br /&gt;On Error GoTo ErrHandler&lt;br /&gt;Dim X as Integer&lt;br /&gt;MyProc(X)&lt;br /&gt;MsgBox "XXX"&lt;br /&gt;Errhandler:&lt;br /&gt;MsgBox "YYY"&lt;br /&gt;End Sub&lt;br /&gt;Public Sub MyProc()&lt;br /&gt;On Error GoTo MyprocErr&lt;br /&gt;X = X / 0&lt;br /&gt;MyprocErr:&lt;br /&gt;MsgBox "ZZZ"&lt;br /&gt;End Sub&lt;br /&gt;a) "XXX" Only&lt;br /&gt;b) "ZZZ" Only&lt;br /&gt;c) "XXX", "ZZZ" and "YYY" Only&lt;br /&gt;d) "XXX" and "ZZZ" Only&lt;br /&gt;10) When you are testing your user control. you add a standard exe to your &lt;br /&gt;project group. But the user control in your tool bar is dommed. What should &lt;br /&gt;you do?&lt;br /&gt;11) Which code would you use to create a instance of Form1&lt;br /&gt;a) Dim Frmx as Form1&lt;br /&gt;b) Dim Frmx as New Form1&lt;br /&gt;c) Dim Form1 as Form&lt;br /&gt;d) Set Frmx = GetObject("Project1.Form1")&lt;br /&gt;12) How would you display text in a status bar which has its 2nd panel key&lt;br /&gt; as"Panel2"&lt;br /&gt;a) Statusbar1.Panel2.Text = "Printing ..."&lt;br /&gt;b) Statusbar1.Panel(2).Text = "Printing ..."&lt;br /&gt;c) StatusBar1.Panel("Panel2") = "Printing ..."&lt;br /&gt;1 . Use Regsvr32.exe to install Active X DLL, EXE, OCX.&lt;br /&gt;To install ActiveX.dll: Regsvr32 dllname&lt;br /&gt;To install Activex.Exe: AX_exename /Regserver&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;2 Test Activex.EXE (out-of-process) component&lt;br /&gt;2 instances of VB&lt;br /&gt;Test Activex.DLL (in-process) component&lt;br /&gt;Add Standard.EXE and use 1 instance of VB&lt;br /&gt;Debug ActiveX control project&lt;br /&gt;Run Active x control while the client is in design mode&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;1)When testing a User Control, you add a standard.exe to your project group. &lt;br /&gt;User control in the Toolbox is dimmed. What should you do? Close the User &lt;br /&gt;Control designer and then test again.&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;4 Advantages of using Watch window:&lt;br /&gt;-----------------------------------------------------------------------&lt;br /&gt;5 What can be viewed in the local window?&lt;br /&gt;All the variables in the procedure scope&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;6 Immediate Window:&lt;br /&gt;view, add, change and declare variables and see the result being returned.&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;7 What Call stack shows?&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;8 Why the context property in Immediate window is useful?&lt;br /&gt;-----------------------------------------------------------------------&lt;br /&gt;9 Autoredraw = False only affects line, pset, cicle created at run-time, not&lt;br /&gt;design time. Use Refresh instead of Autoredraw to save system resources.&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;10 DropHighlight used for drag-and-drop operation on a TreeView and &lt;br /&gt;DropHightlight goes with HitTest in an OLE dragDrop operation&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;11 ActiveXDocument.Hyperlink.Helpfile&lt;br /&gt;Use Hyperlink object on ActiveX Document, needs a hyperlink-aware container,&lt;br /&gt;e.g. IE4&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;12 Property procedures e.g. Public Property Get ABC (ByVal... ByRef... &lt;br /&gt;Optional...ParamArry intNum) Those in parantgese are optional argument types.&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;13 How to declare DLL functions:&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;14 AsynRead method is used to do asynchronous download. Datatypes to be &lt;br /&gt;downloaded: files, pictures, byte arrays&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;15 Implements as keyword used in a class module - used for Automation &lt;br /&gt;Implements ABCDE&lt;br /&gt;'ABCDE is a secondary interface created based on the type library's abstract&lt;br /&gt;interface. How to do it? Set reference to the type library&lt;br /&gt;What should be the syntax using Implements keyword?&lt;br /&gt;-----------------------------------------------------------------------&lt;br /&gt;16 Disadvantage of using Implements keyword:&lt;br /&gt;Can only be used in Standard module;&lt;br /&gt;Need to declare all the public variables, etc.&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;17 LockEdits = False&lt;br /&gt;Optimistic locking, the record (2k page) be locked when you use the method &lt;br /&gt;update&lt;br /&gt;LockEdits = True&lt;br /&gt;Pessimistic locking, the record (2k page) will be locked when you use the &lt;br /&gt;method Edit&lt;br /&gt;Get familiar with different situations using LockEdits and understand it.&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;18 Create private property - read only&lt;br /&gt;Private Property Get ABC (no Property Let nor Property Set)&lt;br /&gt;Create public property - write only&lt;br /&gt;Public Property Let&lt;br /&gt;PropertyChanged "BBB"&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;19 What can be placed on MDI form?&lt;br /&gt;Picturebox control (not image control)&lt;br /&gt;timer control, Data control, Menu control&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;20 Public variable declared in a form&lt;br /&gt;Scope : entire application, make reference to form name if necessary&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;21 Data control's default Recordset type: dynaset-type recordset&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;22 HelpContextId = 0 is the default. If the HelpContextId of a botton control is set to zero, the container, i.e. frame or form's HelpContextId will be used. If there are no HelpContextID specified in the container, then NO HELP.&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;23 CommonDialog1.ShowHelp&lt;br /&gt;This requires : CommonDialog1.HelpFile to be set&lt;br /&gt;CommonDialog1.HelpCommand to be set&lt;br /&gt;maybe a reference to CommonDialog1.HelpKey&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;24 Change the BackColor of UserControl's label1&lt;br /&gt;Use Ambient Properties&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;25 In a DragOver event, how to change the backcolor of the label which is&lt;br /&gt;being dragged over the target?&lt;br /&gt;Source.BackColor = vbRed&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;26 Active X files for internet distribution:&lt;br /&gt;Inf file equivalent to Setup.lst file&lt;br /&gt;Inf file contains references to files, support files&lt;br /&gt;.cab file (contains ActiveX.dll or .exe, inf file that is equ. to Setup.lst &lt;br /&gt;file with links to support files, sec. cab files, space for digital signing)&lt;br /&gt;.vbd file&lt;br /&gt;.htm file&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;27 How to reduce the time for downloading on Internet an Active X componet?&lt;br /&gt;Create separate secondary .cab files.&lt;br /&gt;Users may already have these secondary .cab files on the system or the &lt;br /&gt;secondary .cab files can be downloaded from Microsoft's web site.&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;28 StatusBar panels - is 1-based?&lt;br /&gt;Get familiar with how to show a string in, for instance, the 2nd panel of a &lt;br /&gt;statusbar.&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;29 Toolbar&lt;br /&gt;Properties: Button.Key and Button.Index&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;30 What event will be fired when you move from one record to another in a&lt;br /&gt;recordset?&lt;br /&gt;Update&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;31 How to Pass Null to DLL&lt;br /&gt;ByVal as String&lt;br /&gt;pass vbNullString&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;32 Conditional Compilation&lt;br /&gt;Can use literal statements except the IS operator&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;33 Where do you define conditional compiling variables?&lt;br /&gt;Command line&lt;br /&gt;Project Properties dialog box (under the Make tab)&lt;br /&gt;In code&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;34 Dim x As Integer&lt;br /&gt;What event gets fired? Initialize&lt;br /&gt;-----------------------------------------------------------------------&lt;br /&gt;35 How to convert an ActiveX.DLL to multithread?&lt;br /&gt;Make it ActiveX. EXE&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;36 How to raise an event"&lt;br /&gt;first to declare it, use the Event keyword, then Raise it. e.g. RaiseEvent &lt;br /&gt;ABC (arguments)&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;37 How to add a control to a web page? By scripting&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;38 Press F2, what event is fired? KeyDown&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;39 What property of ProgressBar to show status? Value&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;40 Under what situation will you have this error message "Out of Stack &lt;br /&gt;space"?&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;41 With TreeView control, use Add method to add a child node.&lt;br /&gt;It goes with "Relationship" not "Relative", know the keyword tvwFirst, &lt;br /&gt;vwLast, etc.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;42 Hyperlink object, GoForward and GoBack&lt;br /&gt;&lt;br /&gt;Webrowser, GoHome and GoSearch&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;43 How to pass Null pointer to a C function that is expecting a character &lt;br /&gt;type?&lt;br /&gt;&lt;br /&gt;VB byte type?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;44 GlobalMultiuse&lt;br /&gt;&lt;br /&gt;For ActiveX.DLL and ActiveX.EXE&lt;br /&gt;&lt;br /&gt;Enable you to use the properties as if the component is an intrinsic &lt;br /&gt;controls, there's no need to declare the variables, one instance of the&lt;br /&gt; class created for multiple client use.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;45 DBGrid's column property is 0-based&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;46 Dynaset and filter property&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;47 Setup a standard.exe, VB5DEP.INI is the dependency file&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;48 An error occurs in a component that you wrote, how to notify client:&lt;br /&gt;&lt;br /&gt;Err.Raise number&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;49 How to create a license package for ActiveX control licensing&lt;br /&gt;&lt;br /&gt;Use LPK_Tool.exe&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;50 How to dynamically create or remove controls?&lt;br /&gt;&lt;br /&gt;Set up control arrays at design time, at run time, use Load and Unload &lt;br /&gt;control statements.&lt;br /&gt;&lt;br /&gt;e.g. Load ABC(index#)&lt;br /&gt;&lt;br /&gt;e.g. Load mnuFile(2) for dynamic menu&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;51 When can you add watch statements?&lt;br /&gt;&lt;br /&gt;At design time or break mode.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;52 What property to set if you want both menus (from the object and from the&lt;br /&gt; container) shown ?&lt;br /&gt;&lt;br /&gt;NegotiageMenus on the container&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;53 How do you implement a sink event of a class using a variable?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Visual Basic 6.0 Study Guide &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Program Structure &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A typical application consists of one or more modules: a form module for &lt;br /&gt;each form in the application, optional standard modules for shared code, &lt;br /&gt;and optional class modules. Each module contains one or more procedures that&lt;br /&gt; contain the code: event procedures, Sub or Function procedures, and Property&lt;br /&gt; procedures. &lt;br /&gt;&lt;br /&gt;Startup Form can be set in Project Properties. Sub Main() can only be in a &lt;br /&gt;standard module. To display a splash screen, use a Sub Main procedure as &lt;br /&gt;startup object and use the Show method to display the form: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Private Sub Main()&lt;br /&gt;&lt;br /&gt;   frmSplash.Show	' Show the splash screen.&lt;br /&gt;&lt;br /&gt;      …		' Add startup procedures here.&lt;br /&gt;&lt;br /&gt;   frmMain.Show	' Show the main form and unload the splash screen.&lt;br /&gt;&lt;br /&gt;   Unload frmSplash&lt;br /&gt;&lt;br /&gt;End Sub&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;Three ways to end an application: &lt;br /&gt;Single Form&lt;br /&gt;&lt;br /&gt;Multiple Forms&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Private Sub cmdQuit_Click ()&lt;br /&gt;&lt;br /&gt;   Unload Me&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Private Sub Form_Unload (Cancel As Integer)&lt;br /&gt;&lt;br /&gt;   Dim i as integer&lt;br /&gt;&lt;br /&gt;   ' Loop through the forms collection and unload &lt;br /&gt;&lt;br /&gt;   ' each form.&lt;br /&gt;&lt;br /&gt;   For i = Forms.Count – 1 to 0 Step - 1&lt;br /&gt;&lt;br /&gt;      Unload Forms(i)&lt;br /&gt;&lt;br /&gt;   Next&lt;br /&gt;&lt;br /&gt;End Sub &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;End statement &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ends an application immediately: no code after the End statement is executed,&lt;br /&gt; and no further events occur. Object references will be freed, but if you &lt;br /&gt;have defined your own classes, Visual Basic will not execute the Terminate&lt;br /&gt; events of objects created from your classes. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Life Cycle of Visual Basic Forms &lt;br /&gt;&lt;br /&gt;1.Created, but not loaded. (Initialize) This is the only state all forms &lt;br /&gt;pass through. 2.Loaded, but not shown. (Load) Create Controls. Assign hWin, &lt;br /&gt;hDC. 3.Shown. &lt;br /&gt;&lt;br /&gt;(Resize) - Occurs when an object is first displayed or when the window state&lt;br /&gt; of an object changes. (For example, a form is maximized, minimized, or &lt;br /&gt;restored.) &lt;br /&gt;&lt;br /&gt;(Activate) - Occurs when an object becomes the active window. &lt;br /&gt;&lt;br /&gt;(Paint) - Occurs when part or all of an object is exposed after being moved &lt;br /&gt;or enlarged, or after a window that was covering the object has been&lt;br /&gt;moved. 4.Memory and resources completely reclaimed. &lt;br /&gt;&lt;br /&gt;(QueryUnload) – Prompt user for saving. &lt;br /&gt;&lt;br /&gt;(Unload) - Remove from Forms Collection. Module-level variables may still &lt;br /&gt;exist. &lt;br /&gt;&lt;br /&gt;The only way to release all memory and resources is to unload the form and &lt;br /&gt;then set all references to Nothing. Set Form1 = Nothing &lt;br /&gt;&lt;br /&gt;(Terminate) &lt;br /&gt;&lt;br /&gt;Executing the End statement unloads all forms and sets all object variables &lt;br /&gt;in your program to Nothing. However, this is a very abrupt way to terminate &lt;br /&gt;program. None of the forms will get their QueryUnload, Unload, or Terminate &lt;br /&gt;events, and objects created will not get their Terminate events. 5.Unloaded &lt;br /&gt;and unreferenced while a control is still referenced. &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;Object Concept &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Objects in Visual Basic are created from classes; thus an object is said to be an instance of a class. The class defines an object’s interfaces, whether the object is public, and under what circumstances it can be created. Descriptions of classes are stored in type libraries, and can be viewed with object browsers. &lt;br /&gt;&lt;br /&gt;To use an object, you must keep a reference to it in an object variable. The type of binding determines the speed with which an object’s methods are accessed using the object variable. An object variable can be late bound (slowest), or early bound. Early-bound variables can be DispID bound or vtable bound (fastest). &lt;br /&gt;&lt;br /&gt;A set of properties and methods is called an interface. The default interface of a Visual Basic object is a dual interface which supports all three forms of binding. If an object variable is strongly typed (that is, Dim … As classname), it will use the fastest form of binding. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Using Code Editor &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In a form module, the list includes a general section, a section for the form itself, and a section for each control contained on the form. For a class module, the list includes a general section and a class section; for a standard module only a general section is shown. &lt;br /&gt;&lt;br /&gt;Class modules list only the event procedures for the class itself — Initialize and Terminate. Standard modules don't list any event procedures, because a standard module doesn't support events. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Breaking and combining statements &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Text1.Text = "Hello" : Red = 255 : Text1.BackColor = _&lt;br /&gt;&lt;br /&gt;Red&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Declaring Variables&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;Dim variablename [As type] &lt;br /&gt;&lt;br /&gt;••Declaring a variable in the Declarations section of a form, standard, or class module, rather than within a procedure, makes the variable available to all the procedures in the module. •Declaring a variable using the Public keyword makes it available throughout your application. •Declaring a local variable using the Static keyword preserves its value even when a procedure ends. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Implicit Declaration - You don't have to declare a variable before using it. &lt;br /&gt;&lt;br /&gt;Explicit Declaration - Using "Option Explicit" &lt;br /&gt;&lt;br /&gt;•&lt;br /&gt;•The Option Explicit statement operates on a per-module basis; it must be placed in the Declarations section of every form, standard, and class module for which you want Visual Basic to enforce explicit variable declarations. If you select Require Variable Declaration, Visual Basic inserts Option Explicit in all subsequent form, standard, and class modules, but does not add it to existing code. You must manually add Option Explicit to any existing modules within a proje&lt;&lt;/dir&gt; &lt;br /&gt;&lt;br /&gt;Scoping Variables &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Depending on how it is declared, a variable is scoped as either a procedure-level (local) or module-level variable. &lt;br /&gt;Scope&lt;br /&gt;&lt;br /&gt;Private&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Public&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Procedure-level &lt;br /&gt;&lt;br /&gt;( Dim, Static )&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Variables are private to the procedure in which they appear.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Not applicable. You cannot declare public variables within a procedure.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Module-level &lt;br /&gt;&lt;br /&gt;( In Declaration Section )&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Variables are private to the module in which they appear.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Variables are available to all modules.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Values in local variables declared with Static exist the entire time your application is running while variables declared with Dim exist only as long as the procedure is executing. At the module level, there is no difference between Private and Dim. You can't declare public variables within a procedure. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Static Function or Sub will make all the local variables in the procedure static regardless their declaration inside. &lt;br /&gt;&lt;br /&gt;Constant has the same scope rule as variable does. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Friend members is suitable in the ActiveX components. Friend functions are not part of an object's interface. They can't be accessed by programs that use the component's objects. They're only visible to all the other objects within the component to allow safe internal communication within the component. &lt;br /&gt;&lt;br /&gt;Because Friend members aren't part of an object's public interface, they can't be accessed late bound — that is, through variables declared As Object. To use Friend members, you must declare variables with early binding — that is, As classname. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The Friend keyword can only be used in class modules. However, Friend procedures can be accessed by procedures in any module of a project. A Friend procedure doesn't appear in the type library of its parent class, nor can a Friend procedure be late bound. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Friend makes the procedure visible throughout the project, but not to a controller of an instance of the object. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Name Conflicting and Resolving &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The forms and controls can have the same name as a restricted keyword. To resolve conflict, using: &lt;br /&gt;•&lt;br /&gt;•MyForm.Loop.Visible = True ' Qualified with the form name. &lt;br /&gt;&lt;br /&gt;[Loop].Visible = True ' Square brackets also work. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Within the form module, local variables with the same names as controls on the form shadow the controls. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To resolve conflict, using: a reference or keyword Me &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Private Sub Form_Click ()&lt;br /&gt;&lt;br /&gt;Dim Text1	' Assume there is also a control on the form called Text1.&lt;br /&gt;&lt;br /&gt;   Text1 = "Variable"    ' Variable shadows control.&lt;br /&gt;&lt;br /&gt;   Text1.Top = 0         ' This causes an error!&lt;br /&gt;&lt;br /&gt;   Me.Text1.Top = 0      ' Must qualify with Me to get &lt;br /&gt;&lt;br /&gt;End Sub&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 variable in the module cannot have the same name as any procedures or types defined in the module. It can, however, have the same name as public procedures, types, or variables defined in other modules. In this case, when the variable is accessed from another module, it must be qualified with the module name. &lt;br /&gt;&lt;br /&gt;Constant Name is referenced in case of collision depends on which object library has the higher priority. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To resolve conflict, using: [libname.][modulename.]constname &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Data types &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim EmpName As String * 50 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Fixed-length strings in standard modules can be declared as Public or Private. In forms and class modules, fixed-length strings must be declared Private. You can assign a string to a numeric variable if the string represents a numeric value. &lt;br /&gt;&lt;br /&gt;The default value of Boolean variable is False. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Object variable is actual a 32-bit pointer referring to an object within an application or within some other application. Using the Set statement to refer to any actual object recognized by the application. &lt;br /&gt;•&lt;br /&gt;•Dim objDb As Object ‘or Database&lt;br /&gt;&lt;br /&gt;Set objDb = OpenDatabase("c:\Vb5\Biblio.mdb")&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;By default, if you don't supply a data type, the variable is given the Variant data type. A Variant variable is capable of storing all system-defined types of data. You don't have to convert between these types of data if you assign them to a Variant variable; Visual Basic automatically performs any necessary conversion. For example: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim SomeValue      ' Variant by default.&lt;br /&gt;&lt;br /&gt;SomeValue = "17"   ' "17" (a two-character string)&lt;br /&gt;&lt;br /&gt;SomeValue = SomeValue - 15    ' numeric value 2&lt;br /&gt;&lt;br /&gt;SomeValue = "U" &amp; SomeValue   ' "U2" (a two- character string)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;••If you perform arithmetic operations on a Variant, the Variant must contain something that is a number. •If you are concatenating strings, use the &amp; operator instead of the + operator. •Variants can contain three special values: Empty, Null, and Error. &lt;br /&gt;&lt;br /&gt;•Empty is used to see if a value has ever been assigned to a created variable. &lt;br /&gt;&lt;br /&gt;•Null is commonly used in database applications to indicate unknown or missing data. Null will propagate through expressions involving Variant variables. Variables are not set to Null unless you explicitly assign Null to them. &lt;br /&gt;&lt;br /&gt;•Error is a special value used to indicate that an error condition has occurred in a procedure. Error values are created by converting real numbers to error values using the CVErr function. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note: A variant always takes up 16 bytes, no matter what you store in it. Objects, strings, and arrays are not physically stored in the Variant; in these cases, four bytes of the Variant are used to hold either an object reference, or a pointer to the string or array. The actual data are stored elsewhere. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ParamArray &lt;br /&gt;•It can only be used in as the final argument in an argument list. •It represents an optional array of variant Data type •It cannot be used with ByVal, ByRef or Optional keywords •It is used in these contexts: &lt;br /&gt;••Declare Statement •Function Statement •Property Get Statement •Property Let Statement •Sub Statement &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You create a user-defined type with the Type statement, which must be placed in the Declarations section of a module. &lt;br /&gt;&lt;br /&gt;User-defined types are always passed by reference. &lt;br /&gt;•&lt;br /&gt;•Public Type udtAccount&lt;br /&gt;&lt;br /&gt;   Number As Long&lt;br /&gt;&lt;br /&gt;   Type As Byte&lt;br /&gt;&lt;br /&gt;   CustomerName As String&lt;br /&gt;&lt;br /&gt;   Balance As Double&lt;br /&gt;&lt;br /&gt;End Type&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;Enumeration data type &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Public Enum WorkDays&lt;br /&gt;&lt;br /&gt;   Saturday&lt;br /&gt;&lt;br /&gt;   Sunday = 0&lt;br /&gt;&lt;br /&gt;   Monday&lt;br /&gt;&lt;br /&gt;   Tuesday&lt;br /&gt;&lt;br /&gt;   Wednesday&lt;br /&gt;&lt;br /&gt;   Thursday&lt;br /&gt;&lt;br /&gt;   Friday&lt;br /&gt;&lt;br /&gt;   Invalid = -1&lt;br /&gt;&lt;br /&gt;End Enum&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;Arrays&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;Dim Sums(20) As Double ' 21 elements. The default lower bound is 0. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim Counters(1 To 15) As Integer &lt;br /&gt;&lt;br /&gt;Dim MultiD(3, 1 To 10, 1 To 15) 'multi-dimension &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim DynArray()		'dynamic array&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ReDim DynArray(4 to 12) 'is an executable statement, can appear only in a procedure &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ReDim Preserve DynArray(UBound(DynArray) + 1)    'reserve the old values&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;•ReDim Preserve Matrix(UBound(Matrix, 1) + 1, 10) 'Error: Only the upper bound of the last 'dimension in a multidimensional array can be changed &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 may want to use a collection instead of array if you're working with a small, dynamic set of items. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A Collection object stores each item in a Variant. A Collection object has three methods (add, item, remove) and one property (count). Collection are not polymorphic. Forms collection contains all of the currently loaded Visual Basic forms in the program. Collection class contains anything that can be stored in a Variant. Thus the Collection object can contain an object or an integer, but not a user-defined type. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;control array&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A group of controls that share a common name, type, and event procedures. Each control in an array has a unique index number that can be used to determine which control recognizes an event.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There are three ways to create a control array at design time: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Assign the same name to more than one control.&lt;br /&gt;&lt;br /&gt;Copy an existing control and then paste it onto the form.&lt;br /&gt;&lt;br /&gt;Set the control's Index property to a value that is not Null.&lt;br /&gt;&lt;br /&gt;Note: You must create menu control arrays in the Menu Editor. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;At run time, use:&lt;br /&gt;&lt;br /&gt;Load   Object(index%)&lt;br /&gt;&lt;br /&gt;Unload Object(index%)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;•The control must be created at design-time to be ready loaded at run-time. You can use the Unload statement to remove any control created with Load. However, you cannot use Unload to remove controls created at design time. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Procedure&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Declaration Statement &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[Public | Private] Declare Sub name Lib "libname" [Alias "aliasname"] [([arglist])] &lt;br /&gt;&lt;br /&gt;[Public | Private] Declare Function name Lib "libname" [Alias "aliasname"] [([arglist])] [As type] &lt;br /&gt;&lt;br /&gt;Sub procedures are by default Public in all modules, which means they can be called from anywhere in the application. There are two types of Sub procedures, general procedures and event procedures. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sub ButtonManager(Button As Control) ‘general procedure, usually in bas. module &lt;br /&gt;&lt;br /&gt;Private Sub cmdUp_Click() ‘event procedure &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There are two ways to call a Sub procedure: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;' Both of these statements call a Sub named MyProc.&lt;br /&gt;&lt;br /&gt;Call MyProc (FirstArgument, SecondArgument)&lt;br /&gt;&lt;br /&gt;MyProc FirstArgument, SecondArgument&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;Function has return value. &lt;br /&gt;&lt;br /&gt;There are three ways to call a Function procedure: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;X = functionForX&lt;br /&gt;&lt;br /&gt;Call function(x)	‘will throw away return value&lt;br /&gt;&lt;br /&gt;Function x		‘will throw away return value&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Argument&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;Sub ListText(ByVal x As String, Optional y As _Integer = 12345) &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Using the ParamArray keyword allows you to specify that a procedure will accept an arbitrary number of arguments. &lt;br /&gt;&lt;br /&gt;ParamArray is used only as the last argument in arglist to indicate that the final argument is an Optional array of Variant elements. The ParamArray keyword allows you to provide an arbitrary number of arguments. The ParamArray keyword can't be used with ByVal, ByRef, or Optional. &lt;br /&gt;&lt;br /&gt;Named argument for many built-in functions, statements, and methods: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Function ListText(strName As String, Optional strAddress As String)&lt;br /&gt;&lt;br /&gt;   List1.AddItem strName&lt;br /&gt;&lt;br /&gt;   List2.AddItem strAddress&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Private Sub Command1_Click()&lt;br /&gt;&lt;br /&gt;   ListText strAddress:="12345", strName:="Your Name" ‘in reverse order&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Control Structure&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;For Each element In group&lt;br /&gt;statements &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Next element &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is helpful if you don't know how many elements are in a collection. &lt;br /&gt;&lt;br /&gt;••For collections, element can only be a Variant variable, a generic Object variable, or an object listed in the Object Browser. •For arrays, element can only be a Variant variable. •You cannot use For Each...Next with an array of user-defined types because a Variant cannot contain a user-defined type. &lt;br /&gt;&lt;br /&gt;•Exit For … Exit Do … Exit Sub … Exit Function ‘exit control structure &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Object&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;Properties that you can set and get at run time are called read-write properties. Properties you can only read at run time are called read-only properties. &lt;br /&gt;&lt;br /&gt;There are some common cases in Visual Basic where one object contains other objects. Forms, Controls, Printers. &lt;br /&gt;&lt;br /&gt;Three ways to refer a collection member:&lt;br /&gt;&lt;br /&gt;Controls("List1")&lt;br /&gt;&lt;br /&gt;Controls!List1&lt;br /&gt;&lt;br /&gt;Controls(3)&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 use the Container property to change an object's container within a form. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The following controls can contain other controls: &lt;br /&gt;••Frame control •Picture box control •Toolbar control (Professional and Enterprise editions only) &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;Menu&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;Each menu you create can include up to five levels of submenus. Ctrl+E: Menu Editor &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A menu control array is a set of menu items on the same menu that share the same name and event procedures. Each menu control array element is identified by a unique index. Use a menu control array to: &lt;br /&gt;••Create a new menu item at run time when it must be a member of a control array. For example, a menu control array may be used to store a list of recently opened files. •Simplify code, because common blocks of code can be used for all menu items. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Elements of a menu control array must be contiguous in the menu control list box and must be at the same level of indentation. When you're creating menu control arrays, be sure to include any separator bars that appear on the menu. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What is the restrictions of dynamically created menu items?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Cannot have shortcut keys&lt;br /&gt;&lt;br /&gt;Cannot be used for a WindowList&lt;br /&gt;&lt;br /&gt;Must be menu control array elements&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Pop-up menu&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Private Sub Form_MouseUp (Button As Integer, Shift As _&lt;br /&gt;&lt;br /&gt;   Integer, X As Single, Y As Single)&lt;br /&gt;&lt;br /&gt;   If Button = 2 Then   ' Check if right mouse button was clicked.&lt;br /&gt;&lt;br /&gt;      PopupMenu mnuFile ' Display the File menu as a pop-up menu.&lt;br /&gt;&lt;br /&gt;   End If&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;•Any code following a call to the PopupMenu method is not run until the user selects an item in the menu or cancels the menu. Only one pop-up menu can be displayed at a time. While a pop-up menu is displayed, calls to the PopupMenu method are ignored. Calls to the PopupMenu method are also ignored whenever a menu control is active. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Menu and toolbar negotiation will occur only for insertable objects that support in-place activation. &lt;br /&gt;&lt;br /&gt;1.The NegotiateMenus property does not apply to MDI Forms. 2.The NegotiateToolbars property applies only to MDI forms. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There are three ways to set conditional compilation constants: &lt;br /&gt;•Project Properties dialog box - Public to all modules in the project •Command line - Public to all modules in the project &lt;br /&gt;&lt;br /&gt;•&lt;br /&gt;•vb6.exe /make MyProj.vbp /d conFrenchVersion=–1:conANSI=0 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;••#Const statement in code - Private to the module in which they are declared. &lt;br /&gt;&lt;br /&gt;•&lt;br /&gt;•&lt;br /&gt;•&lt;br /&gt;•- Only conditional compiler constants and literals can be used in expression. &lt;br /&gt;&lt;br /&gt;Conditional compilation can use literal statements except for IS operator. &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;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2861437668357595060-2906730015175912936?l=vbfaqs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbfaqs.blogspot.com/feeds/2906730015175912936/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2861437668357595060&amp;postID=2906730015175912936' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/2906730015175912936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/2906730015175912936'/><link rel='alternate' type='text/html' href='http://vbfaqs.blogspot.com/2008/07/vb-questions-7.html' title='vb questions 7'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</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-2861437668357595060.post-321310227289698698</id><published>2008-07-17T19:57:00.000-07:00</published><updated>2008-12-22T21:11:33.371-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>visual basic questions 6</title><content type='html'>1) When can you add a Watch? (2) &lt;br /&gt;Design time &lt;br /&gt;While code execution is suspended &lt;br /&gt;Run time &lt;br /&gt;Run time except during modal dialogue boxes &lt;br /&gt;2) What are the advantages of using the context property when using the Watch&lt;br /&gt;window? &lt;br /&gt;3) An project MyProj has an object MyObj with a friend method called MySub. &lt;br /&gt;How can MyObj be declared in order to allow access my sub? &lt;br /&gt;as MyObj anywhere within MyProj &lt;br /&gt;as MyObj from any project &lt;br /&gt;as Object from anywhere within MyProj &lt;br /&gt;as MyObj from any project with a reference to MyProj added &lt;br /&gt;4) What are the advantages of using secondry .cab files? &lt;br /&gt;5) Under what circumstances would compiling to native code instead of P code &lt;br /&gt;give best results? &lt;br /&gt;if the application does a lot of string manipulation &lt;br /&gt;if the application is a financial application &lt;br /&gt;if a lot of Win32 API calls are made &lt;br /&gt;6) private sub command1_click &lt;br /&gt;on error goto cmdErr: &lt;br /&gt;Sub1 &lt;br /&gt;Msgbox "YY" &lt;br /&gt;exit sub &lt;br /&gt;cmdErr: &lt;br /&gt;Msgbox "ZZ" &lt;br /&gt;end sub &lt;br /&gt;private sub Sub1 &lt;br /&gt;dim x as integer &lt;br /&gt;on error goto subErr: &lt;br /&gt;x = 10 / 0 &lt;br /&gt;exit sub &lt;br /&gt;subErr: &lt;br /&gt;Msgbox "XX" &lt;br /&gt;end sub &lt;br /&gt;What messages are displayed when user clicks on command1? &lt;br /&gt;yy &lt;br /&gt;xx &lt;br /&gt;xx , yy &lt;br /&gt;xx, yy, zz &lt;br /&gt;7) What two types support ActiveDocuments? &lt;br /&gt;standard.exe &lt;br /&gt;ActiveX.dll &lt;br /&gt;ActiveX.exe &lt;br /&gt;AxtiveX control &lt;br /&gt;8) How would you make a public read, private read/write property? &lt;br /&gt;9) A status bar (sb1) has two panels, the second one with key name &lt;br /&gt;'Panel2'. Which is correct? &lt;br /&gt;sb1.Panel.Items('Panel2').Text = 'asdf' &lt;br /&gt;sb1.Panels(2).Text = 'asf' &lt;br /&gt;sb1.Panels.Index('Panel2').Text = 'adf' &lt;br /&gt;10) If you want to drag a picture from a form, what property must be set? &lt;br /&gt;11) Which control can be placed on an MDI Form &lt;br /&gt;Picture &lt;br /&gt;Image &lt;br /&gt;Treeview &lt;br /&gt;Button &lt;br /&gt;12) What property must be used with TreeView's DropHighlight? &lt;br /&gt;13) Which method provides the simplest way to FTP? &lt;br /&gt;Internet control &lt;br /&gt;webcontrol &lt;br /&gt;winsock &lt;br /&gt;Hyperlink &lt;br /&gt;14) Which is the correct syntax: &lt;br /&gt;AddressOf ("MySub") &lt;br /&gt;AddressOf (MySub) &lt;br /&gt;AddressOf MySub &lt;br /&gt;AddressOf "MySub" &lt;br /&gt;16) A UserControl contains a listbox control with the sorted property &lt;br /&gt;exposed. Why do you get an error if the sorted property is set at   design &lt;br /&gt;time?  (because listbox control does not have a propertybag and cannot be run&lt;br /&gt;in design mode like the UserControl) &lt;br /&gt;17) private sub main &lt;br /&gt;Form1.Caption = "Hello" &lt;br /&gt;end sub &lt;br /&gt;what events on form1 get called? &lt;br /&gt;Load, &lt;br /&gt;Load, Activate &lt;br /&gt;Initialise, Load &lt;br /&gt;Initialise, Load, Activate &lt;br /&gt;1. You have a command button Command1 with code for some event on Form1.&lt;br /&gt;You select the command button, cut it from Form1 and paste it onto form2. &lt;br /&gt;Now where is the code for the event of Command1? &lt;br /&gt;[X] In the general section of Form1 &lt;br /&gt;[ ] In the general section of Form2 &lt;br /&gt;[ ] ..... &lt;br /&gt;[ ] ..... &lt;br /&gt;2. Which (2) of the following make an ActiveX scripting control unsafe &lt;br /&gt;for www applications &lt;br /&gt;[X] One that creates a password &lt;br /&gt;[X] Save to a File &lt;br /&gt;[ ] Get information from registry &lt;br /&gt;[ ] Save information to registry. &lt;br /&gt;3. You have developed an application which will run exclusively on a &lt;br /&gt;Pentium Pro. What options will you select yo optimize numeric operations? &lt;br /&gt;[ ] Assume No Aliasing &lt;br /&gt;[ ] Optimizing for Small Code &lt;br /&gt;[X] Disable Visual Basic Floating Point Error Checking &lt;br /&gt;[X] Remove Safe Pentium FDIV Checks &lt;br /&gt;4. You drag Label1 on Form1 and drop it on some control on Form1. What line &lt;br /&gt;of code will change the background color of Label1 to red? &lt;br /&gt;[ ] label1.backcolor = vbred &lt;br /&gt;[ ] label1.color = vbRed &lt;br /&gt;[X] Source.Backcolor = vbRed &lt;br /&gt;[ ] ..... &lt;br /&gt;5. There is Form1 that has Object1. How can you combine the menu controls &lt;br /&gt;of Object1 in Form1? &lt;br /&gt;[ ] NegotiatePosition = True &lt;br /&gt;[X] NegotiateMenus = True &lt;br /&gt;[ ] ...... &lt;br /&gt;[ ] ...... &lt;br /&gt;6. You set a form with AutoRedraw = False. You have a command button, an &lt;br /&gt;image control, a draw made by the PSET instruction, and a text that uses the&lt;br /&gt;PRINT method. If the form is minimized and then restored, there are two &lt;br /&gt;elements that are going to be dis &lt;br /&gt;The Command Button and the Image Control &lt;br /&gt;7. If you want to display a hierarchical structure of a Web Site, which of &lt;br /&gt;the following controls you should use? &lt;br /&gt;[ ] outline &lt;br /&gt;[ ] listbox &lt;br /&gt;[ ] listview &lt;br /&gt;[X] treeView &lt;br /&gt;8. If you want to offer an option in a help menu for users to access your &lt;br /&gt;Web Site, what Component should you use? &lt;br /&gt;[ ] Automation &lt;br /&gt;[ ] WinSock &lt;br /&gt;[X] Hyperlink &lt;br /&gt;[ ] ActiveX component &lt;br /&gt;9. If we have an ActiveX Component that connects to a database, how can the &lt;br /&gt;client be notified if the component connection fails? &lt;br /&gt;by raising events or Callbacks &lt;br /&gt;oR &lt;br /&gt;use Err.Raise Method in the Activex Component &lt;br /&gt;10. You have an ActiveX document that uses the AsyncRead method to obtain &lt;br /&gt;data from an intranet location. What type of data can it not return directly? &lt;br /&gt;[ ] Files &lt;br /&gt;[ ] Byte arrays &lt;br /&gt;[ ] Pictures &lt;br /&gt;[X] Hyperlinks &lt;br /&gt;11. We obtained many DLL functions from different vendors. Two functions &lt;br /&gt;happen to have the same name but different purposes. What can we do? &lt;br /&gt;[X] Using an alias &lt;br /&gt;[X] Declaring each Private in separate modules &lt;br /&gt;[ ] Registering one with another name &lt;br /&gt;[ ] Modifying the DLL function. &lt;br /&gt;12. How do you declare an object variable so that it is able to sink events? &lt;br /&gt;[ ] Dim MyVar AS OBJECT &lt;br /&gt;[ ] Dim MyVar AS Variant &lt;br /&gt;[ ] Dim MyVar AS New Class1 &lt;br /&gt;[X] Dim WithEvents MyVar as Class1 &lt;br /&gt;13. Which line of code will create a new instance of an object new Form1 in &lt;br /&gt;Project1. &lt;br /&gt;[ ] Dim Frmx as Form1 &lt;br /&gt;[ ] Dim Frmx as New Form1 &lt;br /&gt;[ ] Set Frmx = Form1 &lt;br /&gt;[X] Set Frmx = GetObject("Project1.Form1") &lt;br /&gt;14. How do you pass a null function pointer to a DLL from VB? &lt;br /&gt;Ans. Use the AddressOf Operator. &lt;br /&gt;15. What object do you use for the ShowHelp method? &lt;br /&gt;Use the CommonDialog Control &lt;br /&gt;16. You want to minimize download time for an activeX document with several &lt;br /&gt;components. How to package within a .cab file? &lt;br /&gt;Ans. &lt;br /&gt;17. IIS cannot instantiate an object provided by the DLL (ActiveX). What &lt;br /&gt;should you do to the DLL? &lt;br /&gt;Ans. Register the Activex DLL on the user's computer using "regsvr32.exe &lt;br /&gt;18. You design a class for use all programmers in the company in a &lt;br /&gt;project. You want users to be able to access the methods of the class &lt;br /&gt;without creating a new instance of it. How will you do this? &lt;br /&gt;[ ] Set the instancing property of the control to MultiUse &lt;br /&gt;[X] Set the instancing property of the control to GlobalMultiUse &lt;br /&gt;[ ] ............. &lt;br /&gt;[ ] ............. &lt;br /&gt;19. Which two required for Early Binding? &lt;br /&gt;[X] Type library &lt;br /&gt;[ ] Dual Interface &lt;br /&gt;[X] New Keyword ? &lt;br /&gt;[ ] CreateObject Function &lt;br /&gt;20. What should you do to debug an out of process component &lt;br /&gt;[X] Start a second instance of the development environment &lt;br /&gt;[ ] Compile the component by using symbolic debug information &lt;br /&gt;[ ] Create an errorhandler for the out of process component &lt;br /&gt;[ ] Create a project group &lt;br /&gt;21. What is the sequence in which the events in a form will trigger? &lt;br /&gt;ILRAP Ó Initialize, Load, Resize , Activate, Paint &lt;br /&gt;Note : When a Form is unloaded the sequence is ---&gt; QueryUnload, Unload, &lt;br /&gt;Terminate &lt;br /&gt;22. How do you dynamically create a Commnad button . Already a Command &lt;br /&gt;Button with index 0 exists. &lt;br /&gt;Load Command1(1) &lt;br /&gt;23. What will happen when this code is executed? &lt;br /&gt;Private Sub Command1_Click() &lt;br /&gt;command2.Value = True &lt;br /&gt;End Sub &lt;br /&gt;Private Sub Command2_Click() &lt;br /&gt;Command1.Value = True &lt;br /&gt;End Sub &lt;br /&gt;Ans. An out of stack space error will be displayed. &lt;br /&gt;24. What will happen if user presses command2? &lt;br /&gt;Sub Mysub() &lt;br /&gt;static intNum As Integer &lt;br /&gt;If intNum &lt;= 4 Then &lt;br /&gt;Exit Sub &lt;br /&gt;Else &lt;br /&gt;intNum = intNum + 1 &lt;br /&gt;Mysub &lt;br /&gt;End If &lt;br /&gt;End Sub &lt;br /&gt;Private Sub Command2_Click() &lt;br /&gt;Mysub &lt;br /&gt;End Sub &lt;br /&gt;[X] The code will execute without errors &lt;br /&gt;[ ] An out of stack space error will be diplayed &lt;br /&gt;[ ] The Computer will hang &lt;br /&gt;[ ] ...... &lt;br /&gt;25. How to declare a DLL with a C Char datatype? &lt;br /&gt;ByVal variable As Byte &lt;br /&gt;26. What elements can you use in Conditional Compiling? &lt;br /&gt;Ans. Literal Expressions &lt;br /&gt;27. What event can handle when a user presess F2 &lt;br /&gt;Ans. KeyDown or KeyUp &lt;br /&gt;Note : Not KeyPress because this event can only handle ASCII Keys ie A-Z, &lt;br /&gt;a-z, 0-9 &lt;br /&gt;28. You want your UserControl to reflect the BackColor of the Container. What&lt;br /&gt;will you use? &lt;br /&gt;ans. AmbientProperties. &lt;br /&gt;29. Your application contains the following class names Class1 with a &lt;br /&gt;property named Myproperty. You run the following code &lt;br /&gt;Dim A as Class1 &lt;br /&gt;Dim B as New Class1 &lt;br /&gt;B.Myproperty = 3 &lt;br /&gt;Set A = New Class1 &lt;br /&gt;How many instances of class1 exist after your run this code. &lt;br /&gt;[ ] 0 &lt;br /&gt;[ ] 1 &lt;br /&gt;[X] 2 &lt;br /&gt;[ ] 3 &lt;br /&gt;30. Which argument of the ADD method is used to specify a node object to &lt;br /&gt;Treeview ?( say creation of a Child )? &lt;br /&gt;[ ]Key &lt;br /&gt;[ ]Relative &lt;br /&gt;[X]Relationship &lt;br /&gt;[ ] .......... &lt;br /&gt;31. You have a Label Control in USERCONTROL . If the user resizes the &lt;br /&gt;usercontrol during run-time , in which event will you handle the resizing of &lt;br /&gt;the label (so as to view the Label control)? &lt;br /&gt;Ans. USERCONTROL_RESIZE &lt;br /&gt;32. U have a Option Button inside a Frame on a Form. The Option ButtonÆs &lt;br /&gt;HelpContextId is 0. If the user presses the F1 key, what will happen? &lt;br /&gt;Frame's HelpContextId is searched for non-zero value and if so, help is &lt;br /&gt;displayed. &lt;br /&gt;33. If a user sets the LockEdits property of the Table to False and another &lt;br /&gt;user updates the Table at the same time. What error will be displayed? &lt;br /&gt;Ans. An Error message will be displayed when another tries to UPDATE a &lt;br /&gt;record in the same page. &lt;br /&gt;34. You have to indicate the property changes for an object. Which of the &lt;br /&gt;following is best suited for the above scenario? &lt;br /&gt;[ ] Property Get &lt;br /&gt;[ ] property Let &lt;br /&gt;[X] Public Sub() &lt;br /&gt;[ ] Public Function() &lt;br /&gt;35. U have 2 tables based upon which reports r to be generated by making use&lt;br /&gt;of a common Field. &lt;br /&gt;The existing Table structure and Report definitions should not be changed. &lt;br /&gt;Which of the following is most appropriate. &lt;br /&gt;[ ] create a new table and use Filter &lt;br /&gt;[ ] Create a new table and use Sort &lt;br /&gt;[X] create a new Dynaset using Filter &lt;br /&gt;[ ] ...... &lt;br /&gt;36. How to create File option on menu with a Hot Key ALT F? &lt;br /&gt;Ans. Set Caption to "&amp;File" in Menu for that item &lt;br /&gt;37. How do you pass a null pointer to a DLL? &lt;br /&gt;Ans. Use vbNullString if you have declared the function to accept a string &lt;br /&gt;argument OR &lt;br /&gt;Declare the function to accept a long data type and tehn pass "0&amp;" without&lt;br /&gt;the quotes. &lt;br /&gt;38. What files are generated by an internet component download setup? &lt;br /&gt;Ans. A .cab file (component file and a .inf file) and a sample .htm file. &lt;br /&gt;A directory called support is also generated which contains the component &lt;br /&gt;file and also a .inf file. &lt;br /&gt;39. A user complains that your control doesn't get downloaded saying that &lt;br /&gt;Internet Explorer displays a message that it is unsafe for downloading the &lt;br /&gt;control. What is the solution? &lt;br /&gt;Ans. Ask the user to reduce his/her security settings until the error message&lt;br /&gt;does not appear. &lt;br /&gt;40. How will you allow users to edit your control at design time? &lt;br /&gt;Ans. Set the EditAtDesignTime property of your UserControl object to True. &lt;br /&gt;41. How do you make your User Control Object Invisible at run-time? &lt;br /&gt;Ans. Set the InvisibleAtRuntime property of the UserControl object to True. &lt;br /&gt;42. You are implementing Drag and Drop with a treeview control. What will you use in conjunction with DropHighlight? &lt;br /&gt;Ans. HitTest &lt;br /&gt;43. What property of the ProgressBar control specifies the current position? &lt;br /&gt;[ ] Index &lt;br /&gt;[X] Value &lt;br /&gt;[ ] Range &lt;br /&gt;[ ]..... &lt;br /&gt;44. How can you create a read-only property? &lt;br /&gt;[X] Omit the Property Let procedure &lt;br /&gt;[ ] Omit the Property Set procedure &lt;br /&gt;[ ] Set its ReadOnly property to true &lt;br /&gt;[ ] Use the Private keyword when declaring the procedure &lt;br /&gt;45. You want a procedure to be visible only to objects in the current project&lt;br /&gt;You want that this procedure should be accessible by external clients. &lt;br /&gt;How will you declare the Procedure? &lt;br /&gt;[ ] Private &lt;br /&gt;[ ] Friend &lt;br /&gt;[ ] Public &lt;br /&gt;[ ] Static &lt;br /&gt;46. You are observing variable1 in Procedure1 in the Locals Window. &lt;br /&gt;Suddenly the Locals Window displays that the variable is "Out of Context" &lt;br /&gt;when it enters Procedure2. How was variable1 declared? &lt;br /&gt;[ ] As a Public in a standard Module &lt;br /&gt;[X] As a Private variable in Procedure1 &lt;br /&gt;[ ] As a Private variable in Procedure2 &lt;br /&gt;[ ] As a Private variable in the General Section of the Form &lt;br /&gt;47. You want that the code written for debugging should not be compiled.&lt;br /&gt;How will you accomplish this? &lt;br /&gt;[ ] Use If .. Then .. Else Staetments &lt;br /&gt;[ ] Use the Err Object &lt;br /&gt;[X] Use conditional compilation &lt;br /&gt;[ ] ............. &lt;br /&gt;48. What is the advantage of specifying "Context" in the Watch Window? &lt;br /&gt;1. You can add a watch to variables with the same name having different &lt;br /&gt;scope &lt;br /&gt;49. What can you do with menus created at run-time? &lt;br /&gt;1. Create popup-manus with it &lt;br /&gt;2. Delete the menus after using them &lt;br /&gt;50. What controls can you place on an MDI Form? &lt;br /&gt;Ans. The PictureBox and the Timer Controls &lt;br /&gt;51. Which StatusBar property allows the display of common data such as date,&lt;br /&gt;time etc? &lt;br /&gt;[ ] Text &lt;br /&gt;[X] Style &lt;br /&gt;[ ] Object &lt;br /&gt;[ ] SimpleText&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2861437668357595060-321310227289698698?l=vbfaqs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbfaqs.blogspot.com/feeds/321310227289698698/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2861437668357595060&amp;postID=321310227289698698' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/321310227289698698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/321310227289698698'/><link rel='alternate' type='text/html' href='http://vbfaqs.blogspot.com/2008/07/visual-basic-questions-6.html' title='visual basic questions 6'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</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-2861437668357595060.post-544958185147612160</id><published>2008-07-17T19:56:00.000-07:00</published><updated>2008-12-22T21:11:33.371-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>visual basic questions</title><content type='html'>1. If you want to display a hierarchical structure of a web site,Which is &lt;br /&gt;the following control you should use? &lt;br /&gt;(a) Outline &lt;br /&gt;(b) Listbox &lt;br /&gt;(c) Listview &lt;br /&gt;(d) Treeview (Correct) &lt;br /&gt;2. One question is something like, If varient variable of object changes and&lt;br /&gt;you want to moniter the changes when the variable changes.How to do that?&lt;br /&gt;(Choose 2) &lt;br /&gt;(a) Debug.Print(Correct) &lt;br /&gt;(b) Object browser &lt;br /&gt;(c) Local(Correct) &lt;br /&gt;3.If you want to offer an option in a help menu for users to access your Web &lt;br /&gt;Site,what Compononent should you use? &lt;br /&gt;(a) Automation &lt;br /&gt;(b) Hyperlink (Correct) &lt;br /&gt;(c) Winsock &lt;br /&gt;(d) Activex compononet &lt;br /&gt;4.You have devoloped an application which will run exclusively on a Pentium &lt;br /&gt;Pro.What options will you select to optimize numeric operations? (Choose 2) &lt;br /&gt;(a) Assume no Aliasing &lt;br /&gt;(b) Optimize for Small Code &lt;br /&gt;(c) Disable Visual Basic Floating Point Error Checking (Correct) &lt;br /&gt;(d) Remove Safe Pentium FDIV Checks (Correct) &lt;br /&gt;5. Which line of code will create a new instance of an object new Form1 in &lt;br /&gt;project1. &lt;br /&gt;(a)Dim Frmx as Form1 &lt;br /&gt;(b)Dim Frmx as New Form1 &lt;br /&gt;(c)Set Frmx = Form1 &lt;br /&gt;(d)Set Frmx = GetObject("Project1.Form1") (Correct) &lt;br /&gt;6.Which line of code will create a new instance of form1. &lt;br /&gt;(a) Dim Frmx as Form1 &lt;br /&gt;(b) Dim Frmx as New Form1 &lt;br /&gt;(c) Set Frmx = GetObject(,"Project1.Form1") &lt;br /&gt;(d) Set Frmx = New Form1 (Correct) &lt;br /&gt;7. What Object do you use for the ShowHelp method? &lt;br /&gt;(a)App &lt;br /&gt;(b) Ambient &lt;br /&gt;(c) CommonDialog control (Correct) &lt;br /&gt;8.Which two required for Early binding? &lt;br /&gt;(a) Type library (Correct) &lt;br /&gt;(b) Dual Interface &lt;br /&gt;(c) New Keyword (Correct) &lt;br /&gt;(d) CreateObject Function &lt;br /&gt;9.You want to minimize download time for an activex document with several &lt;br /&gt;components.How to Package within a .cab file? &lt;br /&gt;(a) Put the component in .cab file and all the running compononent file in &lt;br /&gt;secondary file &lt;br /&gt;(b) digitally sign the component &lt;br /&gt;(c) Put the .inf file in the primary .cab file points to the microsoft web &lt;br /&gt;site. &lt;br /&gt;**** See the Internet component download in Book on line &lt;br /&gt;10.You drag Label on Form1 and drop it on some control on Form1.What line of &lt;br /&gt;code will change the background color of Label1 to red? &lt;br /&gt;(a)Label1.backColor = vbRed &lt;br /&gt;(b)Source.BackColor = vbRed (Correct) &lt;br /&gt;(c) Target.backColor = vbRed &lt;br /&gt;11.You have a Form1 and command button.You put code in command button &lt;br /&gt;event.You cut the command button from Form1 and paste it on Form2.What &lt;br /&gt;happend to the code? &lt;br /&gt;(a)It will be deleted &lt;br /&gt;(b)It will be moved on form2 &lt;br /&gt;(c) It will be remained on General section of Form1 (Correct) &lt;br /&gt;12. Which two of the following Will disqualify a safe Activex scripting &lt;br /&gt;control for www applications?(Choose 2) &lt;br /&gt;(a) One that creates Password &lt;br /&gt;(b) Writes to the file &lt;br /&gt;(c) Read Information from the registry &lt;br /&gt;(d) Insert Information to the registry &lt;br /&gt;13. What two arguements you can use for property procedures? &lt;br /&gt;(a) param Array (Correct) &lt;br /&gt;(b) Alias &lt;br /&gt;(c)Address of &lt;br /&gt;(d)Optional (Correct) &lt;br /&gt;14.What Element you can use for Conditional compilation directive? &lt;br /&gt;(a) Public Constant &lt;br /&gt;(b)Private constant &lt;br /&gt;(c) Literal Expression (correct0 &lt;br /&gt;15.In what order Form Fires? &lt;br /&gt;(a)Load Initialize Resize Paint &lt;br /&gt;(b) Load Initialize Paint Resize &lt;br /&gt;(c) Initialize Load Resize Paint (Correct) &lt;br /&gt;(d) Initialize Load Paint Resize &lt;br /&gt;16.You have an ActiveX document that uses the AsyncRead Method to obtain &lt;br /&gt;data from an intranet location.What type of data cannot be returned? &lt;br /&gt;(a)Files &lt;br /&gt;(b) Byte arrays &lt;br /&gt;(c) Hyperlinks (Correct) &lt;br /&gt;(d) Pictures &lt;br /&gt;17.How to debug an out of process component? &lt;br /&gt;(a) Start a second instance of the developing enviroment. (Correct) &lt;br /&gt;(b)Create an error handler for the out of process component. &lt;br /&gt;(c) Create project group. &lt;br /&gt;18. You have command button Command1 with code in its click event: &lt;br /&gt;Command2.Value = True &lt;br /&gt;and a comman2 button with code in its click event &lt;br /&gt;Comman1.Value = True. &lt;br /&gt;What happens when this code executed? &lt;br /&gt;(a) Over flow error &lt;br /&gt;(b) Out of stack error (Correct) &lt;br /&gt;19. What will happen when this code executed? &lt;br /&gt;Sub MySub() &lt;br /&gt;Static intNum as integer &lt;br /&gt;If intNum &lt;= 4 then &lt;br /&gt;exit sub &lt;br /&gt;Else &lt;br /&gt;intNum = intNum + 1 &lt;br /&gt;MySub &lt;br /&gt;End if &lt;br /&gt;End Sub &lt;br /&gt;(a) Syntax error Will be displayed &lt;br /&gt;(b) Codel will be returned without error (Correct) &lt;br /&gt;(c) the computer will hung &lt;br /&gt;20.How to declare a Dll with a DWORD datatype? &lt;br /&gt;ByVal as Long &lt;br /&gt;21.What property you will use to change the background color for the &lt;br /&gt;container? &lt;br /&gt;(a) Ambient (Correct0 &lt;br /&gt;(b)Paint &lt;br /&gt;(c) &lt;br /&gt;21. Your application contains the following Class names Class1 with a &lt;br /&gt;property named Myproperty.You run the following code &lt;br /&gt;Dim A as Class1 &lt;br /&gt;Dim B as New Class1 &lt;br /&gt;B.Myproperty = 3 &lt;br /&gt;Set A = New Class1 &lt;br /&gt;How many instances of class1 exist after you run this code? &lt;br /&gt;(a) 0 &lt;br /&gt;(b)1 &lt;br /&gt;(c)2 (Correct) &lt;br /&gt;(d)3 &lt;br /&gt;22. See the proper syntax for the ParamArray Keyword. &lt;br /&gt;23.Which arguement of the Add method is used to specify a node object to &lt;br /&gt;Treeview? &lt;br /&gt;(a)Key &lt;br /&gt;(b)Relative &lt;br /&gt;(c)Relationship (Correct) &lt;br /&gt;24.All users have default Locks for database.You put the code &lt;br /&gt;Data1.LockEdit = False.When try to chage the data in database what will &lt;br /&gt;happen? &lt;br /&gt;(a) Errror will return when you try to edit &lt;br /&gt;(b) Error will return when you try to update &lt;br /&gt;(c) The error will be something that data changed and operation stoped. &lt;br /&gt;(Correct0 &lt;br /&gt;25.What event occours when you press F2? &lt;br /&gt;(a) MouseUp &lt;br /&gt;(b) KeyPress &lt;br /&gt;(c)MouseDown &lt;br /&gt;(d) KeyDown (correct) &lt;br /&gt;26.You set a form with AutoRedraw = False.You have a command button,an image &lt;br /&gt;control,You use Pset Method to draw on the form and a print method to Create &lt;br /&gt;text.If the form minimized and then restored,what are redisplayed? &lt;br /&gt;(a) Command button( correct) &lt;br /&gt;(b) Image (bitmap) (correct) &lt;br /&gt;(c) &lt;br /&gt;27.What can you do with menus created dynamically?(Choose 2) &lt;br /&gt;(a) Create Popup menus with it (correct) &lt;br /&gt;(b) Remove the menu after using them (correct) &lt;br /&gt;28. You want to create an instance on an ActiveX component that can &lt;br /&gt;Asynchronouly signal projects that use it.what should you create?Choose2 &lt;br /&gt;(a) an event (Correct) &lt;br /&gt;(b) an object Callback (correct) &lt;br /&gt;(c)the address of operater &lt;br /&gt;(d) Implements &lt;br /&gt;29.We obtained many dll funcions from dirrerent vendors.Two functions happen &lt;br /&gt;to have the same name but different purposes.What can you do? Choose 2 &lt;br /&gt;(a)Using an alias (Correct) &lt;br /&gt;(b) Modifying the dll funcion &lt;br /&gt;(c) Declaring each Private in separate modules. (Correct) &lt;br /&gt;30.What control can you place on an MDI form? Choose 3 &lt;br /&gt;(a) Image &lt;br /&gt;(b) Picture (Correct) &lt;br /&gt;(c) Data access (Correct) &lt;br /&gt;(d) Timer (Correct) &lt;br /&gt;(e) Frame &lt;br /&gt;31.You are using Graphics on your form.you don't want the picture to be &lt;br /&gt;erased when you minimized.what should you do? &lt;br /&gt;Set AutoRedraw property to true. &lt;br /&gt;32.What can be viewed in the local window? Choose2 &lt;br /&gt;(a) Show the variables within the scope of the current procedure (Correct) &lt;br /&gt;(b) All Object variables declared in the executing procedure. &lt;br /&gt;33.To use Alt F for File menu what you should do? &lt;br /&gt;(a) Use the menuEditor &lt;br /&gt;(b) Put the Alt F in name section. &lt;br /&gt;(c) Put the Caption in File &amp;F (Correct) &lt;br /&gt;34.You have a Label control in UserControl.If the User resizes the &lt;br /&gt;UserControl during runtime in which event will you handle the resizing of &lt;br /&gt;the Label? &lt;br /&gt;(a) Label1_Resize &lt;br /&gt;(b) Label1_Initialize &lt;br /&gt;(c) UserControl_Resize (Correct) &lt;br /&gt;35.You have a option button inside a Frame.The option button's Help &lt;br /&gt;contextID is 0.If user presses F1 Key,what will happen ? &lt;br /&gt;(a) Main help window will be displayed &lt;br /&gt;(b) The help for the form will be displayed (correct) &lt;br /&gt;(c) The help for option button will be displayed &lt;br /&gt;36.How can you test the unload behaviour of an In Process Component? &lt;br /&gt;(a) Add a second instance &lt;br /&gt;(b) Add a project group with the test project and component and run in a &lt;br /&gt;singe instance (Correct) &lt;br /&gt;37.while running a web page, a user gets a warning about unsafe control and &lt;br /&gt;the control does not get downloaded.what to do? &lt;br /&gt;Tell the user to reduce the security level to zero or none. &lt;br /&gt;38.You are writing code for a drag and drop operation.you want to set the &lt;br /&gt;drop higlight the proper treeview control element.Which method should use to &lt;br /&gt;do this? &lt;br /&gt;Ans. HitTest &lt;br /&gt;39.What are two restrictions on how the implements statement can be used?&lt;br /&gt;choose 2 &lt;br /&gt;1) It requried a reference to a type library. &lt;br /&gt;2) It cannot be used in standered module. &lt;br /&gt;40.You want to obtain a reference to a specific Activex document to a &lt;br /&gt;specific ActiveX document object that is currently loaded.This object is &lt;br /&gt;handled by an activex document server that was created in microsoft visual &lt;br /&gt;c++.Which line of code must you use to obtain a reference to the object. &lt;br /&gt;Ans. Set MyObj = GetObject(Filename,3someapp.2SomeClass) &lt;br /&gt;41.What's the database default recordset type? &lt;br /&gt;(a) Dynaset Object &lt;br /&gt;(b) Dynaset type recordset object (Correct) &lt;br /&gt;(c) Table type &lt;br /&gt;d) Snapshot type recordset object &lt;br /&gt;42.You create a class module that will be used by other ptogrammers in your &lt;br /&gt;company. You wnat the class module to function like an intrinsic feature of &lt;br /&gt;the visual basic langrage.YOu do not want to require the programmers to write&lt;br /&gt;code to create an instance of the class. which type of instancing should you&lt;br /&gt;use for the class module. &lt;br /&gt;(a) Private &lt;br /&gt;(b) Multiuse &lt;br /&gt;(c) GlobalMultiUse &lt;br /&gt;(d) PublicNot Creatable (Correct) &lt;br /&gt;44.Which of the following properties apply to an ambient properties? &lt;br /&gt;(a) Front color &lt;br /&gt;(b) UserMode correct &lt;br /&gt;(c) back color correct &lt;br /&gt;(d)Left to right &lt;br /&gt;45.Which is the valid property of the form's collection? &lt;br /&gt;Ans. Count &lt;br /&gt;46.You are designing a component to generate run time errors.What would be &lt;br /&gt;used? &lt;br /&gt;Raise method on Err object. &lt;br /&gt;47.You want the execution of your code to halt when variable changes.Which &lt;br /&gt;tool to use? &lt;br /&gt;Wach window &lt;br /&gt;48.One question on DragOver &lt;br /&gt;49.Which type of file is created when you use the setup wizard and choose &lt;br /&gt;the create internet download setup option? &lt;br /&gt;.Cab file &lt;br /&gt;50.Show Help method used with which control &lt;br /&gt;Ans. commonDialog control &lt;br /&gt;51.One Question on progressbar. &lt;br /&gt;52.One question on LateBinding &lt;br /&gt;53.You have a form with textbox,Textbox1.You add a second &lt;br /&gt;textbox,textbox2.How can you set the focus to textbox? &lt;br /&gt;Ans. Textbox2.TabIndex = 0 &lt;br /&gt;Know withevent Variable &lt;br /&gt;Know Regsvr32.exe to register all the components. &lt;br /&gt;1) You want to late bind a class called employee in component called bus. &lt;br /&gt;Correct code would be :-&lt;br /&gt;a) dim classvar as object&lt;br /&gt;classvar = new employee&lt;br /&gt;b) dim classvar as employee&lt;br /&gt;classvar = new employee&lt;br /&gt;c) dim classvar as object (*)&lt;br /&gt;classvar = createobject("bus.employee")&lt;br /&gt;d) dim classvar as employee&lt;br /&gt;classvar = createobject("bus.employee")&lt;br /&gt;2) A DLL function is documented as follows&lt;br /&gt;WINAPI DWORD Myfunc( char c )&lt;br /&gt;how would you declare it in vb (only difference was in the parameters)&lt;br /&gt;a) declare function myfunc( bval myarg as byte) alias "myfunc" as long (*)&lt;br /&gt;b) declare function myfunc( bval myarg as string) alias "myfunc" as long&lt;br /&gt;c) declare function myfunc( byref myarg as string) alias "myfunc" as long&lt;br /&gt;d) declare function myfunc( bval myarg as string*1) alias "myfunc" as long&lt;br /&gt;3) How do you test the unload behavior of an in-process component ?&lt;br /&gt;a) starting different instances of VB&lt;br /&gt;c) add a test project to the project group (*)&lt;br /&gt;d) add debug statements&lt;br /&gt;c) use the windows api unloaddll function or something like that&lt;br /&gt;4) What is the correct usage of the parramarray keyword ?&lt;br /&gt;( cant remember the exact options but they went this way )&lt;br /&gt;a) sub mysub( arg1 as string, paramarray arg2, arg3 as string)&lt;br /&gt;b) sub mysub( arg1 as string, optional arg2 as string, arg3 as paramarray)&lt;br /&gt;c) sub mysub( arg1 as string, arg2 as string, bval arg3() as paramarray)&lt;br /&gt;d) sub mysub( arg1 as string, arg2 as string, paramarray arg3 ) (*)&lt;br /&gt;Things I remember noting were 1) position - where are parammaray args allowed&lt;br /&gt;2) optional args allowed with paramarays ?&lt;br /&gt;3) can paramarrays be passed byval ?&lt;br /&gt;5) You create a multiuser application in which you set lockedits= false. &lt;br /&gt;which error message are you likely to get ?&lt;br /&gt;a) Couldnt save ; currently locked by user &lt;name&gt; on machine &lt;name&gt; (*)&lt;br /&gt;b) data has changed ; operation stopped&lt;br /&gt;c) couldnt update; currently locked by user &lt;name&gt; on machine &lt;name&gt;&lt;br /&gt;6)You put a label on your user control. You want the label to change size &lt;br /&gt;with the user control. Which event would you use ?&lt;br /&gt;a) label1_resize&lt;br /&gt;b) usercontrol1_resize (*)&lt;br /&gt;c) label1_change&lt;br /&gt;d) usercontrol1_change&lt;br /&gt;7)A question that went - what does packaging your component in a cab also&lt;br /&gt;allow you to do ?&lt;br /&gt;digitally sign your component&lt;br /&gt;8)A question on the best way to package your application for distribution &lt;br /&gt;over the web?&lt;br /&gt;The point is to minimize download time and the clue was that it uses many &lt;br /&gt;components shipped with vb&lt;br /&gt;a) in primary and secondary cab files&lt;br /&gt;b) in a primary cab file and an inf file pointing to a secondary cab file&lt;br /&gt;(*) &lt;br /&gt;c) In a primary cab file and an inf file pointing to the cab files for the&lt;br /&gt;components depended on&lt;br /&gt;d) ??&lt;br /&gt;9)You want to use debug statements but dont want to distribute them in the&lt;br /&gt;end program.what do you do&lt;br /&gt;(a) use conditional compilation (*)&lt;br /&gt;10)You create a database application for your company. The tables are linked&lt;br /&gt;and have a common transaction field. You now want to create new reports at &lt;br /&gt;regional and headoffice level but dont want to change either the table&lt;br /&gt;structures ar the report definitions.What do you do ?&lt;br /&gt;a) use the filter property to create a new TABLE&lt;br /&gt;b) use the sort property to create a new TABLE&lt;br /&gt;c) use the filter property to create a new dynaset (*)&lt;br /&gt;d) copy the records you want to another TABLE&lt;br /&gt;11)You develop a component for use on a web page, but your users get a &lt;br /&gt;warning about an unsafe control and the control does not get downloaded.&lt;br /&gt;What do you do ?&lt;br /&gt;a) use codebase&lt;br /&gt;b) use licencing&lt;br /&gt;c) set the user safety level to none&lt;br /&gt;d) obtain a digital certificate for signing your component (*)&lt;br /&gt;12)What is needed for early binding ? (choose 2)&lt;br /&gt;a) type library (*)&lt;br /&gt;b) new keyword&lt;br /&gt;c) dual interface (*)&lt;br /&gt;d) createobject function&lt;br /&gt;13) Which types of files can be registerd with regsvr32&lt;br /&gt;a) exe&lt;br /&gt;b) dll (*)&lt;br /&gt;14)A class in an object provided by DLL can not be instantiated by IIS what &lt;br /&gt;do you do ?&lt;br /&gt;a) register the dll using regsver32.exe (*)&lt;br /&gt;15)You are creating a component that should be able to asynchronously notify &lt;br /&gt;projects that use it. What would you use ?. (choose 2)&lt;br /&gt;(a) Events (*)&lt;br /&gt;(b) object callbacks (*)&lt;br /&gt;(c) the address of operator&lt;br /&gt;(d) Implements statement&lt;br /&gt;16)Advantages of the context options in the watches window&lt;br /&gt;17)Which object to use if you want to provide a menu option that links to &lt;br /&gt;help on a web site ?&lt;br /&gt;hyperlink ?&lt;br /&gt;18)disadvantages of the implements keyword&lt;br /&gt;a) cannot be used in a standard module (*)&lt;br /&gt;b) cannot be used more than once in a module&lt;br /&gt;d) cannot be used in the declaration section of a module&lt;br /&gt;19)What you can do with dynamic menus (choose 2)&lt;br /&gt;(cant remember options)&lt;br /&gt;(a) assign them function keys&lt;br /&gt;(b) add menu items to them (*)&lt;br /&gt;(c) make items visible and invisble&lt;br /&gt;20)Datacontrols default recordset type&lt;br /&gt;a) dynaset object ( beware !)&lt;br /&gt;b) table type recordset&lt;br /&gt;c) dynaset type recordset (*)&lt;br /&gt;21)What happens when f1 is pressed when the button does not have a &lt;br /&gt;helpContextID but the containing frame does ?&lt;br /&gt;22)CommonDialogs are a way to show help&lt;br /&gt;23)Use of Ambient properties to make your usercontrol respond to the &lt;br /&gt;background of the containing application&lt;br /&gt;24)Using source.backcolor to change the backcolor of a label being dragged &lt;br /&gt;over the target&lt;br /&gt;25)The I LOVE RAP question (Initialize, Load, Resize, Activate, Paint form &lt;br /&gt;events)&lt;br /&gt;26)The use of treeview to show a hierachical view in a website&lt;br /&gt;27)The use NegotiateMenus on the container to make an objects menu visible.&lt;br /&gt;Options were&lt;br /&gt;something like this :-&lt;br /&gt;a) use the MenuNegotiate property of the container&lt;br /&gt;b) use the MenuNegotiate property of the object&lt;br /&gt;c) use the NegotiateMenus property of the container&lt;br /&gt;d) use the NegotiateMenus property of the object&lt;br /&gt;28)The use of the WithEvents keyword to declare an event sink for a class &lt;br /&gt;named class1&lt;br /&gt;i.e dim WithEvents MyVar as Class1&lt;br /&gt;29)The Asyncread method cannot return hyperlinks directly&lt;br /&gt;30)The use of Load command1(1) when command1 with an index of zero already &lt;br /&gt;exists.&lt;br /&gt;31)The use of the caption property to define hot keys in menus e.g&lt;br /&gt;caption= "&amp;File" defines alt+f as hotkey&lt;br /&gt;32)The use of State in the dragover event to know whether the dragged &lt;br /&gt;control is moving onto or away from your control. &lt;br /&gt;3. There was question where you had to pick which code segment was right:&lt;br /&gt;dim frm as form&lt;br /&gt;for each frm in forms&lt;br /&gt;msgbox frm.index.caption&lt;br /&gt;next&lt;br /&gt;dim frm as form&lt;br /&gt;for each frm in forms&lt;br /&gt;msgbox frm(index).caption.text&lt;br /&gt;next&lt;br /&gt;* dim frm as form&lt;br /&gt;for each frm in forms&lt;br /&gt;msgbox frm.caption&lt;br /&gt;next&lt;br /&gt;4. I got the "What is the best was to view a Web site's hierarchy..." use &lt;br /&gt;Treeview&lt;br /&gt;5. A question about lockedits. if recordset.lockedits=false, which would be &lt;br /&gt;the most like to occur:&lt;br /&gt;•update error: record locked on &lt;machine_name&gt; by &lt;user_name&gt; •save error: &lt;br /&gt;record locked on &lt;machine_name&gt; by &lt;user_name&gt; •can not read database... &lt;br /&gt;6. a logic question. What happens when:&lt;br /&gt;sub mysub()&lt;br /&gt;   static x as integer&lt;br /&gt;   if y =&gt; 4 then&lt;br /&gt;    exit sub&lt;br /&gt;   else&lt;br /&gt;      y=y+1&lt;br /&gt;      mysub()&lt;br /&gt;   end if&lt;br /&gt;end sub&lt;br /&gt;7. I did the worst on app setup/distribution. A question was "A user says &lt;br /&gt;your control can not be download. What do you suggest?"&lt;br /&gt;•digitally sign your control •create a cab file •tell the user to set the &lt;br /&gt;safety level in IE to none •?? &lt;br /&gt;8. Know the order of a form load: initialize, load, resize, activate, paint&lt;br /&gt;9. Also autoredraw. If not set to true, graphics drawn with Pset or text on &lt;br /&gt;the form printed used Print will disappear if another form is placed on top &lt;br /&gt;then minimized.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2861437668357595060-544958185147612160?l=vbfaqs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbfaqs.blogspot.com/feeds/544958185147612160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2861437668357595060&amp;postID=544958185147612160' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/544958185147612160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/544958185147612160'/><link rel='alternate' type='text/html' href='http://vbfaqs.blogspot.com/2008/07/visual-basic-questions_17.html' title='visual basic questions'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</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-2861437668357595060.post-347548868551704127</id><published>2008-07-17T19:55:00.000-07:00</published><updated>2008-12-22T21:11:33.371-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>vb Question 5</title><content type='html'>DROPHIGHLIGHT property is for : HITTEST.&lt;br /&gt;&lt;br /&gt;1.What r the steps involved in EarlyBinding, How do u create objects using&lt;br /&gt;early binding.&lt;br /&gt;2.Which keywords are allowable in compiler Directives statements :Literal&lt;br /&gt;Statements &amp;amp; except IS Keyword.&lt;br /&gt;3.While running a web page, a user gets a warning about unsafe control and&lt;br /&gt;the control doesn't getdownloaded. Whats the solution ?&lt;br /&gt;4.If you want to install your Visual Basic application in other computer, how&lt;br /&gt;do you find out aboutthe components that are registered in that computer?&lt;br /&gt;5.What type of files does the Setup Wizard generates for Internet download&lt;br /&gt;setup?&lt;br /&gt;6.Know all possible type of files that can you register by using REGSRV32.EXE&lt;br /&gt;7.How can you test the unload behavior of an in-process (ActiveX) DLL&lt;br /&gt;component?&lt;br /&gt;8.How can you debug an (ActiveX) out-of-process component?&lt;br /&gt;9.Variable a is in Procedure A. In the Locals Window we observe its current&lt;br /&gt;value. Then you step into to Procedure B and variable a shows a message "out&lt;br /&gt;of context". What does it mean?&lt;br /&gt;10.Which (2) of the following make a safe ActiveX scripting control for www&lt;br /&gt;applications&lt;br /&gt;[ ] Prompt for a password&lt;br /&gt;[ ] Save to a File&lt;br /&gt;[X] Get information from registry&lt;br /&gt;[X] Save information to registry.&lt;br /&gt;11.What options (switches) should you select in order to optimize performance&lt;br /&gt;for numeric processing while the compiler relies on arguments passed by&lt;br /&gt;reference.&lt;br /&gt;[ ] Assume No Aliasing&lt;br /&gt;[ ] Optimizing for Small Code&lt;br /&gt;[X] Disable Visual Basic Floating Point Error Checking&lt;br /&gt;[X] Remove Safe Pentium FDIV Checks&lt;br /&gt;12.You have Form1 where you drag and place a label named Label1. Pick the&lt;br /&gt;correct line of code that changes the background color of Label1.&lt;br /&gt;13.There is Form1 that has Object1. How can you combine the menu controls of&lt;br /&gt;Object1 in Form1?&lt;br /&gt;a)Using a pop-up menu at run-time. Another option could be to set the&lt;br /&gt;NegociateMenu property of Form1 to true.&lt;br /&gt;14.You set a form with AutoRedraw = False. You have a command button, an&lt;br /&gt;image control, a draw made by the PSET instruction, and a text that uses the&lt;br /&gt;PRINT method. If the form is minimized and then restored, there are two&lt;br /&gt;elments that are going to be di splayed.&lt;br /&gt;The Command Button and the Image Control&lt;br /&gt;15.If you want to display a hierarchical structure of a Web Site, which of&lt;br /&gt;the following controls you should use?&lt;br /&gt;[ ] outline&lt;br /&gt;[ ] listbox&lt;br /&gt;[ ] listview&lt;br /&gt;[X] treeView&lt;br /&gt;16.What can you do with a dynamic menu?&lt;br /&gt;[ ] You can add function keys to it&lt;br /&gt;[X] You can add pop-up menus to it&lt;br /&gt;[X] You can deleted it after creating it&lt;br /&gt;[ ] You can create it from the MenuEditor&lt;br /&gt;17.If you want to offer an option in a help menu for users to access your Web&lt;br /&gt;Site, what ActiveXDocument should you use?&lt;br /&gt;[ ] Automation&lt;br /&gt;[ ] WinSock&lt;br /&gt;[X] Hyperlink&lt;br /&gt;[ ] ActiveX component&lt;br /&gt;18.If we have an ActiveX Component that connects to a database, how can it be&lt;br /&gt;notified if the component connection fails?&lt;br /&gt;19.You have an ActiveX document that uses the AsyncRead method to obtain data&lt;br /&gt;from an intranetlocation. What type of data does it cannot return directly?&lt;br /&gt;[ ] Files&lt;br /&gt;[ ] Byte arrays&lt;br /&gt;[ ] Pictures&lt;br /&gt;[x] Hyperlinks&lt;br /&gt;20.We obtained many DLL functions from different vendors. Two functions&lt;br /&gt;happen to have the same name but different purposes. What can we do?&lt;br /&gt;[X] Using an alias&lt;br /&gt;[X] Declaring each Private in separate modules&lt;br /&gt;[ ] Registering one with another name&lt;br /&gt;[ ] Modifying the DLL function.&lt;br /&gt;21.One question related to sink events for a class named CLASS1 and some&lt;br /&gt;possible answers like:&lt;br /&gt;( ) Dim MyVar AS OBJECT&lt;br /&gt;( ) Dim MyVar AS Variant&lt;br /&gt;( ) Dim MyVar AS New Class1&lt;br /&gt;( ) Dim WithEvents MyVar as Class1&lt;br /&gt;22.Which line of code will create a new instance of an object new Form1 in&lt;br /&gt;Project1.&lt;br /&gt;[ ] Dim Frmx as Form1&lt;br /&gt;[ ] Dim Frmx as New Form1&lt;br /&gt;[ ] Set Frmx = Form1&lt;br /&gt;[X] Set Frmx = GetObject("Project1.Form1")&lt;br /&gt;23.What is the DBGrids default RecordSoruce type&lt;br /&gt;24.What object do i use for the ShowHelp method?&lt;br /&gt;25.You want to minimize download time for an activeX document with several&lt;br /&gt;components. How to package within a .cab file?&lt;br /&gt;26.IIS can not instantiate an object provided by the DLL (ActiveX) What&lt;br /&gt;should you do to the DLL?&lt;br /&gt;27.An ActiveX component connects to a database, the connection to the&lt;br /&gt;database fails. What do?&lt;br /&gt;28.There are 2 deferent dll from 2 vendors and the dll have the same name.&lt;br /&gt;What must you do to be able to call both functions?&lt;br /&gt;29.A control for use all programmers in company. You need debug control&lt;br /&gt;interaction with the same process as one of your applications. How do this?&lt;br /&gt;A. add control project to your app project&lt;br /&gt;B. load control project in second instance&lt;br /&gt;C. in the app proj add a reference to control project&lt;br /&gt;D. in the control proj add a reference to app project&lt;br /&gt;30.Which two required for Early Binding?&lt;br /&gt;A. Type library *&lt;br /&gt;B. Dual Interface&lt;br /&gt;C. New Keyword *&lt;br /&gt;D. CreateObject Function&lt;br /&gt;31.What should you do to debug an out of process component&lt;br /&gt;A. Start a second instance of the development environment *&lt;br /&gt;B. Compile the component by using symbolic debug information&lt;br /&gt;C. Create an errorhandler for the out of process component&lt;br /&gt;D. Create a project group&lt;br /&gt;32.What is the sequence in which the events in the form will trigger ILRAP&lt;br /&gt;à Initialize, Load, Resize , Activate, Paint&lt;br /&gt;33.How do you dynamically create a Commnad button . Already a Command Button&lt;br /&gt;with index 0   exists.&lt;br /&gt; Load Command1(1)&lt;br /&gt;34.What vill be shown when this code is excuted?&lt;br /&gt;Private Sub Command1_Click()&lt;br /&gt;Command2.Value = True&lt;br /&gt;End Sub&lt;br /&gt;Private Sub Command2_Click()&lt;br /&gt;Command1.Value = True&lt;br /&gt;End Sub&lt;br /&gt;Out of Stack Space error&lt;br /&gt;35.What will happen if user presses command2?&lt;br /&gt;Sub Mysub()&lt;br /&gt;static intNum As Integer&lt;br /&gt;If intNum &lt;= 4 Then&lt;br /&gt;Exit Sub&lt;br /&gt;Else&lt;br /&gt;  intNum = intNum + 1&lt;br /&gt;     Mysub&lt;br /&gt;End If&lt;br /&gt;End Sub&lt;br /&gt;Private Sub Command2_Click()&lt;br /&gt;  Mysub&lt;br /&gt;End Sub&lt;br /&gt;36.How to declare a DLL with a C Char datatype?&lt;br /&gt;a) ByVal variable As Byte&lt;br /&gt;37.How to use the Form collection?&lt;br /&gt; Dim a As Form&lt;br /&gt;     For Each a In Forms&lt;br /&gt;     MsgBox a.Caption&lt;br /&gt;  Next&lt;br /&gt;38.What elements exists in Conditional Compiling&lt;br /&gt;a) Literal Expressions&lt;br /&gt;39.What event can handle when a user presess F2&lt;br /&gt;a)Key Down&lt;br /&gt;40.You want your usercontrol to reflect the backcolor of the container what&lt;br /&gt;do u use&lt;br /&gt;a)Ambient.&lt;br /&gt;41.Your application contains the following class names Class1 with a property&lt;br /&gt;named Myproperty.&lt;br /&gt;     You run the following code&lt;br /&gt;     Dim A as Class1&lt;br /&gt;     Dim B as New Class1&lt;br /&gt;     B.Myproperty = 3&lt;br /&gt;     Set A = New Class1&lt;br /&gt;42) How many instances of class1 exist after your run this code.&lt;br /&gt;   a. 0&lt;br /&gt;   b. 1&lt;br /&gt;   c. 2 (*)&lt;br /&gt;   d. 3&lt;br /&gt;43.Which argument of the ADD method is used to specify a node object to&lt;br /&gt;Treeview ?( say creation of a Child )?&lt;br /&gt;  Key&lt;br /&gt;  Relative&lt;br /&gt;  Relationship&lt;br /&gt;43.You have a Label Control in USERCONTROL . If the user resizes the user&lt;br /&gt;control during run-time , in which event will u handle the resizing of the&lt;br /&gt;label ( so as to view the Label control)?&lt;br /&gt;a)USERCONTROL_RESIZE&lt;br /&gt;44.U have a Option Button inside a Frame . The Option Button’s HelpContextId&lt;br /&gt;is 0. If user presses  the F1 key, what will happen?&lt;br /&gt;a)Form’s HelpContextId is searched for non-zero value and if so, help is&lt;br /&gt;displayed for the Form&lt;br /&gt;45.If a user sets the LOCKEDIT property of Table to FALSE and another user&lt;br /&gt;updates the Table at the same time. What error will be displayed?&lt;br /&gt;46.If an application is compiled specifically for running on Pentium Pro&lt;br /&gt;Machines ,Which of thefollowing options have to be enabled?&lt;br /&gt;[] Assume no aliasing&lt;br /&gt;[] Floating point division Error&lt;br /&gt;[] optimize for Pentium [tm]&lt;br /&gt;[] Floating Point division by Zero Error&lt;br /&gt;47.U have to indicate the property changes for an object. Which of the&lt;br /&gt;following is best suited for the above scenario?&lt;br /&gt;[] Property Get&lt;br /&gt;[] property Let&lt;br /&gt;[] Public Sub()&lt;br /&gt;[] Public Function()&lt;br /&gt;48.Which of the following is not supported by AsyncRead ?&lt;br /&gt;[] Bitmaps&lt;br /&gt;[] Files&lt;br /&gt;[]&lt;br /&gt;[] HyperLinks *&lt;br /&gt;49.U have 2 tables based upon which reports r to be generated by making use&lt;br /&gt;of a common Field.The existing Table structure and Report definitions should&lt;br /&gt;not be changed.which of the following is  most appropriate.&lt;br /&gt;  [] create a new table and use Filter&lt;br /&gt;  [] Create a new table and use Sort&lt;br /&gt;  [] create a new Dynaset using Filter*&lt;br /&gt;  []&lt;br /&gt;50.How to create File option on menu with a Hot Key ALT F?&lt;br /&gt;a) Set Caption to "&amp;amp;File" in Menu for that item&lt;br /&gt;&lt;br /&gt;        some questons&lt;br /&gt;        *************&lt;br /&gt;&lt;br /&gt;1. which property sets the value to indicate the display of a lengthy&lt;br /&gt;operation?&lt;br /&gt;a)Value&lt;br /&gt;2)Dragover event of form1 to change bg color of label 1 to red/source.color&lt;br /&gt; =vbred&lt;br /&gt;3)Trap a function key&lt;br /&gt;a)keydown&lt;br /&gt;4)To allow numeric digit only ina txt box which is unbound?&lt;br /&gt;a)keypress&lt;br /&gt;5)Prpperty to access buttons of toolbar?&lt;br /&gt;a)Key and Index&lt;br /&gt;6) Inserting text to statusbar SBI second panel ?&lt;br /&gt;a)sb1.panels(2).text = "....printing"&lt;br /&gt;7)default recordset&lt;br /&gt;a)dynaset type recordset&lt;br /&gt;8)lokedits = false&lt;br /&gt;a)optimistic locking&lt;br /&gt;9)pass an empty valu&lt;br /&gt;a)byval 0&amp;amp; byref vbnullstring&lt;br /&gt;10)which 2 projects contain ActiveX documents&lt;br /&gt;a)Active X.exe and activex.dll&lt;br /&gt;11)activex.dll to multithread&lt;br /&gt;a)activex.exe (convert)&lt;br /&gt;12)when helpcontextid =0 for an object conatined in a frame where does visual&lt;br /&gt;basic look for help?&lt;br /&gt;a)In the controls container&lt;br /&gt;13)what code will gain from being compiled as native code?&lt;br /&gt;a)finacial calculations&lt;br /&gt;14)what cannot be done when an internet control is packaged?&lt;br /&gt;a)write from registry,reading from registry.&lt;br /&gt;15)benefits of form collection&lt;br /&gt;a)Standardised mechanism for for tracking multiple instances of a form&lt;br /&gt;unloading all forms is faster.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   &lt;br /&gt;    Hints:&lt;br /&gt;&lt;br /&gt;(a) Scope of Declarations, (Priv, Pub,Static,Global..etc)&lt;br /&gt;(b) Use Collections (0 &amp;amp; 1) based.&lt;br /&gt;(c) Debugging Issues (Local, Watch &amp;amp; Immediate) &amp;amp; their scopes.&lt;br /&gt;(d) Design Issues ( Autoredraw when to set TRUE/FALSE, runtime &amp;amp; degign time&lt;br /&gt;properties available, Using Graphic Methods like PSET..)&lt;br /&gt;(e) Using CLASSES in VB: Develop a small class &amp;amp; try to implement practically the issues&lt;br /&gt;: Inheritance (use AS NEW), Polymorhism (use IMPLEMENTS),Instanceing&lt;br /&gt;(SingleUse,PubCreatble,Global,Multi etc.)&lt;br /&gt;(f) Develop Small AX DLL,AX Control,AX EXE &amp;amp;AX DOC.Know diff Outof &amp;amp;inprocess.&lt;br /&gt;(e) Concentrate of DAO (Locking Issues),Validation &amp;amp; Other Events.&lt;br /&gt;(f) Design a form using Treeview Control,Listview &amp;amp; Imagelist control.If you&lt;br /&gt; only C&amp;amp;P from the example from ONLINE Help, it is sufficient. U got know the&lt;br /&gt;major events &amp;amp; Understand the methods &amp;amp; Properties.&lt;br /&gt;(HIT TEST &amp;amp; DROP HIGHLIGHT PROPERTIES)&lt;br /&gt;&lt;br /&gt;FEW QUESTION TOPICS THAT I COULD UNDELETE FROM MY RECYCLING BRAIN&lt;br /&gt;DUMP.&lt;br /&gt;1. U have Form,a FRAME &amp;amp; ListBox inside frame. If u set SORT property of&lt;br /&gt;Listbox at design time,what will happen.Pls refer other Articles in the brain&lt;br /&gt;dump for this Question.&lt;br /&gt;2. What is the Only Poperty available for collection : Count.&lt;br /&gt;3. Which Option will not allow to create instances : set Public to FALSE&lt;br /&gt;4. How do u create a PUBLICLY READONLY property and PRIVATE READ/WRITE&lt;br /&gt;Property.(Brilliant Question...Observe Public &amp;amp; Private).&lt;br /&gt;5. Files The Get Generated while creating Internet Distribution files:&lt;br /&gt; .CAB,.HTM &amp;amp; .INF.&lt;br /&gt;6. DRAG DROP : What Does State Parameter of Mouse event Signifies.&lt;br /&gt;7. What r the only design &amp;amp; Run time properties available for a Menu.&lt;br /&gt;8. DROPHIGHLIGHT property is for : HITTEST.&lt;br /&gt;9. How do u dynamicaly load controls : Load,Move,Visible.&lt;br /&gt;10.How do set a text into 2nd panel of statusbars Panel Collection.&lt;br /&gt;11.What Property will u use to access BUTTONS of TOOLBAR : Key &amp;amp; Index.&lt;br /&gt;Note: Here Key can also be used to uniquely access buttons on toolbar&lt;br /&gt;12.What r the steps involved in EarlyBinding, How do u create objects using&lt;br /&gt;early binding.&lt;br /&gt;13.If a variable is declared as PUBLIC in Forms Declaration what is its scope&lt;br /&gt;: - Complete APP&lt;br /&gt;  - Only to procedures inside the form&lt;br /&gt;  - Procedures which r declared as public&lt;br /&gt;  - Procedures which r declared as PRIVATE.&lt;br /&gt;14. One Question of Friend Property. It was pretty simple.&lt;br /&gt;15. One Question on Pessimistic &amp;amp; Optimistic Locking.&lt;br /&gt;16. Which type of recordset u will use to populate country names into a&lt;br /&gt;listbox.&lt;br /&gt;17. Which recordset u will use to find a record in multiuser environment&lt;br /&gt;18. Which event will get fired when u move from 1 record to the other.&lt;br /&gt;19. how do u pass NULL to a DLL: ByRef vbNullStrig, ByVal 0 as long&lt;br /&gt;(or ByVal 0&amp;amp;)&lt;br /&gt;&lt;br /&gt;1.Your application contains the following class names Class1 with a property&lt;br /&gt;named Myproperty. You&lt;br /&gt;run the following code:&lt;br /&gt;   Dim A as Class1&lt;br /&gt;   Dim B as New Class1&lt;br /&gt;   B.Myproperty = 3&lt;br /&gt;   Set A = New Class1&lt;br /&gt;2)How many instances of class1 exist after your run this code.&lt;br /&gt;   a. 0&lt;br /&gt;   b. 1&lt;br /&gt;   c. 2 (*)&lt;br /&gt;   d. 3&lt;br /&gt;&lt;br /&gt;2. You want to create an instance of an ActiveX component that can&lt;br /&gt;Asynchronously signal projects that&lt;br /&gt;use it. what should u create (Choose two)?&lt;br /&gt;     a. an event&lt;br /&gt;     b. an object callback (*)&lt;br /&gt;     c. the Addressof Operator (*)&lt;br /&gt;     d. the Implements statement&lt;br /&gt;3.What control can u place on an MDI form.&lt;br /&gt;     a. Image (*)&lt;br /&gt;     b. Picture Box&lt;br /&gt;     c. Option Control&lt;br /&gt;     d. Frame&lt;br /&gt;4.some question like u have two forms Form1 and Form 2 and u want to trigger&lt;br /&gt;a terminate event for the first Form from the Second Form.&lt;br /&gt;the correct answer is:&lt;br /&gt;     Unload Form1&lt;br /&gt;     Set Form1 = Nothing&lt;br /&gt;5.The record set validate event is done only when.&lt;br /&gt;    a. when u move to the next control&lt;br /&gt;    b. Only when u move to the next record (*)&lt;br /&gt;6.The Record Set record count only when u access all the records.&lt;br /&gt;7. Scope of a public variable in a form&lt;br /&gt;   Accessable from all procedure and function in the Form.&lt;br /&gt;8.What cannot be done when an Internet Control is packaged (Choose Two)?&lt;br /&gt;     Write to a file&lt;br /&gt;     read from the registry&lt;br /&gt;9. Save settings&lt;br /&gt;     HK_CurrentUser&lt;br /&gt;10.Code for Toolbar Click Event&lt;br /&gt;     Button.key&lt;br /&gt;11.You have two text boxes Text1 and Text2. the Tab index of text1 is set to&lt;br /&gt; 0. what will happen when&lt;br /&gt;u set the tab index of text2 to 0?&lt;br /&gt;     Tab index of text1 is set to 1&lt;br /&gt;12. Arguements for property Procedures (Choose Two)?&lt;br /&gt;    AddressOf (*)&lt;br /&gt;    Alias&lt;br /&gt;    Param Array(*)&lt;br /&gt;    Optional&lt;br /&gt;13.For Early Binding&lt;br /&gt;     Dim varname as Class&lt;br /&gt;     Set varname = CreateObject(ClassName)&lt;br /&gt;14.To Show Help method witrhout declaring a DLL&lt;br /&gt;     First create a Common Dialog Control&lt;br /&gt;15.To pass a null value to a DLL (Choose Two)&lt;br /&gt;    By Ref vbNullString&lt;br /&gt;    By Val long 0&lt;br /&gt;16. How to debug an ActiveX control?&lt;br /&gt;     use the raise method&lt;br /&gt;1.If you want to install your Visual Basic application in other computer, how&lt;br /&gt; do you find out about     the components that are registered in that&lt;br /&gt;computer? REGSRV32.EXE&lt;br /&gt;2.How can you build ActiveX components for Internet distribution? Use the&lt;br /&gt;Application Setup Wizard and pick the appropriate options.&lt;br /&gt;3.What type of files does the Setup Wizard generates for Internet download&lt;br /&gt;setup? *.CAB files.&lt;br /&gt;4.Know all elements shown in the Add Watch Window (Debugging)&lt;br /&gt;5.Know all elements shown in the Locals Window (Debugging)&lt;br /&gt;6.Know all possible type of files that can you register by using REGSRV32.EXE&lt;br /&gt;. (i.e.: .DLL,.OCX, etc.)&lt;br /&gt;   7.How can you test the unload behavior of an in-process (ActiveX) DLL&lt;br /&gt;component? You can add&lt;br /&gt;     a standard EXE project to the ActiveX DLL¦s project group, and test the&lt;br /&gt;in-process component&lt;br /&gt;     within a single instance of Visual Basic.&lt;br /&gt;   8.How can you debug an (ActiveX) out-of-process component? To test an&lt;br /&gt;ActiveX EXE, you must&lt;br /&gt;     run the component within one instance of Visual Basic, and run the test&lt;br /&gt; application in a second&lt;br /&gt;     instance of Visual Basic.&lt;br /&gt;   9.Know all the options available within the "Compile" tab in the Project&lt;br /&gt;Properties when making a&lt;br /&gt;     new project. (i.e.: Compile to Native Code -&gt; Favor Pentium Pro (tm),&lt;br /&gt;Advanced Optimizations&lt;br /&gt;     -&gt; Remove Integer Overflow Checks, etc.)&lt;br /&gt;  10.Variable a is in Procedure A. In the Locals Window we observe its&lt;br /&gt;current value. Then you step&lt;br /&gt;     into to Procedure B and variable a shows a message "out of context".&lt;br /&gt;What does it mean?&lt;br /&gt;     Variable a was local to Procedure A (neither public nor static).&lt;br /&gt;  11.One question on conditional compilation to choose the right construct&lt;br /&gt;(learn the syntax for #ifdef&lt;br /&gt;     #elseif #endif)&lt;br /&gt;  12.There is a www server application that uses ActiveX controls you&lt;br /&gt;developed. When the&lt;br /&gt;     application page is browsed with IE it does not show the ActiveX&lt;br /&gt;control. What may be&lt;br /&gt;     happening? Options in the Application Setup Wizard were not used&lt;br /&gt;correctly.&lt;br /&gt;  13.Which (2) of the following make a safe ActiveX scripting control for&lt;br /&gt; www applications&lt;br /&gt;&lt;br /&gt;     [ ] Prompt for a password&lt;br /&gt;     [ ] Save to a File&lt;br /&gt;     [X] Get information from registry&lt;br /&gt;     [X] Save information to registry.&lt;br /&gt;  14.What options (switches) should you select in order to optimize&lt;br /&gt;performance for numeric&lt;br /&gt;     processing while the compiler relies on arguments passed by reference.&lt;br /&gt;&lt;br /&gt;     [ ] Assume No Aliasing&lt;br /&gt;     [ ] Optimizing for Small Code&lt;br /&gt;     [X] Disable Visual Basic Floating Point Error Checking&lt;br /&gt;     [X] Remove Safe Pentium FDIV Checks&lt;br /&gt;  15.You have Form1 where you drag and place a label named Label1. Pick the&lt;br /&gt;correct line of code&lt;br /&gt;     that changes the background color of Label1.&lt;br /&gt;  16.There is Form1 that has Object1. How can you combine the menu controls&lt;br /&gt;of Object1 in Form1?&lt;br /&gt;     Using a pop-up menu at run-time. Another option could be to set the&lt;br /&gt;NegociateMenu property of&lt;br /&gt;     Form1 to true.&lt;br /&gt;  17.You set a form with AutoRedraw = False. You have a command button, an&lt;br /&gt;image control, a draw&lt;br /&gt;     made by the PSET instruction, and a text that uses the PRINT method.&lt;br /&gt;If the form is minimized&lt;br /&gt;     and then restored, there are two elements that are going to be di&lt;br /&gt;&lt;br /&gt;     The Command Button and the Image Control&lt;br /&gt;  18.If you want to display a hierarchical structure of a Web Site, which of&lt;br /&gt;the following controls you&lt;br /&gt;     should use?&lt;br /&gt;&lt;br /&gt;     [ ] outline&lt;br /&gt;     [ ] listbox&lt;br /&gt;     [ ] listview&lt;br /&gt;     [X] treeView&lt;br /&gt;  19.What can you do with a dynamic menu?:&lt;br /&gt;&lt;br /&gt;     [ ] You can add function keys to it&lt;br /&gt;     [X] You can add pop-up menus to it&lt;br /&gt;     [X] You can deleted it after creating it&lt;br /&gt;     [ ] You can create it from the MenuEditor&lt;br /&gt;  20.Know the DropHighLight property of TreeView.&lt;br /&gt;&lt;br /&gt;     The DropHighLight property is used to do drag and drop operations in a&lt;br /&gt;TreeView.&lt;br /&gt;  21.Characteristics of the DragOver Event.&lt;br /&gt;&lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;     Used for drag and drop operations with forms, and other objects as&lt;br /&gt;pictures.&lt;br /&gt;  22.If you want to offer an option in a help menu for users to access your&lt;br /&gt;Web Site, what ActiveX&lt;br /&gt;     Document should you use?:&lt;br /&gt;&lt;br /&gt;     [ ] Automation&lt;br /&gt;     [ ] WinSock&lt;br /&gt;     [X] Hyperlink&lt;br /&gt;     [ ] ActiveX component&lt;br /&gt;  23.Know the function and syntax of Param Array&lt;br /&gt;  24.Know all about how to implement HelpFiles in an application&lt;br /&gt;  25.If we have an ActiveX Component that connects to a database, how can it&lt;br /&gt;be notified if the&lt;br /&gt;     component connection fails?&lt;br /&gt;  26.Know all about using class modules&lt;br /&gt;  27.Know how to declare DLL functions.&lt;br /&gt;  28.You have an ActiveX document that uses the AsyncRead method to obtain&lt;br /&gt;data from an intranet&lt;br /&gt;     location. What type of data does it cannot return directly?&lt;br /&gt;&lt;br /&gt;     [ ] Files&lt;br /&gt;     [ ] Byte arrays&lt;br /&gt;     [ ] Pictures&lt;br /&gt;     [X] Hyperlinks&lt;br /&gt;  29.What is the purpose of the Implements keyword?&lt;br /&gt;&lt;br /&gt;     The Implements keyword is used to create a secondary interface. For&lt;br /&gt;instance, if your application&lt;br /&gt;     has a reference to a type library that describes the IGrowth interface,&lt;br /&gt;you could create a&lt;br /&gt;     secondary interface in a class module using "Implements IGrowth".&lt;br /&gt;  30.Why would you want to set the LockEdits property to False?&lt;br /&gt;&lt;br /&gt;     If LockEdits is set to False (for optimistic locking), then the 2K page&lt;br /&gt;containing the record will&lt;br /&gt;     remain locked, and then updated upon executing the Update method only.&lt;br /&gt;  31.We obtained many DLL functions from different vendors. Two functions&lt;br /&gt;happen to have the same&lt;br /&gt;     name but different purposes. What can we do?&lt;br /&gt;&lt;br /&gt;     [X] Using an alias&lt;br /&gt;     [X] Declaring each Private in separate modules&lt;br /&gt;     [ ] Registering one with another name&lt;br /&gt;     [ ] Modifying the DLL function.&lt;br /&gt;  32.Know the differences between early binding vs late binding&lt;br /&gt;&lt;br /&gt;     Late binding occurs when the compiler does not know about an object&lt;br /&gt;until run time.&lt;br /&gt;     Early binding occurs when Visual Basic knows at compile time exactly&lt;br /&gt;which interface will be used&lt;br /&gt;     with an object variable.&lt;br /&gt;  33.One question related to sink events for a class named CLASS1 and some&lt;br /&gt;possible answers like:&lt;br /&gt;&lt;br /&gt;     ( ) Dim MyVar AS OBJECT&lt;br /&gt;     ( ) Dim MyVar AS Variant&lt;br /&gt;     ( ) Dim MyVar AS New Class1&lt;br /&gt;     ( ) Dim WithEvents MyVar as Class1&lt;br /&gt;  34.Know all about Forms Collection&lt;br /&gt;  35.Which line of code will create a new instance of an object new Form1 in&lt;br /&gt;Project1.&lt;br /&gt;&lt;br /&gt;          [ ] Dim Frmx as Form1&lt;br /&gt;          [ ] Dim Frmx as New Form1&lt;br /&gt;          [ ] Set Frmx = Form1&lt;br /&gt;          [X] Set Frmx = GetObject("Project1.Form1")&lt;br /&gt;  36.How can you create a read-only property for a class?&lt;br /&gt;&lt;br /&gt;          [ ] Define a Property Get procedure and define a Property Let&lt;br /&gt;procedure with no&lt;br /&gt;          arguments.&lt;br /&gt;          [ ] Define a Property Get procedure and a Property Let procedure.&lt;br /&gt;          [X] Define a Property Get procedure without a Property Set or&lt;br /&gt;Property Let procedure.&lt;br /&gt;          [ ] Define a Property Set or Property Let procedure without a&lt;br /&gt;Property Get procedure.&lt;br /&gt;  37.Advantages of Using ActiveX Documents (Choose 2).&lt;br /&gt;&lt;br /&gt;          The ActiveX Documents offer many advantages and increased&lt;br /&gt;functionality to both the user&lt;br /&gt;          and the application developer. The most important advantage for&lt;br /&gt;developers in using&lt;br /&gt;          ActiveX documents is the ability to apply existing programming&lt;br /&gt;skills. Developers&lt;br /&gt;  38.What is the purpose of the ID parametr in an HTML &lt;object&gt; tag?&lt;br /&gt;&lt;br /&gt;          [ ] Specifies a URL that points to a file containing an&lt;br /&gt;implementation of an object.&lt;br /&gt;          [ ] Specifies the object's unique class identifier stored in the&lt;br /&gt;system registry.&lt;br /&gt;          [ ] Specifies a URL that points to the name of the object.&lt;br /&gt;          [X]Specifies the object name.&lt;br /&gt;  39.How can you create a read-only property private and a write-only&lt;br /&gt;property Public. Which of the&lt;br /&gt;     following are true?&lt;br /&gt;&lt;br /&gt;     [X] Private Property Get Name() As String&lt;br /&gt;     Name = txtname.text&lt;br /&gt;     End Property&lt;br /&gt;     Public Property Let Name(ByVal NewName as String)&lt;br /&gt;     TxtName.text = NewName&lt;br /&gt;     PropertyChanged "Name"&lt;br /&gt;     EndProperty&lt;br /&gt;&lt;br /&gt;     [ ] Public Property Set Name() As String&lt;br /&gt;     Name = txtname.text&lt;br /&gt;     End Property&lt;br /&gt;     Private Property Let Name(ByVal NewName as String)&lt;br /&gt;     TxtName.text = NewName&lt;br /&gt;     PropertyChanged "Name"&lt;br /&gt;     EndProperty&lt;br /&gt;&lt;br /&gt;     [ ] Public Property Let Name() As String&lt;br /&gt;     Nsme = txtname.text&lt;br /&gt;     End Property&lt;br /&gt;     Public Property Set Name(ByVal NewName as String)&lt;br /&gt;     TxtName.text = NewName&lt;br /&gt;     PropertyChanged "Name"&lt;br /&gt;     EndProperty&lt;br /&gt;  40.How do you create a license package file containing the licensing&lt;br /&gt;information for all controls on a&lt;br /&gt;     Web page?&lt;br /&gt;&lt;br /&gt;     [ ] With the Visual Basic License Manager.&lt;br /&gt;     [ ] With the CODEBASE parameter of an HTML page's&lt;object&gt;tag.&lt;br /&gt;     [ ] With the Visual Basic Application Wizard.&lt;br /&gt;     [X] With a utility form the LPK_TOOL directory on the Visual Basic&lt;br /&gt;CDROM.&lt;br /&gt;  41.What elements of ActiveX Components on a Web page contribute to&lt;br /&gt;security?&lt;br /&gt;&lt;br /&gt;     When you use ActiveX controls on a Web page, you can implement the&lt;br /&gt;     following security measures: Set the appropiate level of security in&lt;br /&gt;Internet&lt;br /&gt;     Explorer, Provide users with information about the author of the&lt;br /&gt;control, Through digital code&lt;br /&gt;     signing, Create an Internet download by marking your Controls as safe&lt;br /&gt;for scripting and&lt;br /&gt;     initialization.&lt;br /&gt;  42.Which code segment would best trap a "division by zero" error&lt;br /&gt;handling?&lt;br /&gt;&lt;br /&gt;     For example: (See Error Handling)&lt;br /&gt;&lt;br /&gt;     Public Sub ProcDivZero()&lt;br /&gt;     On Error GoTo ErrTrapper&lt;br /&gt;     X = 100 / 0&lt;br /&gt;     Y = X / 0&lt;br /&gt;     Exit Sub&lt;br /&gt;     End Sub&lt;br /&gt;     ErrTrapper&lt;br /&gt;     If Err.Number = 11 Then Debug.Print "Division by Zero Found"&lt;br /&gt;     EndProc&lt;br /&gt;  43.Which is the difference between debugging an ActiveX control project&lt;br /&gt;and an in-process&lt;br /&gt;     component?&lt;br /&gt;     The componet code can run while the client is in Design mode.&lt;br /&gt;(See Mastering VB5: ActiveX&lt;br /&gt;     Control).&lt;br /&gt;  44.Which project template would you select to build an in-process code&lt;br /&gt;&lt;br /&gt;          (ActiveX Document DLL)?&lt;br /&gt;          Add object dialog.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2861437668357595060-347548868551704127?l=vbfaqs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vbfaqs.blogspot.com/feeds/347548868551704127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2861437668357595060&amp;postID=347548868551704127' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/347548868551704127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861437668357595060/posts/default/347548868551704127'/><link rel='alternate' type='text/html' href='http://vbfaqs.blogspot.com/2008/07/vb-question-5.html' title='vb Question 5'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</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-2861437668357595060.post-6682200142642026244</id><published>2008-07-17T19:54:00.000-07:00</published><updated>2008-12-22T21:11:33.371-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>Visual Basic Questions</title><content type='html'>&lt;br /&gt;1) What is the sequence&lt;br /&gt;Initialise, Load, Resize, Paint&lt;br /&gt;2) You want to represent hierarchically an organisation's structure in a WWW&lt;br /&gt;site along with Icons. Which control will you make use of ?&lt;br /&gt;Treeview&lt;br /&gt;3) You have created an application. In the Help menu, you have an option to&lt;br /&gt;navigate to a WWW site. What you should make   use of ?&lt;br /&gt;Winsock &lt;br /&gt;4) dim a as class1&lt;br /&gt;dim b as new class1&lt;br /&gt;b.prop = true&lt;br /&gt;set a = new class1&lt;br /&gt;How many instances of class1 is created ?&lt;br /&gt;2&lt;br /&gt;5) Which of the following is required for early binding ?&lt;br /&gt;type library&lt;br /&gt;New Keyword&lt;br /&gt;6) Which property of Err object gives you an idea of   where the error has&lt;br /&gt;occured ?&lt;br /&gt;Source&lt;br /&gt;7) How do you test an in-process ActiveX DLL ?&lt;br /&gt;8) How do you test an out-of-process ActiveX EXE ?&lt;br /&gt;9) Private sub mysub() as integer&lt;br /&gt;static count as integer&lt;br /&gt;if count &gt;= 4 then&lt;br /&gt;exit sub&lt;br /&gt;else&lt;br /&gt;mysub&lt;br /&gt;end if&lt;br /&gt;end sub&lt;br /&gt;What will be the output ?&lt;br /&gt;Out of stack error&lt;br /&gt;10) You have debug statement in your project. You don't want   them to be&lt;br /&gt;compiled. What can you do Conditional compilation&lt;br /&gt;Use Edit and Replace&lt;br /&gt;11) You are making use of pass by reference. How will you optimize numeric&lt;br /&gt;calculation.&lt;br /&gt;Assume no aliasing&lt;br /&gt;Remove FDIV checks&lt;br /&gt;Remove floating point error checks&lt;br /&gt;12) You are making use of Pentium Pro computer. How can you optimize ?&lt;br /&gt;13) You have created a class. You want other members of your project to&lt;br /&gt;access it. You want them to access it like an app object. How do you set the&lt;br /&gt;instancing ?&lt;br /&gt;Globalmultiuse&lt;br /&gt;multiuse&lt;br /&gt;Publicnotcreatable&lt;br /&gt;Private&lt;br /&gt;14) What are the valid properties of control collection ?&lt;br /&gt;15) What should you do if you want to uninstall your software (when you are&lt;br /&gt; using setup wizard ) ?&lt;br /&gt;&lt;br /&gt;                Some Questions&lt;br /&gt;                 **************    &lt;br /&gt;&lt;br /&gt;1.How do you create an instance of the form&lt;br /&gt;&lt;br /&gt;2.What are the uses of the forms collection&lt;br /&gt;&lt;br /&gt;3.What is the sequence in which the events in the form will trigger&lt;br /&gt;&lt;br /&gt;4.What can you do with your Popup menus&lt;br /&gt;&lt;br /&gt;•Dynamically create the menus •Deleting the menus created if not needed&lt;br /&gt;&lt;br /&gt;5. What property cannot be send for the menus in the run time shortcut keys cannot be set in run time&lt;br /&gt;&lt;br /&gt;6 .How do you dynamically create a menu&lt;br /&gt;load mnufile(1)&lt;br /&gt;7. Drophighlight property of the treeview when it is used&lt;br /&gt;&lt;br /&gt;It is used along with the hittest property to highlight the control when ole&lt;br /&gt;controls are dropped on it&lt;br /&gt;8. If you want to create a hierarchical view for the world wide web what&lt;br /&gt;control will you use&lt;br /&gt;Treeview&lt;br /&gt;9. What property will you use in the toolbar control to code for the events&lt;br /&gt;button.index&lt;br /&gt;10. What property should you use for showing text in the status bar&lt;br /&gt;statusbar1.panales(1).text="processing...."&lt;br /&gt;11.what are the disadvantages of using the implements keyword&lt;br /&gt;12. If you want to merge the menu option of the object along with the menu&lt;br /&gt;option of the form in which the object is placed what property should you use&lt;br /&gt;13.When can you add watch expressions in the watch planes(very confusing&lt;br /&gt;question) some of the options where any time any time when you do not have&lt;br /&gt;a modal window only during design mode&lt;br /&gt;14.What are the advantages of using the watch window(Check box)&lt;br /&gt;15.What will be there in the local window&lt;br /&gt;•all the variables in the application •all the variables in the modules&lt;br /&gt;•all the variables in the procedure •all the variables in the procedure scope&lt;br /&gt;&lt;br /&gt;        Some Questions&lt;br /&gt;        **************&lt;br /&gt;&lt;br /&gt;1. What is the DBGrids default RecordSoruce type&lt;br /&gt;2. I have set one option buttons HelpcontextID to 0, and the user press F1&lt;br /&gt;what will happen?&lt;br /&gt;If HelpContextID is set to 0, then Visual Basic looks in the HelpContextID&lt;br /&gt;of the object's container, and then that object's container, and so on.&lt;br /&gt;If a nonzero current context number can't be found, the F1 key is ignored.&lt;br /&gt;3. What object do i use for the ShowHelp metod&lt;br /&gt;Before you use the ShowHelp method, you must set the HelpFile and HelpCommand&lt;br /&gt;properties of the CommonDialog control to one of their appropriate constants&lt;br /&gt;or values. Otherwise, Winhlp32.exe doesn't display the Help file.&lt;br /&gt;4. What object is used if i want to change label1 on usercontrol1background&lt;br /&gt;color?&lt;br /&gt;5. What limitations has Implenents keyword (Choose 2)?&lt;br /&gt;The Implements statement can't appear in a standard module. A type library&lt;br /&gt;containing abstract interfaces provides a reference point for both implementing&lt;br /&gt;and using interfaces. In order to implement an interface, you must use the&lt;br /&gt;References dialog box to set a reference to the type library. This is because&lt;br /&gt;the type library contains the information required to specify the arguments&lt;br /&gt;and return types of the interface's members.&lt;br /&gt;In similar fashion, any application that uses objects which have implemented&lt;br /&gt;an abstract interface must also have a reference to the type library that&lt;br /&gt;describes the interface. Information about implemented interfaces cannot be&lt;br /&gt;included in the type libraries of components, because there is no way to&lt;br /&gt;resolve naming conflicts.&lt;br /&gt;6. ActiveX and errors. How to use Err.Rasierror&lt;br /&gt;a)Raise method of the Err object to raise errors in a client application that&lt;br /&gt;calls methods provided by your component.&lt;br /&gt;7. ActiveX component distrubution. How to this the fastes way?&lt;br /&gt;a)The Setup Wizard will create a .cab file, known as the primary .cab file,&lt;br /&gt;which contains the following:&lt;br /&gt;The project components, such as the ActiveX control, ActiveX DLL, or&lt;br /&gt;ActiveX EXE.&lt;br /&gt;The .inf file, which contains links to other .cab files that contain Visual&lt;br /&gt;Basic support files and controls, as well as other information, such as&lt;br /&gt;whether the control is safe for scripting and safe for initialization and&lt;br /&gt;registry information as defined by the user. This file replaces the Setup.lst&lt;br /&gt;file that the Setup Wizard creates in the standard setup. Reserved space for&lt;br /&gt;digital signatures.&lt;br /&gt;All files that are not in other (secondary) .cab files.&lt;br /&gt;Secondary .Cab Files&lt;br /&gt;For ActiveX control projects, ActiveX EXEs, and ActiveX DLLs, all run-time&lt;br /&gt;components such as Msvbvm50.dll, individual controls, Data Access Objects&lt;br /&gt;(DAO), and Remote Data Objects (RDO) are packaged into separate .cab files,&lt;br /&gt;digitally signed by Microsoft, and placed on the Microsoft Website. You can&lt;br /&gt;choose to link your files to the .cab files on the Microsoft Web site, or you&lt;br /&gt;can download local copies of them.&lt;br /&gt;The benefit of using secondary .cab files from an Web site are:&lt;br /&gt;You do not need to distribute all of the .cab files required by your&lt;br /&gt;application. The only file you need to distribute is the primary .cab file.&lt;br /&gt;The .inf file within the primary .cab file points to the Microsoft Web site&lt;br /&gt;and downloads the necessary .cab files based on the needs of the end user.&lt;br /&gt;They provide an efficient means of delivering updates to your product.&lt;br /&gt;&lt;br /&gt;If you cannot or do not want your application setup to require a connection&lt;br /&gt;to the Internet, you may place the secondary .cab files on a server within&lt;br /&gt;your intranet. An intranet allows for faster downloading while allowing users&lt;br /&gt;to remain on secured network.&lt;br /&gt;8. Add watch. What is the meaning of the Context group?&lt;br /&gt;a)Sets the scope of variables watched in the expression. Use if you have&lt;br /&gt;variables of the same name with different scope. You can also restrict the&lt;br /&gt;scope of variables in watch expressions to a specific procedure or to a&lt;br /&gt;specific form or module, or you can have it apply to the entire application&lt;br /&gt;by selecting All Procedures and All Modules. Visual Basic can evaluate a&lt;br /&gt;variable in a narrow context more quickly.&lt;br /&gt;9. What does locales show in different contexts?&lt;br /&gt;10. What will be shown when this code is executed?&lt;br /&gt;Private Sub Command1_Click()&lt;br /&gt;Command2.Value = True&lt;br /&gt;End Sub&lt;br /&gt;Private Sub Command2_Click()&lt;br /&gt;Command1.Value = True&lt;br /&gt;End Sub&lt;br /&gt;Out of Stack Space&lt;br /&gt;11. In what order does a form go trough and in what order?&lt;br /&gt;Initilize, Load, Rezise, Paint?&lt;br /&gt;12. Load controls with Load Statement and index&lt;br /&gt;Load object(index%)&lt;br /&gt;Unload object(index%)&lt;br /&gt;13. What will happen if user presses command2?&lt;br /&gt;Sub Mysub()&lt;br /&gt;   Static intNum As Integer&lt;br /&gt;   If intNum &lt;= 4 Then&lt;br /&gt;      Exit Sub&lt;br /&gt;   Else&lt;br /&gt;      intNum = intNum + 1&lt;br /&gt;      Mysub&lt;br /&gt;   End If&lt;br /&gt;End Sub&lt;br /&gt;Private Sub Command2_Click()&lt;br /&gt;   Mysub&lt;br /&gt;End Sub&lt;br /&gt;The code will run OK&lt;br /&gt;14. How to declare av DLL with a C Char datatype?&lt;br /&gt;a)ByVal variable As Byte&lt;br /&gt;15. How to use the Form collection?&lt;br /&gt;a)Dim a As Form&lt;br /&gt;For Each a In Forms&lt;br /&gt;   MsgBox a.Caption&lt;br /&gt;Next&lt;br /&gt;16. Learn TreeView and Drag and drop, OLE dragover event&lt;br /&gt;&lt;br /&gt;        Some Questions&lt;br /&gt;        **************&lt;br /&gt;&lt;br /&gt;1)What code will have the most to gain on to be compiled to Native Code?&lt;br /&gt;•Code that uses windows API •Codet that has much String functions&lt;br /&gt;•Code that manipulates objects •Code that have complex Finincal calculations&lt;br /&gt;(*)&lt;br /&gt;2)What elements exists in Conditional Compiling&lt;br /&gt;a)Litera Expressions&lt;br /&gt;3)What event can handle when a user presess F2&lt;br /&gt;a)Key Down and Key Up&lt;br /&gt;4.How to debugg an .OCX (Its an in-process DLL) with an project group (3 Q)&lt;br /&gt;Why are an user control dimmed on the toolbar?&lt;br /&gt;a)The user control designer has to be closed&lt;br /&gt;5)When can you add watch variables?&lt;br /&gt;a)In Break and design mode&lt;br /&gt;6)Where do you define conditional compiling variables?&lt;br /&gt;a)Project options and VB.EXE&lt;br /&gt;Registry Settings i saved in HKEY_USERS&lt;br /&gt;7)What project types can have ActiveX documents?&lt;br /&gt;All that can be an container&lt;br /&gt;8)When to use GetObject and Create Objects?&lt;br /&gt;9)Where and why to use Friend metods and properties &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        My set of exam questions&lt;br /&gt;        ************************&lt;br /&gt;&lt;br /&gt;1. which property sets the value to indicate the display of a lengthy&lt;br /&gt;operation?&lt;br /&gt;Value&lt;br /&gt;2)Dragover event of form1 to change bg color of label 1 to red/source.color&lt;br /&gt; =vbred&lt;br /&gt;3)Trap a function key&lt;br /&gt;a)keydown&lt;br /&gt;4)To allow numeric digit only ina txt box which is unbound?&lt;br /&gt;a)keypress&lt;br /&gt;5)Prpperty to access buttons of toolbar?&lt;br /&gt;a)Key and Index&lt;br /&gt;6) Inserting text to statusbar SBI second panel ?&lt;br /&gt;sb1.panels(2).text = "....printing"&lt;br /&gt;7)default recordset&lt;br /&gt;dynaset type recordset&lt;br /&gt;8)lokedits = false&lt;br /&gt;optimistic locking&lt;br /&gt;9)pass an empty valu&lt;br /&gt;a)byval 0&amp;amp; byref vbnullstring&lt;br /&gt;10)which 2 projects contain ActiveX documents&lt;br /&gt;a)Active X.exe and activex.dll&lt;br /&gt;11)activex.dll to multithread&lt;br /&gt;a)activex.exe (convert)&lt;br /&gt;12)when helpcontextid =0 for an object conatined in a frame where does visual basic look for help?&lt;br /&gt;In the controls container&lt;br /&gt;13)what code will gain from being compiled as native code?&lt;br /&gt;a)finacial calculations&lt;br /&gt;14)what cannot be done when an internet control is packaged?&lt;br /&gt;a)write from registry,reading from registry.&lt;br /&gt;15)benefits of form collection&lt;br /&gt;a)Standardised mechanism for for tracking multiple instances of a form&lt;br /&gt;unloading all forms is faster.&lt;br /&gt;&lt;br /&gt;            Some Questions&lt;br /&gt;            **************&lt;br /&gt;&lt;br /&gt;1.If you want to install your Visual Basic application in other computer,how&lt;br /&gt;do you find out about the components that are registered in that computer?&lt;br /&gt;a)REGSRV32.EXE&lt;br /&gt;2.How can you build ActiveX components for Internet distribution?&lt;br /&gt;a)Use the Application Setup Wizard and pick the appropriate options.&lt;br /&gt;3.What type of files does the Setup Wizard generates for Internet&lt;br /&gt;download setup?&lt;br /&gt;a)*.CAB files.&lt;br /&gt;4.Know all elements shown in the Add Watch Window (Debugging)&lt;br /&gt;5.Know all elements shown in the Locals Window (Debugging)&lt;br /&gt;6.Know allpossible type of files that can you register by using REGSRV32.EXE.&lt;br /&gt;(i.e.: .DLL, .OCX, etc.)&lt;br /&gt;7.How can you test the unload behavior of an in-process (ActiveX) DLL&lt;br /&gt;component?&lt;br /&gt;a)You can add a standard EXE project to the ActiveX DLL¦s project group, and&lt;br /&gt;test the in-process component within a single instance of Visual Basic.&lt;br /&gt;8.How can you debug an (ActiveX) out-of-process component?&lt;br /&gt;a)To test an ActiveX EXE, you must run the component within one instance of&lt;br /&gt;Visual Basic,and run the test application in a second instance of VisualBasic.&lt;br /&gt;9.Know all the options available within the "Compile" tab in the Project Properties&lt;br /&gt;when making a new project. (i.e.: Compile to Native Code -&gt; Favor Pentium Pro&lt;br /&gt;(tm), Advanced Optimizations -&gt; Remove Integer Overflow Checks, etc.)&lt;br /&gt;10.Variable a is in Procedure A. In the Locals Window we observe its current&lt;br /&gt;value. Then you step into to Procedure B and variable a shows a message "out&lt;br /&gt;of context". What does it mean? Variable a was local to Procedure A (neither&lt;br /&gt;public nor static).&lt;br /&gt;11.One question on conditional compilation to choose the right construct&lt;br /&gt;(learn the syntax for #ifdef #elseif #endif)&lt;br /&gt;12.There is a www server application that uses ActiveX controls you developed&lt;br /&gt;.When the application page is browsed with IE it does not show the ActiveX&lt;br /&gt;control. What may be happening?&lt;br /&gt;a)Options in the Application Setup Wizard were not used correctly.&lt;br /&gt;13.Which (2) of the following make a safe ActiveX scripting control for&lt;br /&gt;www applications&lt;br /&gt;[ ] Prompt for a password&lt;br /&gt;[ ] Save to a File&lt;br /&gt;[X] Get information from registry&lt;br /&gt;[X] Save information to registry.&lt;br /&gt;14.What options (switches) should you select in order to optimize performance&lt;br /&gt;for numeric processing while the compiler relies on arguments passed by&lt;br /&gt;reference.&lt;br /&gt;[ ] Assume No Aliasing&lt;br /&gt;[ ] Optimizing for Small Code&lt;br /&gt;[X] Disable Visual Basic Floating Point Error Checking&lt;br /&gt;[X] Remove Safe Pentium FDIV Checks&lt;br /&gt;15.You have Form1 where you drag and place a label named Label1. Pick the&lt;br /&gt;correct line of code that changes the background color of Label1.&lt;br /&gt;16.There is Form1 that has Object1. How can you combine the menu controls of&lt;br /&gt;Object1 in Form1? Using a pop-up menu at run-time. Another option could be to&lt;br /&gt;set the NegociateMenu property of Form1 to true.&lt;br /&gt;17.You set a form with AutoRedraw = False. You have a command button, an&lt;br /&gt;image control, a draw made by the PSET instruction, and a text that uses&lt;br /&gt;the PRINT method. If the form is minimized and then restored, there are two&lt;br /&gt;elements that are going to be di&lt;br /&gt;The Command Button and the Image Control 18.If you want to display a&lt;br /&gt;hierarchical structure of a Web Site, which of the following controls you&lt;br /&gt;should use?&lt;br /&gt;[ ] outline&lt;br /&gt;[ ] listbox&lt;br /&gt;[ ] listview&lt;br /&gt;[X] treeView&lt;br /&gt;19.What can you do with a dynamic menu?:&lt;br /&gt;[ ] You can add function keys to it&lt;br /&gt;[X] You can add pop-up menus to it&lt;br /&gt;[X] You can deleted it after creating it&lt;br /&gt;[ ] You can create it from the MenuEditor&lt;br /&gt;20.Know the DropHighLight property of TreeView.&lt;br /&gt;The DropHighLight property is used to do drag and drop operations in a&lt;br /&gt;TreeView.&lt;br /&gt;21.Characteristics of the DragOver Event.&lt;br /&gt;Used for drag and drop operations with forms, and other objects as pictures.&lt;br /&gt;22.If you want to offer an option in a help menu for users to access your&lt;br /&gt;Web Site, what ActiveX Document should you use?:&lt;br /&gt;[ ] Automation&lt;br /&gt;[ ] WinSock&lt;br /&gt;[X] Hyperlink&lt;br /&gt;[ ] ActiveX component&lt;br /&gt;23.Know the function and syntax of Param Array&lt;br /&gt;24.Know all about how to implement HelpFiles in an application&lt;br /&gt;25.If we have an ActiveX Component that connects to a database, how can it&lt;br /&gt;be notified if the 
