How do I display a file's Properties dialog from C#?

前端 未结 4 2086
无人共我
无人共我 2020-11-28 07:58

how to open an file\'s Properties dialog by a button

private void button_Click(object sender, EventArgs e)
{
    string path = @\"C:\\Users\\test\\Documents         


        
4条回答
  •  时光取名叫无心
    2020-11-28 08:48

    Solution is to use ShellExecute () api.

    How to invoke this api using C# : http://weblogs.asp.net/rchartier/442339

    This works fine for me without CharSet attribute both in Debug and Release mode.

提交回复
热议问题