Create a template.

  • Thread starter Thread starter Mr. X.
  • Start date Start date
M

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.

Thanks :)
 
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 :)

What is your question exaclty? How do do it?

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.
 
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
 
I have moved the zip file, but still I see it when doing :
Add new item, and see it on "My Templates"
 
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.
 
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 :)
 
Back
Top