PC Review


Reply
Thread Tools Rate Thread

Create a template.

 
 
Mr. X.
Guest
Posts: n/a
 
      3rd Apr 2010
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
 
Reply With Quote
 
 
 
 
Tom Shelton
Guest
Posts: n/a
 
      3rd Apr 2010
On 2010-04-03, Mr. X. <nospam@nospam_please.com> wrote:
> 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.

--
Tom Shelton
 
Reply With Quote
 
Armin Zingler
Guest
Posts: n/a
 
      3rd Apr 2010
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
 
Reply With Quote
 
Mr. X.
Guest
Posts: n/a
 
      29th Apr 2010
How can I remove that template after creating it ?

Thanks

"Armin Zingler" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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


 
Reply With Quote
 
Armin Zingler
Guest
Posts: n/a
 
      30th Apr 2010
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
 
Reply With Quote
 
Mr. X.
Guest
Posts: n/a
 
      30th Apr 2010
I have moved the zip file, but still I see it when doing :
Add new item, and see it on "My Templates"

"Armin Zingler" <(E-Mail Removed)> wrote in message
news:e6Hl5J$(E-Mail Removed)...
> 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


 
Reply With Quote
 
Armin Zingler
Guest
Posts: n/a
 
      30th Apr 2010
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
 
Reply With Quote
 
Mr. X.
Guest
Posts: n/a
 
      30th Apr 2010
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

"Armin Zingler" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you create a template without using an existing template? sheana Microsoft Word New Users 6 29th Jan 2008 06:03 PM
How do I create a new template; not based on another template? =?Utf-8?B?VGFtbHluIFNjaG1laXNzZXI=?= Microsoft Word Document Management 2 2nd Jul 2005 12:08 AM
I want to create a template like invoice template in excel. =?Utf-8?B?UmFodWwgR3VwdGE=?= Microsoft Excel Programming 7 12th May 2005 02:50 AM
create an email template from a word template =?Utf-8?B?YW5l?= Microsoft Access 1 16th Feb 2005 12:26 AM
create a new template based on an other template =?Utf-8?B?YXJvbg==?= Microsoft Frontpage 4 8th Dec 2004 09:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:32 PM.