title: Call a method of another class in VB.NET
body: <p>I have a method called <em>methtod1</em> defined as:</p>
  <pre><code>Public Sub method1()
      For Each elem In Me.arrayElemWithLogkNull
          Console.WriteLine(elem)
      Next
  End Sub
  </code></pre>
  <p>This method is in a class called <code>XMLClass</code>. So I have the <code>Main</code> class and, there, I want to call the method1 of XMLClass. How am I supposed to do that? I'm trying with this: <code>XMLClass.method1()</code>, but it's not working.</p>