Hi,

In a recent thread something similar to the following was posted as giving the error message "Reference to a non-shared member requires an object reference"

formMain is the startup object

VB Code:
  1. formMain.Text="Testing"

As Me.Text="Testing" is OK and if formMain had been instantiated in a module, with the module Sub Main being the starrtup object, formMain.Text=Testing would have been OK, can anyone please explain why the error message arises? I have never attempted to refer to a form by it's own name from within itself, so I have never noticed this before.