title: Accessing a structure of an object of another class
body: <p>I have a class ClassA inside which I create an object (classB_obj) of another class ClassB. 
  How can I access/set values of a structure inside ClassB, using this classB_obj ?
  I'm not familiar with the syntax in vb.net. What I'm trying to do is this</p>
  
  <pre><code>Public ClassA
           Public Sub SomeSub 
                Dim ClassB_obj As New ClassB()   
  
                Dim classB_struct As ClassB.sampleStruct 'The error is **Type ClassB.sampleStruct not defined**
            End Sub
  End ClassA
  
  Public ClassB
  
     Private Structure Struct
         Dim xy As String
         Dim yz As String
     End Structure
  
     Dim sampleStruct As Struct
  
     'Member functions here
   End ClassB
  </code></pre>
  
  <p>The error is <strong>Type ClassB.sampleStruct not defined</strong></p>
  
  <p>Can anybody tell me where I'm going wrong. Newbie to vb.net here and unfamiliar with syntax.
  Thanks a lot</p>