Click here to Skip to main content
16,019,427 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is it necessary to create class in vb.net or any other application at professional level?
Posted
Updated 26-Feb-11 4:49am
v3
Comments
Sandeep Mewara 26-Feb-11 7:26am    
Not clear. Edit your question using 'Improve question' and rephrase/update it.

This is .NET: all methods are only in classes and structures, nowhere else.

The analog of "traditional" not-in-the-class function/procedure is a static method: it does not have access to a class instance (if not passed explicitly in an explicit parameter). The whole class can be static if all its members are static.

("Professional" or not, does not matter :-.)

—SA
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 26-Feb-11 12:37pm    
I noticed, there was a deleted post by jim lahey: "At a professional level it is necessary to use C#". I don't know who and why removed this post (it would be certainly off-topic, that's why I don't discuss this in the Answer), but there is something to think about. I would say for any .NET developer it is extremely useful to at least know and understand C# code. If you want someone's help or search for code samples, especially on difficult topic, it's much more likely that good code and help will be in C#. There are many other reasons to know C#.
--SA
You can code directly on the button click: the handler will be added to the Form class anyway.
You do not need to derive a class from a button to handle the click event.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 26-Feb-11 12:00pm    
Still a class, only auto-generated.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900