I just practiced some encoding and noticed that I was able to use the class instead of the module in VB.NET. So I replaced my module with a class, and I got this error message:
In 'practicevb'.practicevb
no accessible "Main" method with matching signature found.
I made sure that the startup object was set correctly in Properties > Application > Startup Objects .
The error message will disappear if I return it back to the module, but I would like to save it in the class, since I changed the other parts of my code to the class and did not return error messages either.
Class Atic Sub Main() Console.WriteLine("Hello, this proram will calcaulate the quadratic forumla ax^2 + bx + c") Dim Quads As New Quads Quads.Calc() Console.ReadKey() End Sub End Class
source share