如何在C#中更改控件的程序默认值 [英] How do I change the program defaults for controls in C#

查看:121
本文介绍了如何在C#中更改控件的程序默认值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Video Studio中打开一个新的C#项目时,程序会打开一个空白表单,背景颜色设置为COntrol颜色。有没有一种方法可以将所有新表单打开,背景颜色设置为Silver?与控件相同,比如将pictureBox控件设置为始终使用Fixed3D的BorderStyle打开?我总是改变这两个,将它们作为默认值而不是每次都要更改它们会很好。

解决方案

项目模板可以帮助你: http://msdn.microsoft.com/en-us/library/tsyyf0yh.aspx [<一个href =http://msdn.microsoft.com/en-us/library/tsyyf0yh.aspxtarget =_ blanktitle =New Window> ^ ]。也请看这个:为经常使用的项目创建Visual Studio表单 [ ^ ]

When I open a new C# project in Video Studio, the program opens a blank form with the background color set to the COntrol color. Is there a way to chnage this so all new forms open with the background color set to Silver instead? Same with controls, say setting the pictureBox control to always open with a BorderStyle of Fixed3D? I always change these two and it would be nice to have them as the defaults instead of having to change them every time.

解决方案

Item templates could help you: http://msdn.microsoft.com/en-us/library/tsyyf0yh.aspx[^]. See this one too: Create Visual Studio forms for items you frequently use[^]


这篇关于如何在C#中更改控件的程序默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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