You might not have understood that Friend is another access modifier, next to Public and Private. Instead of "Public Class <name>", you can also write "Friend Class <name>". If you do that, your class will only be visible from within the same project (ClassLibrary1).

What you can also do is make your frmLogin class a nested class inside Class1. If only Class1 uses frmLogin, then you can make the nested class Private to achieve the same effect.

So in summary your options are:

1.
Code:
Friend Class frmLogin
  '...
End Class
2.
Code:
Public Class Class1
   '...

   Private Class frmLogin
      '...
   End Class
End Class