{"id":4988,"date":"2014-03-30T17:31:14","date_gmt":"2014-03-30T17:31:14","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/further-to-my-question-calling-private-functions-using-combobox-collection-of-common-programming-errors\/"},"modified":"2014-03-30T17:31:14","modified_gmt":"2014-03-30T17:31:14","slug":"further-to-my-question-calling-private-functions-using-combobox-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/further-to-my-question-calling-private-functions-using-combobox-collection-of-common-programming-errors\/","title":{"rendered":"Further to my question: Calling private functions using combobox-Collection of common programming errors"},"content":{"rendered":"<p>You will need to use reflection to achieve this. Reflection is the process by which a computer program can observe and modify its own structure and behavior at runtime<\/p>\n<p>Add <code>Imports System.Reflection<\/code> before your class definition and use this code in you ComboBox1_SelectedIndexChanged method<\/p>\n<pre><code>Dim vrTextNow As String = ComboBox1.Text\n        Dim method As MethodInfo\n        method = Me.GetType().GetMethod(vrTextNow, BindingFlags.NonPublic Or BindingFlags.Instance)\n        method.Invoke(Me, Nothing)\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>You will need to use reflection to achieve this. Reflection is the process by which a computer program can observe and modify its own structure and behavior at runtime Add Imports System.Reflection before your class definition and use this code in you ComboBox1_SelectedIndexChanged method Dim vrTextNow As String = ComboBox1.Text Dim method As MethodInfo method [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4988","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4988"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4988\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}