Partial class templates for Picture, TranslucentForm, Theme

Code samples and article discussion

Moderators: Frank Hileman, Anne Szyjan

Partial class templates for Picture, TranslucentForm, Theme

Postby Frank Hileman » Sat Apr 28, 2007 11:03 am

Image

Update: In the released version of 4.1 and 5.1, similar templates are installed by the VG.net installer. You only need these templates if you use version 4.0.

Do you wish to start with partial classes when you do "Add New Item..." and select a Picture or TranslucentForm in Visual Studio 2005? Partial classes put the generated code in a file suffixed with designer.cs. This way your main class file is less cluttered.

Copy these template files to your My Documents\Visual Studio 2005\Templates\ItemTemplates\Visual C# folder (or Visual Basic folder), and you can access them from the "Add New Item.." item.

Alternatively, you can remove the standard VG.net templates in this folder:

Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplates\CSharp\1033

and copy them there instead.

Do not unzip the files: they need to be in a .zip file in order to be recognized by Visual Studio 2005. These are only for version 4.0. Versions 4.1, 5.1, or greater all have templates installed by the installer.

Picture template, C#
Picture template, VB
TranslucentForm template, C#
TranslucentForm template, VB
Theme template, C#(For early releases of VG.net 4.1)
Theme template, VB(For early releases of VG.net 4.1)
User avatar
Frank Hileman
Site Admin
 
Posts: 1396
Joined: Sun Jul 25, 2004 8:16 pm
Location: California

Re: Partial class templates for Picture, TranslucentForm, Th

Postby BCE » Wed Jul 14, 2010 11:21 pm

Hello,

Do you have the corresponding templates for VB?

Thanks,

Bruno.

PS: I'm (still) using VS2005
BCE
 
Posts: 21
Joined: Wed Sep 07, 2005 12:38 pm

Re: Partial class templates for Picture, TranslucentForm, Th

Postby Frank Hileman » Thu Jul 15, 2010 6:27 am

Hello Bruno,

I updated the links. Please note you only need these if you use VG.net version 4.0.

Regards,
User avatar
Frank Hileman
Site Admin
 
Posts: 1396
Joined: Sun Jul 25, 2004 8:16 pm
Location: California

Re: Partial class templates for Picture, TranslucentForm, Th

Postby BCE » Thu Jul 15, 2010 6:29 am

Thanks,

Bruno

PS: We really appreciate the rapidity of your support !
BCE
 
Posts: 21
Joined: Wed Sep 07, 2005 12:38 pm


Return to Samples

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest

cron