简体   繁体   中英

Hiding properties and methods of usercontrol class in C#

I have a UserControl . Problem is when i dropped it into another form. It exposes all the properties and methods of user control which is a issue in my case.

I want to expose only that properties and methods which is in my CustomControl class not in UserControl class.

That's how it works.

When I do the same in Visual Studio, the properies of CustomControl in the suggestions drop down is bold and properties of UserControl is normal text so it is easy to differentiate.

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