|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How To Show Partial Classes as a Hierarchy in Solution Explorer?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? 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 : Show quoteHide quote > 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? 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 : Show quoteHide quote > 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? 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 krishn***@gmail.com wrote: Show quoteHide quote > 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?
More VS2003 to VS2005 questions
difference between imports-implements-inherits Write to an XML file using data from an SQLserver table Master Page Template new line in datagrid cell Calling .Net DLL functions in Excel 2003 ContextMenuStrip newbie script question Dang, trivial problem! tcplistener on multiple addresses |
|||||||||||||||||||||||