更改基本表单类 [英] change basic form class

查看:53
本文介绍了更改基本表单类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我想在基本类中更改某些表单属性

例如:

我想在Visual Studio中创建一个新项目时,我的所有项目窗体的位置都是中心屏幕,字体是Tahoma ...

我该如何更改?

请帮助我...

Tnks ...

hi all

I want To Change Some Form Property In Basic Class

For Example :

I want when create a new project in visual studio All Of My Project Forms Posation Start Is Center Screen And Font Is Tahoma ...

How Do I This Change ?

Please Help Me ...

Tnks ...

推荐答案

您可以简单地为表单(System.Windows.Forms.Form)的属性FontStartPosition分配新值,请参见 http://msdn.microsoft.com/en-us/library/system.windows.forms .form.aspx [ ^ ].

查看指向MSDN文章的链接,并将其用于您要使用的每种类型,而不是询问此类问题.这堂课有数百名公众成员,那么,您将要对每个要使用的问题提出类似的问题吗?它可能无效. :-)

-SA
You can simply assign new values to the properties Font and StartPosition of the form (System.Windows.Forms.Form), see http://msdn.microsoft.com/en-us/library/system.windows.forms.form.aspx[^].

Look at the link to a MSDN article and used it for each type you want to use instead of asking such questions. This class along has hundreds of public members, so what, are you going to ask a question like that on each one you want to use? It could not be effective. :-)

—SA


如果您希望以自己创建的形式和项目进行这些更改,则可以更改VS用于构造这些模板的模板.
这里有一个提示,告诉您如何进行操作(至少是基础知识):
If you want these changes in very form and project that you create, you can alter the templates that VS uses to construct these.
There is a Tip here which tells you how to do it (the basics, at least) : Adding your items to Visual Studio default files[^]


这篇关于更改基本表单类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆