{"id":5905,"date":"2015-03-22T15:09:09","date_gmt":"2015-03-22T07:09:09","guid":{"rendered":"http:\/\/www.vbtutor.net\/?page_id=5905"},"modified":"2018-06-22T16:21:30","modified_gmt":"2018-06-22T08:21:30","slug":"visual-basic-2015-lesson-6-list-box-combo-box","status":"publish","type":"page","link":"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-6-list-box-combo-box\/","title":{"rendered":"Visual Basic 2015 Lesson 6: List Box and Combo Box"},"content":{"rendered":"<h3 style=\"text-align: center;\"><strong><a title=\"visual basic 2015 lesson 5\" href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-5-working-controls\/\">[Lesson 5]<\/a>&lt;&lt;<a title=\"visual basic 2015 tutorial\" href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-tutorial\/\">[Contents]<\/a>&gt;&gt;<a title=\"visual basic 2015 Lesson 7\" href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-7-working-picture-box\/\">[Lesson 7]<\/a><\/strong><\/h3>\n<p>In the previous lesson, we have just learned how to work with text boxes and labels in Visual Basic 2015. In this lesson,we shall learn two more important controls, the list box and the combo box. Both controls are used to display a list of items. However, they differ slightly in the ways they display the items. The list box displays the items all at once in a text area whilst combo box displays only one item initially and the user needs to click on the handle of the combo box to view the items in a drop-down list.<\/p>\n<p><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"4768455349\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h3><strong>6.1 List Box<\/strong><\/h3>\n<p>The function of the List Box in visual basic 2015 is to display a list of items where the user can click and select the items from the list. Items can be added at design time and at runtime. The items can also be removed at design time and also at runtime.<\/p>\n<h4><strong>6.1.1 Adding Items to a List Box<\/strong><\/h4>\n<p>To demonstrate how to add items at design time, start a new project and insert a list box on the form. Right-click on the list box to access the properties window. Next, click on collection of the Item property, you will be presented with String Collection Editor whereby you can enter the items one by one by typing the text and press the Enter key, as shown in Figure 6.1<\/p>\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5926\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.1.jpg\" alt=\"vb2015_fig6.1\" width=\"570\" height=\"363\" srcset=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.1.jpg 570w, https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.1-300x191.jpg 300w\" sizes=\"auto, (max-width: 570px) 100vw, 570px\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><strong>Figure 6.1<\/strong><\/p>\n<p>After clicking on the OK button, the items will be displayed in the list box, as shown in Figure 6.2<\/p>\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5927\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.2.jpg\" alt=\"vb2015_fig6.2\" width=\"300\" height=\"300\" srcset=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.2.jpg 300w, https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.2-150x150.jpg 150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><strong>Figure 6.2<\/strong><\/p>\n<p>In Visual Basic 2015, Items can also be\u00a0added at runtime using the\u00a0<b>Add( ) method<\/b>. Before we proceed further, we need to know that Visual Basic 2015 is a full-fledged object-oriented programming language. Therefore, visual basic 2015 comprises objects. All objects have methods and properties, and they can are differentiated and connected by a hierarchy. For a list box, Item is an object subordinated to the object ListBox. Item comprises a method called Add() that is used to add items to the list box. To add an item to a list box, you can use the following syntax:<\/p>\n<p><strong>ListBox.Item.Add(\u201cText\u201d)<\/strong><\/p>\n<p>For example, if you wish to add a new item to ListBox1 above, you can key-in the following statement<\/p>\n<pre style=\"font-size: 110%;\">Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load\r\nListBox1.Items.Add(\u201cVisual Studio 2015\u201d)\r\nEnd Sub\r\n<\/pre>\n<p>The item \u201cVisual \u00a0Studio 2015\u201d will be added to the end of the list, as shown in Figure 6.3<\/p>\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5928\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.3.jpg\" alt=\"vb2015_fig6.3\" width=\"300\" height=\"340\" srcset=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.3.jpg 300w, https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.3-265x300.jpg 265w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><strong>Figure 6.3<\/strong><\/p>\n<p>You can also allow the user to add their own items using the <strong>InputBox<\/strong> function. To add this capability, insert a button at design time and change its text to Add Item. Click on the button and enter the following statements in the code window:<\/p>\n<pre style=\"font-size: 110%;\">Private Sub BtnAdd_Click(sender As Object, e As EventArgs) Handles Button1.Click<\/pre>\n<p style=\"padding-left: 30px;\">Dim myitem myitem = InputBox(\u201cEnter your Item\u201d) ListBox1.Items.Add(myitem)<\/p>\n<p>End Sub<\/p>\n<p>* The keyword Dim is to declare the variable myitem. You will learn more about Dim and variables in coming lessons<\/p>\n<p>Run the program and click on the Add item button will bring up an input box where the user can key in the item he or she wants to add to the list, as shown in Figure 6.4<\/p>\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5929\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.4.jpg\" alt=\"vb2015_fig6.4\" width=\"369\" height=\"159\" srcset=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.4.jpg 369w, https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.4-300x129.jpg 300w\" sizes=\"auto, (max-width: 369px) 100vw, 369px\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><strong>Figure 6.4<\/strong><\/p>\n<h4><strong>6.1.2 Deleting Items from a List Box<\/strong><\/h4>\n<p>To delete items at design time, simply open the String Collection Editor and delete the items line by line or all at once using the Delete key.<\/p>\n<p>To delete an item at runtime, you can use the <strong>Remove<\/strong> method in the following syntax:<\/p>\n<p><strong>ListBox1.Items.Remove(\u201ctext\u201d)<\/strong><\/p>\n<p>It is illustrated in the following example:<\/p>\n<pre style=\"font-size: 110%;\">Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load\r\nListBox1.Items.Remove(\u201cVisual Basic 6\u201d)\r\nEnd Sub<\/pre>\n<p>The item \u201cVisual Basic 6\u201d will be removed after running the program. You can also let the user choose which item to delete.<\/p>\n<p>You can also allow the user to delete\u00a0their own items using the <strong>InputBox<\/strong> function. To add this capability, insert a button at design time and change its text to Delete\u00a0Item. Click on the button and enter the following statements in the code window:<\/p>\n<pre style=\"font-size: 110%;\">Private Sub BtnDelete_Click(sender As Object, e As EventArgs) Handles Button1.Click\r\nDim myitem\r\nmyitem = InputBox(\u201cEnter your Item for Deletion\u201d)\r\nListBox1.Items.Remove(myitem)\r\nEnd Sub\r\n<\/pre>\n<p>To clear all the items at once, use the clear method, as illustrated in the following example. In this example, add a button and label it \u201cClear Items\u201d<\/p>\n<pre style=\"font-size: 110%;\">Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button2.Click\r\nListBox1.Items.Clear()\r\nEnd Sub\r\n<\/pre>\n<p><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"4768455349\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h2>\u00a06.2 Combo Box<\/h2>\n<p>In Visual Basic 2015, the function of the Combo Box is also to present a list of items where the user can click and select the items from the list. However, the user needs to click on the handle(small arrowhead) on the right of the combo box to see the items which are presented in a drop-down list.<\/p>\n<p><strong>6.2.1 Adding Items to a Combo Box<\/strong><\/p>\n<p>In order to add items to the list at design time, you can also use the String Collection Editor. You will have\u00a0to type an item under the text property in order to display the default item at runtime. The following is the runtime interface:<\/p>\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5930\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.5.jpg\" alt=\"vb2015_fig6.5\" width=\"300\" height=\"300\" srcset=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.5.jpg 300w, https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.5-150x150.jpg 150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><strong>Figure 6.5<\/strong><\/p>\n<p>After clicking the handle of the right side of the combo box, the user will be able to view all the items, as shown in Figure 6.6<\/p>\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5931\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.6.jpg\" alt=\"vb2015_fig6.6\" width=\"300\" height=\"300\" srcset=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.6.jpg 300w, https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.6-150x150.jpg 150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><strong>Figure 6.6<\/strong><\/p>\n<p>Besides, you may add items using the\u00a0<b>Add() method<\/b>. For example, if you wish to add an item to Combo box 1, you can key in the following statement<\/p>\n<pre style=\"font-size: 110%;\">Private Sub BtnAdd_Click(sender As Object, e As EventArgs) Handles Button1.Click\r\nComboBox1.Items.Add(\u201cVisual Studio 2015\")\r\nEnd Sub\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>You can also allow the user to add their own items using the InputBox function, as follows:<\/p>\n<pre style=\"font-size: 110%;\">Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click\r\nDim myitem\r\nmyitem = InputBox(\u201cEnter your Item\u201d)\r\nComboBox1.Items.Add(myitem)\r\nEnd Sub\r\n<\/pre>\n<p><strong>6.2.2 Removing Items from a Combo Box<\/strong><\/p>\n<p>To delete items at design time, simply open the String Collection Editor and delete the items line by line or all at once using the Delete key.<\/p>\n<p>To delete the items at runtime, you can use the\u00a0<strong>Remove<\/strong>\u00a0method, as illustrated in the following example. In this example, add a second button and label it \u201cRemove Items\u201d. Click on this button and enter the following code:<\/p>\n<pre style=\"font-size: 110%;\">Private Sub Delete_Click(sender As Object, e As EventArgs) Handles Button2.Click\r\nComboBox1.Items.Remove(\u201cVisual Basic 6\u201d)\r\nEnd Sub\r\n<\/pre>\n<p>The item \u201cVisual Basic 6&#8243; will be removed after running the program. You can also let the user choose which item to delete.<\/p>\n<p>To clear all the items at once, use the clear method, as illustrated in the following example. In this example, add a button and label it \u201cClear Items\u201d<\/p>\n<pre style=\"font-size: 110%;\">Private Sub Btn_Clr_Click(sender As Object, e As EventArgs) Handles Button2.Click\r\nComboBox1.Items.Clear()\r\nEnd Sub\r\n<\/pre>\n<div><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<!-- vb2015 tutorial matched content --><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block;\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"5090773108\" data-ad-format=\"autorelaxed\"><\/ins><br \/>\n<script>\n(adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/div>\n<h3 style=\"text-align: center;\"><strong><a title=\"visual basic 2015 lesson 5\" href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-5-working-controls\/\">[Lesson 5]<\/a>&lt;&lt;<a title=\"visual basic 2015 tutorial\" href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-tutorial\/\">[Contents]<\/a>&gt;&gt;<a title=\"Visual Basic 2015 Lesson 7\" href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-7-working-picture-box\/\">[Lesson 7]<\/a><\/strong><\/h3>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[Lesson 5]&lt;&lt;[Contents]&gt;&gt;[Lesson 7] In the previous lesson, we have just learned how to work with text boxes and labels in Visual Basic 2015. In this lesson,we shall learn two more important controls, the list box and the combo box. Both controls are used to display a list of items. However, they differ slightly in the &hellip; <a href=\"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-6-list-box-combo-box\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Visual Basic 2015 Lesson 6: List Box and Combo Box<\/span><\/a><\/p>\n","protected":false},"author":23013,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-5905","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Visual Basic 2015 Lesson 6: List Box and Combo Box - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB<\/title>\n<meta name=\"description\" content=\"This article illustrates how to write code for list box and combo box in Visual Basic 2015\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson6.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Visual Basic 2015 Lesson 6: List Box and Combo Box - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\" \/>\n<meta property=\"og:description\" content=\"This article illustrates how to write code for list box and combo box in Visual Basic 2015\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson6.html\" \/>\n<meta property=\"og:site_name\" content=\"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Vbtutor\" \/>\n<meta property=\"article:modified_time\" content=\"2018-06-22T08:21:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.1.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@liewvk\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-6-list-box-combo-box\/\",\"url\":\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson6.html\",\"name\":\"Visual Basic 2015 Lesson 6: List Box and Combo Box - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\",\"isPartOf\":{\"@id\":\"https:\/\/www.vbtutor.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson6.html#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson6.html#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.1.jpg\",\"datePublished\":\"2015-03-22T07:09:09+00:00\",\"dateModified\":\"2018-06-22T08:21:30+00:00\",\"description\":\"This article illustrates how to write code for list box and combo box in Visual Basic 2015\",\"breadcrumb\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson6.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson6.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson6.html#primaryimage\",\"url\":\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.1.jpg\",\"contentUrl\":\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.1.jpg\",\"width\":570,\"height\":363},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson6.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vbtutor.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Visual Basic 2015 Lesson 6: List Box and Combo Box\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vbtutor.net\/#website\",\"url\":\"https:\/\/www.vbtutor.net\/\",\"name\":\"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\",\"description\":\"Start learning Visual Basic from beginner to advanced. Includes VB.NET, VBA, and classic VB tutorials for students and professionals.\",\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Visual Basic 2015 Lesson 6: List Box and Combo Box - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","description":"This article illustrates how to write code for list box and combo box in Visual Basic 2015","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson6.html","og_locale":"en_US","og_type":"article","og_title":"Visual Basic 2015 Lesson 6: List Box and Combo Box - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","og_description":"This article illustrates how to write code for list box and combo box in Visual Basic 2015","og_url":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson6.html","og_site_name":"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","article_publisher":"https:\/\/www.facebook.com\/Vbtutor","article_modified_time":"2018-06-22T08:21:30+00:00","og_image":[{"url":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.1.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@liewvk","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-6-list-box-combo-box\/","url":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson6.html","name":"Visual Basic 2015 Lesson 6: List Box and Combo Box - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","isPartOf":{"@id":"https:\/\/www.vbtutor.net\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson6.html#primaryimage"},"image":{"@id":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson6.html#primaryimage"},"thumbnailUrl":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.1.jpg","datePublished":"2015-03-22T07:09:09+00:00","dateModified":"2018-06-22T08:21:30+00:00","description":"This article illustrates how to write code for list box and combo box in Visual Basic 2015","breadcrumb":{"@id":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson6.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson6.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson6.html#primaryimage","url":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.1.jpg","contentUrl":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig6.1.jpg","width":570,"height":363},{"@type":"BreadcrumbList","@id":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson6.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vbtutor.net\/"},{"@type":"ListItem","position":2,"name":"Visual Basic 2015 Lesson 6: List Box and Combo Box"}]},{"@type":"WebSite","@id":"https:\/\/www.vbtutor.net\/#website","url":"https:\/\/www.vbtutor.net\/","name":"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","description":"Start learning Visual Basic from beginner to advanced. Includes VB.NET, VBA, and classic VB tutorials for students and professionals.","inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/5905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/users\/23013"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/comments?post=5905"}],"version-history":[{"count":57,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/5905\/revisions"}],"predecessor-version":[{"id":13022,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/5905\/revisions\/13022"}],"wp:attachment":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/media?parent=5905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/categories?post=5905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/tags?post=5905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}