Dim objfrmMain as form
objfrmMain = New frmMain
Since form controls are declared with Friend scope in VB.NET, you are probably running into the issue that those controls can only be accessed from code inside the same assembly. The documentation is quite clear about the Friend levels of recognition.
This was first published in May 2003