VB6 creates an instance of the form with the same name (essentially). However in .net it works different.

When you are creating an instance of your form in your sub main, you might be doing this:


Dim frmForm as new formMain

then if you try this

formMain.Text="lkj" you are trying to set the value of a class definition (formMain is the definition) not the actual instance.

The instance is actually frmForm so you would call this instead:

frmForm.Text="ljhkjh"