one cotrol, can it had TWO DesignerAttribute?

  hi all, i am writing a control that is inherit from DataSet, as we know that DataSet had its own designer which named "Microsoft.VSDesigner.Data.VS.DataSetDesigner" , and this designer had two command : ViewDataSetProperties , ViewSchema ;  
   now i want to add my new command to this control , but i can not find the way that add the second designer to the control , when i add the DesignerAttribute just like :
[DesignerAttribute(typeof(myNewDesigner))]

   the new designer is appear ok , but the old designer had disappear!

   how can i solve this problem , i just want to add new command to this DataSet extend control and also keep the two old command.

   Thanks!


Answer this question

one cotrol, can it had TWO DesignerAttribute?

  • Giba_ts

    If DataSetDesigner is inheritable, you could just inherit from it and extend it with the extra stuff you want it to do.
  • one cotrol, can it had TWO DesignerAttribute?