为什么修改设置为朋友的WinForms? [英] Why is the modifier set to Friend in Winforms?

查看:132
本文介绍了为什么修改设置为朋友的WinForms?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当增加一个新的控制到设计中的WinForms,在控制修改设置为朋友,但默认修饰符是私人(右键单击该属性并重置调整值)。

When adding a new control to the designer in Winforms, the modifier on the control is set to Friend, but the default modifier is Private (right clicking the property and resetting the modifier).

有谁知道为什么吗?

有没有设置来设置修改为默认(私人)?

Is there a setting to set the modifier to default (Private)?

推荐答案

这就是它被选为该VB.Net IDE团队的默认。虽然我不知道这个决定背后的原因,我的猜测是,它是保持兼容的设计经验与VB6。

This is just the default which was chosen by the VB.Net IDE team. While I don't know the reason behind the decision my guess is that it was to maintain a compatible design experience with VB6.

有没有办法,我知道这个值来覆盖

There is no way that I know of to override this value

这篇关于为什么修改设置为朋友的WinForms?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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