I still think you need to scrap everything you have and start over.
I don't believe you really understand what a class is, and that first one I posted was not a very good representation of a real class.
See below for a simple class for writing to a web page - I say "writing to a web page" because one of the documents methods calls the
System.Web.HTTPContext.Current.Response.Write method, which is specific to ASP.Net.
Friend Class myHelloWorldClass 'Private member variable accessible only 'to the class Private m_sGreeting As String 'Accessor method, controlled aliased 'READ/WRITE access to your class variable Public Property Message() As String Get Return m_sGreeting End Get Set(ByVal sMsg As String) m_sGreeting = sMsg End Set End Property 'The constructor, initialization for 'your object Protected Friend Sub New() m_sGreeting = "Hello world!" End Sub 'over loaded constructor Protected Friend Sub New(ByVal sMsg As String) Me.New() m_sGreeting = sMsg End Sub 'Public class method, something this 'class can do for you. Protected Friend Sub Greet() HttpContext.Current.Response.Write(m_sGreeting) End Sub 'Clean up Protected Overrides Sub Finalize() End Sub End Class