those two properties are independent, so I doubt you will be able to achieve what you wantI am thinking you might need to redesign your class

解决方案 »

  1.   

    yes.they are independent!  i can use [BrowsableAttribute(false)]to disvisable the propertie .i once design it like that:
        如果 事实类型.value=整型  
        最小值的Browsable属性为true!
    但后来发现Browsable属性是只读,只有get没有set
    我想重写函数,但又是sealed.
    没法继承!帮我想想,万分谢谢!
      

  2.   

    sorry, I am not so familiar with PropertyGrid, but this article might help you:http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=%23vUS9HNsBHA.1332%40tkmsftngp05http://www.gotdotnet.com/userarea/keywordsrch.aspx?keyword=propertygridalso read
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/vsnetpropbrow.asp
      

  3.   

    重载compont collecttion 类中有关的函数
    可以实现43215760