Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8869109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:24:21+00:00 2026-06-14T17:24:21+00:00

Like the title says: Is there a way to change the template which VS

  • 0

Like the title says: Is there a way to change the template which VS uses to create the designer file? For example the naming conventions for controls or its events.
I did some research on it, but was only able to find some older posts, which were basically saying “no it’s not”, maybe something has changed in the last couple months or so…

I was able to identify the folder where the default templates for creating the class which is created in the beginning “C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp\Windows Forms\1033”. But I’m still searching for the template which generates the event-methods and so on…

Edit: Sorry if I mixed up my question. As Basti stated, I do look for both, changing the class template (you can do that by changig the template files, found in the VS directory C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates) and also changing the naming convention for generating fields, event-names and so on.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T17:24:22+00:00Added an answer on June 14, 2026 at 5:24 pm

    You’re asking two questions at once.
    For the first question (“Is there a way to change the template which VS uses to create the designer file?”): yes, there is.
    You need to find a file called Form.zip and within this file you find the relating templates.

    The other question you’re asking concerns the naming conventions.
    As for my experience, I don’t know of a way to simply change a template file in order to change naming conventions as these are two different things. Templates just describe the structure or layout of a certain type of code file (Class, Form, …), while naming conventions have nothing to do with the structure of the file itself!

    What I know of are extensions to VS, for example EventHandlerNaming. It lets you customize the standard naming of EventHandlers (internally it is using EventBindingService.CreateUniqueMethodName) – if this extension doesn’t fit your needs, at least you can take a look at the sources and perhaps implement your own conventions.
    Another extension would be ReSharper, which seems to allow you to create own templates and naming conventions, but I haven’t tested it yet.

    EDIT
    The template file you’re looking for (designer file for forms) should be somewhere under C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates.
    For me, I find it in C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\VSTA\ItemTemplates\CSharp\1031\Form.zip (having only VS2010 installed) and within the zip are three files:

    Form.zip
    |-- form.cs
    |-- form.designer.cs
    |-- windowsform.vstemplate
    

    The form.designer.cs is the one you’re looking for, this is the template file the designer uses to generate the designer-files of forms.

    Another solution to this would be to not change the original templates, but to create your very own templates. Advantage of this is – obviously – that you don’t loose the original ones in case you have to fall back to them.
    Information on creating custom templates can be found on MSDN or in tutorial form over on switchonthecode.net. As for the parameters/variables you’re able to use in a template, there is a compilation here.

    EDIT #2
    Regarding the naming conventions you can take a look at StyleCop. At a first glance it looks like CheckStyle for Eclipse, a plugin/an extension enforcing code-styling. Seems like it would perfectly fit your needs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

so basically like the title says is there a way to use NSSortDescriptor to
Like the title says, I'm curious if there is a way to configure the
As title says, is there any way to pull something like this up?: std::set<boost::shared_ptr<MyClass>>
Like the Title says, Is there a way to disable bing's map auto background
Just like the title says, is there a way to check if an object
Like the title says, is there a way to deal with this? I have
Like the title says, I need a way to detect if the build is
So, just like the title says, I need to create an application that gets
as the title says, I would like to create a many-to-one relationship using Fluent
Title says it pretty much all : is there a way to get the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.