How can I get an OpenFileDialog in a custom control's property grid?

前端 未结 3 667
没有蜡笔的小新
没有蜡笔的小新 2021-02-04 11:17

I\'m creating a .net custom control and it should be able to load multiple text files. I have a public property named ListFiles with those properties set :


[Br         


        
3条回答
  •  清歌不尽
    2021-02-04 11:42

    You can do this by adding a UITypeEditor.

    Here is an example of a UITypeEditor that gives you the OpenFileDialog for chossing a filename.

提交回复
热议问题