|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Create a template.In VB.NET (VS 2008),
I want easily create my new class or win-form, and make it as a template, so I can easily use and create new forms / classes based on that template. Thanks :) On 2010-04-03, Mr. X. <nospam@nospam_please.com> wrote:
> In VB.NET (VS 2008), What is your question exaclty? How do do it? > I want easily create my new class or win-form, and make it as a template, > so I can easily use and create new forms / classes based on that template. > > Thanks :) You design your form. Then, you inherit other forms from that form. That's the basic answer. There are things to consider if you want subclasses to handle events or override behavior... But, for the most part it's just a question of inheritance. -- Tom Shelton Am 03.04.2010 05:47, schrieb Mr. X.:
> In VB.NET (VS 2008), As Tom says, or menu File -> Export template:> I want easily create my new class or win-form, and make it as a template, > so I can easily use and create new forms / classes based on that template. http://msdn.microsoft.com/en-us/library/tsyyf0yh.aspx -- Armin How can I remove that template after creating it ?
Thanks :) Show quoteHide quote "Armin Zingler" <az.nospam@freenet.de> wrote in message news:O29moFy0KHA.4168@TK2MSFTNGP02.phx.gbl... > Am 03.04.2010 05:47, schrieb Mr. X.: >> In VB.NET (VS 2008), >> I want easily create my new class or win-form, and make it as a template, >> so I can easily use and create new forms / classes based on that >> template. > > As Tom says, or menu File -> Export template: > http://msdn.microsoft.com/en-us/library/tsyyf0yh.aspx > > -- > Armin Am 29.04.2010 22:24, schrieb Mr. X.:
> How can I remove that template after creating it ? Should be sufficient to remove the Zip file in> My documents\Visual Studio 2008\Templates\ProjectTemplates -- Armin I have moved the zip file, but still I see it when doing :
Add new item, and see it on "My Templates" Show quoteHide quote "Armin Zingler" <az.nospam@freenet.de> wrote in message news:e6Hl5J$5KHA.348@TK2MSFTNGP02.phx.gbl... > Am 29.04.2010 22:24, schrieb Mr. X.: >> How can I remove that template after creating it ? >> > > Should be sufficient to remove the Zip file in > My documents\Visual Studio 2008\Templates\ProjectTemplates > > -- > Armin Am 30.04.2010 12:59, schrieb Mr. X.:
> I have moved the zip file, but still I see it when doing : I've tried it with a project template and it works as described with VS 2008.> Add new item, and see it on "My Templates" I don't know why it doesn't work for you. -- Armin The situation is :
1. I have one solution (sln) with several projects. 2. When I create template, I do this by : File -> Export template ... -> Item template -> selecting the combobox - From which project would you like to create a template? and check the specific project. After that mark the specific file. 3. After exporting the zip folder is on My documents\Visual Studio 2008\Templates\ProjectTemplates, but The solution is on another folder (there is no zip file on the solution and sub-folders). 4. I am choosing from any project on the solution : Add -> New Item, and see the specific templates I have added, even after deleting the zip file (Which is indeed the zip file on My documents\Visual Studio 2008\Templates\ProjectTemplates, since I see they are made when I export a template). Thanks :) Show quoteHide quote "Armin Zingler" <az.nospam@freenet.de> wrote in message news:#YutrOG6KHA.3184@TK2MSFTNGP05.phx.gbl... > Am 30.04.2010 12:59, schrieb Mr. X.: >> I have moved the zip file, but still I see it when doing : >> Add new item, and see it on "My Templates" > > I've tried it with a project template and it works as described with VS > 2008. > I don't know why it doesn't work for you. > > > > -- > Armin |
|||||||||||||||||||||||