为 VB.NET 项目设置项目默认值,以便控件的默认 Modifiers 属性为 Private

发布于 2024-08-31 12:40:10 字数 261 浏览 4 评论 0原文

是否可以为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

虐人心 2024-09-07 12:40:10

可以构建一个插件来执行此操作。 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文