|
-
November 30th, 2004, 09:12 AM
#1
VB.NET: Create and Apply Basic Classes
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
-
November 30th, 2004, 10:33 PM
#2
Re: VB.NET: Create and Apply Basic Classes
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:
Code:
Public Class Sample
Inherits System.Windows.Forms.Form
Inherits Class1, Class2
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|