为什么修改设置为朋友的WinForms?设置为、朋友、WinForms

由网友(酒入愁肠)分享简介:当增加一个新的控制到设计中的WinForms,在控制修改设置为朋友,但默认修饰符是私人(右键单击该属性并重置调整值)。When adding a new control to the designer in Winforms, the modifier on the control is set to Friend,...

当增加一个新的控制到设计中的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

阅读全文

相关推荐

最新文章