简体   繁体   中英

How to change controls layout in child user controls

I have a user control implemented for a windows application. I have derived this user control and created one more child user control. But the problem is I am not able to change the control layout in child user control, being everything is locked.

How to change the layout of controls in child user control keeping the functionality same as parent user control ?

If I change the modifiers of controls in parent control to public, I can change the layout. But I am not sure if it is a correct way or not.

Thanks,

Vijay

我认为您应该尝试将控件置于受保护的状态,而不要公开。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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