{"id":734,"date":"2011-03-30T20:20:03","date_gmt":"2011-03-31T01:20:03","guid":{"rendered":"http:\/\/anvil-of-time.com\/wordpress\/?p=734"},"modified":"2021-03-10T20:03:30","modified_gmt":"2021-03-11T01:03:30","slug":"vb-net-any-public-member-or-cannot-be-found-message","status":"publish","type":"post","link":"https:\/\/anvil-of-time.com\/net\/vb-net-any-public-member-or-cannot-be-found-message\/","title":{"rendered":"VB.Net &#8211; &#8220;&#8230;any public member or cannot be found&#8230;&#8221; message"},"content":{"rendered":"<p>So I&#8217;m playing around with Visual Basic in VisualStudio 2010 Express and I&#8217;m planning on importing some code from an old VB file I squirrelled away a while ago.  I create my project and define a new class and then copy\/paste out of the old code.  Intellisence immediately squawks and I get the message &#8220;<strong>The Namespace or type specified in the Imports &#8216;System.Drawing&#8217; doesn&#8217;t contain any public member or cannot be found.<\/strong>&#8221;  Great.<\/p>\n<p>A search in MSDN is fruitless but eventually I stumble upon a <a href=\"http:\/\/social.msdn.microsoft.com\/Forums\/eu\/Vsexpressvb\/thread\/1325cc65-d3ac-4a13-929e-dcb3a1d27325\" target=\"_blank\" rel=\"noopener\">posting<\/a> with exactily what I needed to know.<\/p>\n<p>I need to add a reference to the class library.  Go to Project &gt; Add Reference and choose the .NET tab.  Scroll down to the System.Drawing entry (or whatever you are using) and then add it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I&#8217;m playing around with Visual Basic in VisualStudio 2010 Express and I&#8217;m planning on importing some code from an old VB file I squirrelled away a while ago. I create my project and define a new class and then copy\/paste out of the old code. Intellisence immediately squawks and I get the message &#8220;The&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[47],"tags":[84,48],"_links":{"self":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/734"}],"collection":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/comments?post=734"}],"version-history":[{"count":6,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/734\/revisions"}],"predecessor-version":[{"id":1938,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/734\/revisions\/1938"}],"wp:attachment":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/media?parent=734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/categories?post=734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/tags?post=734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}