Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (designTime)
- { //Expose standart controls properties
- return TypeDescriptor.GetProperties(this, true);
- }
- else
- { //Forming a custom property descriptor collection
- PropertyDescriptorCollection pdc = new PropertyDescriptorCollection(null);
- //Some code..
- return pdc;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement