Originally posted by pirate
while playing with classes I got this , it prevent others from creating new instances from Test Class.Private Constructor did it actually not me
VB Code:
  1. Public Class test
  2.  
  3. Private Sub New()
  4. MsgBox("OOOP YOU GOT ME")
  5. End Sub
  6.  
  7. End Class
then you';re gunno get the same error when you use it in your own program too!!
also, I have some classes that have SHARED members and dnot need to be declared at all.