简体   繁体   English

如何在我的子窗体设计器中编辑父窗体控件

[英]How to edit parent form controls in my child forms designer

I have a baseview form which I added a grid. 我有一个baseview表单,其中添加了一个网格。 I have another view form that inherits my base view form. 我还有另一个继承我基本视图表单的视图表单。 I would like to edit this grid in my derived class designer. 我想在派生类设计器中编辑此网格。 I set the access modifier in my base view form to protected but this does not help. 我在基本视图表单中将访问修饰符设置为保护,但这无济于事。

Don't do it. 不要这样 It's a nightmare waiting to happen. 这是一场噩梦,等待发生。 Look the other way for five minutes and it will be eight levels deeps and sprawling across your entire application. 用另一种方法查看五分钟,它将是八个级别的深度,并且遍及整个应用程序。

Abstract out the common behaviours in to classes, controls etc. 将常见行为抽象到类,控件等中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM