如何使 winforms UserControl 中的控件私有?

How do I make my controls inside a winforms UserControl private?

我想将我的用户控件内的控件设为私有,这样只有我选择公开的 methods/properties 可以访问。

我发现了这个类似的问题:How do I make my controls inside a UserControl private?

但是,我想知道 how/if 这可以用 windows 形式完成(不是 wpf。)

看起来应该很简单...我错过了什么?

谢谢。

编辑:为了回应某些 comments/answers,我只是想说明我正在使用 VB.net,控件的默认修饰符是 "friend",不是 "Private".

我建议根据 https://msdn.microsoft.com/en-us/library/ms233630(v=vs.110).aspx 更改修改器。

将控件的修饰符更改为私人注意,这在 winforms c# 中默认为私人,但在 vb win 表单中,这将默认设置为朋友。