Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello

I have a UserControl which is made of several controls. but how can I have all "Properties" and "Events" of each control in my compiled UserControl in which the end user be able to have access to all control properties and events when designig its form. should I define property and Event for all of them or these is easy way?

thank you

What I have tried:

Create Property and Event, But it is time consuming
Posted
Updated 26-Jan-17 21:08pm

1 solution

Of course ... it needs time ...

At first you should define, which Properties from the Sub-Controls are necessary for the UserControl. Same for the Events.
Normally you don't need all Properties from all Sub-Controls - for Example BackColor : I assume that most of the Sub-Controls have the same BackColor. So you could assign this value from one Property to all related Sub-Controls.

Perhaps there are severall ways to make some parts easier. But for this you should be more specific. Perhaps you improve your question with more Details ...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900