为VB.NET项目设置项目默认值,以使控件的默认“修饰符"属性为“私有" [英] Set a project default for VB.NET projects so that the default Modifiers property for controls is Private

查看:337
本文介绍了为VB.NET项目设置项目默认值,以使控件的默认“修饰符"属性为“私有"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以为VB.NET winforms项目设置项目默认值,以使添加到winforms的控件的默认修改器为私人"(而非朋友")?

Is it possible to set a project default for VB.NET winforms projects so that the default Modifier for controls added to winforms is Private (not Friend)?

我知道属性窗口中有一个修饰符"属性,因此我可以为每个单独的控件进行设置...但是我想更改项目,所以从现在开始我和其他开发人员必须具体决定更改为私人. (我强烈建议他们不要这样做).

I know there's a "modifiers" property in the properties window so I can set it for each individual control... however I would like to change the project so from now on myself and other developers have to specifically decide to change from private. (Which I would strongly discourage them from doing).

我相信没有办法,但是不久前在另一个论坛上有人提到可以使用外接程序(但没有命名外接程序或在何处获得它).

I believe there is no way of doing this, but on another forum a while ago someone mentioned it would be possible with an add-in (but didn't name the add-in or where to get it).

推荐答案

有可能构建一个插件来做到这一点. C#

It could be possible to build an addin to do this. C# or VB.NET

一旦设置好Addin结构,就可以单击按钮(为它们创建一个新按钮)或尝试在添加项事件中播放它.我仍在寻找是否可以为您找到活动.

Once you have an Addin structure set in place you can do it on a button click (create a new button for them) or try and play it off of an add item event. I am still looking to see if I can find an event for you.

这篇关于为VB.NET项目设置项目默认值,以使控件的默认“修饰符"属性为“私有"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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