Advertisement
Guest User

Untitled

a guest
Aug 13th, 2018
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    if (designTime)
  2.    { //Expose standart controls properties
  3.      return TypeDescriptor.GetProperties(this, true);
  4.    }
  5.    else
  6.    {   //Forming a custom property descriptor collection
  7.        PropertyDescriptorCollection pdc = new PropertyDescriptorCollection(null);
  8.        //Some code..
  9.        return pdc;      
  10.    }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement