Partial Class

G

Guest

Just curios to know why a vb class is referred to as partial class.
Especially after adding this item to your project.

Thanks for any clarifications.
 
S

Scott M.

Partial classes are just what they sond like, just a portion of the class.
While you can make your own custom partial classes, they are generally used
by VS 2005 to separate designer generated code from user code. If you
unhide the project files (in the Solution Explorer), you'll see a
Form1.Designer.vb file, which contains the automatically generated portion
of your form.

Both partial classes combine to form the entire class.
 
G

Guest

Scott M. said:
Partial classes are just what they sond like, just a portion of the class.
While you can make your own custom partial classes, they are generally used
by VS 2005 to separate designer generated code from user code. If you
unhide the project files (in the Solution Explorer), you'll see a
Form1.Designer.vb file, which contains the automatically generated portion
of your form.

Both partial classes combine to form the entire class.
 
G

Guest

Thanks Scott! This makes sense!

Scott M. said:
Partial classes are just what they sond like, just a portion of the class.
While you can make your own custom partial classes, they are generally used
by VS 2005 to separate designer generated code from user code. If you
unhide the project files (in the Solution Explorer), you'll see a
Form1.Designer.vb file, which contains the automatically generated portion
of your form.

Both partial classes combine to form the entire class.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top