Click to See Complete Forum and Search --> : VB.NET: Create and Apply Basic Classes


toytoy
November 30th, 2004, 08:12 AM
Does anyone know how to create classes and apply it without occur any error correctly...

I find that most of my coding is inside the forms and i am not using any classes at the monent...

thus i find it quite hard if i need to change the coding......i would search all the forms just for the word that i need to change..

Therefore i am eager to change my style of coding and uses classes more instead..

This is quite basic..

Can anyone sent me some useful links, advise or tutorials about that..

Thanks

toytoy
November 30th, 2004, 09:33 PM
I got some questions about the uses of classes...


1)Is it a must to create both the property and methods in the

classes....if i does not uses property often....

can i just declare it inside the form and put all methods

separately to the classes...

2)Can i say that class is somehow act like the function procedure

as it can return the values except that it could be shared to all

forms if i put it in classes....

3) Lastly, how to declare one or multiple classes that i need to

the various forms... I am not sure where the Inherits

should be place... is it

coding:

Code:

Public Class Sample
Inherits System.Windows.Forms.Form
Inherits Class1, Class2

Thanks