473,396 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Partial Class

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.
Jul 24 '07 #1
3 1467
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.
"Michael de Vera" <MS***********@nospam.nospamwrote in message
news:D1**********************************@microsof t.com...
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.

Jul 24 '07 #2


"Scott M." wrote:
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.
"Michael de Vera" <MS***********@nospam.nospamwrote in message
news:D1**********************************@microsof t.com...
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.


Jul 24 '07 #3
Thanks Scott! This makes sense!

"Scott M." wrote:
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.
"Michael de Vera" <MS***********@nospam.nospamwrote in message
news:D1**********************************@microsof t.com...
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.


Jul 24 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Lionel B | last post by:
Greetings. The following code compiles ok and does what I'd expect it to do: ---------- START CODE ---------- // test.cpp
9
by: Gomaw Beoyr | last post by:
Two question about the "partial classes" (in the next wersion of ..NET). Question 1 ========== Will partial classes (in the next version of C#) have to be declared "partial" in ALL places. ...
16
by: pawel.pabich | last post by:
Hajo, I would like to have 2 my own partial classes. For example: Default.aspx.cs Default2.aspx.cs and they both will relate to Default.aspx page.
10
by: ptass | last post by:
Hi In asp.net 2.0 an aspx files .cs file is a partial class and all works fine, however, I thought I’d be able to create another class file, call it a partial class and have that compile and...
1
by: Bishoy George | last post by:
In a web application using asp.net 2.0 All my classes are partial classes. - I noticed that partial class cannot be inherited... is that true? - I tried to remove the partial keyword , and I...
9
by: Fat Elvis | last post by:
I'd like to extend some of my Asp.net pages by using Partial Classes. Example ASP.Net Page: public partial class Admin_Customer : System.Web.UI.Page { protected void Page_Load(object sender,...
3
by: erich | last post by:
In VS2005, creating a new form creates the form class and a partial (frm*.designer.vb) class file and displays the partial class beneath the main form frm*.vb, which is great. However, when...
3
by: Lau Lei Cheong | last post by:
A few quick questions: Is there a limitation on how much partial class files we can have for a single class? And can a ASP.NET page file inherit a class from multiple code-behind files? if so,...
2
by: Hiten | last post by:
Is it possible to have more code behind file but that file will have same class in way of partial class, Default Structure I -------------- Homepage.aspx + Homepage.aspx.cs (this .cs file...
10
by: JDeats | last post by:
So I have a class that spans over two partial classes in code, here's an example (do not read much into this, the code is of no practical use, this is just a simple example of where my confusion...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.