为 VB.NET 项目设置项目默认值,以便控件的默认 Modifiers 属性为 Private
是否可以为 VB.NET winforms 项目设置项目默认值,以便添加到 winforms 的控件的默认修饰符为 Private(不是 Friend)?
我知道属性窗口中有一个“修饰符”属性,因此我可以为每个单独的控件设置它...但是我想更改项目,因此从现在开始我自己和其他开发人员必须具体决定从私人的。 (我强烈反对他们这样做)。
我相信没有办法做到这一点,但不久前在另一个论坛上有人提到可以使用加载项(但没有命名加载项或从哪里获取它)。
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).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以构建一个插件来执行此操作。 C# 或 VB.NET
一旦你设置了插件结构,你就可以做到这一点单击按钮(为它们创建一个新按钮)或尝试在添加项目事件中播放它。我仍在寻找是否能为您找到活动。
It could be possible to build an addin to do this. C# or VB.NET
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.