title: cannot be indexed because it has no default property error
body: <p>Hello im newer in VB NET.
  So, maybe my question will be seem naive.</p>
  
  <p>VB code:</p>
  
  <pre><code> Public Class InputBox
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)   Handles Button1.Click
  
  Dim a, b, S, p
      a = InputBox("Enter length")
      b = InputBox("Enter width")
      S = a * b                           
      p = a + a + b + b               
    End Sub
  
  End Class
  </code></pre>
  
  <p>in InputBox lines i get this error:</p>
  
  <pre><code>  Class 'LearningVB.InputBox' cannot be indexed because it has no default property 
  </code></pre>
  
  <p>What this error means?</p>
  
  <p>And any idea how can i solve the problem?</p>