By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,047 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

How To Show Partial Classes as a Hierarchy in Solution Explorer?

P: n/a
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 extracting the designer
code
elements from an existing form class into its own partial class, (or
creating new ones) the partial
class is displayed in the Solution Explorer under the Project name,
that is,
at the same level as the file from which it came.

Q: How can the partial file be displayed as a "sub-file" as a newly
created
form fle in VS2005?

Jun 20 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi Erich,

You need to copy the both the .designer and .vb in the project location
and then add only the .vb class asa an existing item, the IDE should
find the partial class and associate it automatically. Make sure you
got the name of the Partial Class correctly.

Cheers
er***@softwaresourcery.com a écrit :
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 extracting the designer
code
elements from an existing form class into its own partial class, (or
creating new ones) the partial
class is displayed in the Solution Explorer under the Project name,
that is,
at the same level as the file from which it came.

Q: How can the partial file be displayed as a "sub-file" as a newly
created
form fle in VS2005?


Jun 20 '06 #2

P: n/a
Hi Erich,

You need to copy the both the .designer and .vb in the project location
and then add only the .vb class as an existing item, the IDE should
find the partial class and associate it automatically. Make sure you
got the name of the Partial Class correctly.

Cheers
er***@softwaresourcery.com a écrit :
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 extracting the designer
code
elements from an existing form class into its own partial class, (or
creating new ones) the partial
class is displayed in the Solution Explorer under the Project name,
that is,
at the same level as the file from which it came.

Q: How can the partial file be displayed as a "sub-file" as a newly
created
form fle in VS2005?


Jun 20 '06 #3

P: n/a
Hi Krishn...@gmail.com

Thanks for the reply, but that didn't work. Following your procedure
resulted in only the .vb file being displayed in the Solution Explorer.
My other partial class files did not display.

I found another post on the ms public dotnetlang.csharp group where, at
least in C#, editing the project file (in his case the csproj file) and
adding the <DependentUpon> tags to the partial file entries allegedly
makes the partial files display under the 'main' file, but I could not
get that procedure to work in VB either. Any other ideas?

Thanks

Erich

kr*******@gmail.com wrote:
Hi Erich,

You need to copy the both the .designer and .vb in the project location
and then add only the .vb class as an existing item, the IDE should
find the partial class and associate it automatically. Make sure you
got the name of the Partial Class correctly.

Cheers
er***@softwaresourcery.com a écrit :
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 extracting the designer
code
elements from an existing form class into its own partial class, (or
creating new ones) the partial
class is displayed in the Solution Explorer under the Project name,
that is,
at the same level as the file from which it came.

Q: How can the partial file be displayed as a "sub-file" as a newly
created
form fle in VS2005?


Jun 21 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.