我可以更改FolderBrowserDialog的标题吗? [英] Can I change the title of my FolderBrowserDialog?

查看:262
本文介绍了我可以更改FolderBrowserDialog的标题吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很好奇,它可以给我的小应用程序一个很好的画龙点睛.谢谢!

I'm curious and it could give my little app a nice finishing touch. Thanks!

推荐答案

如果直接使用类FolderBrowserDialog,则不能.但是我在某处读到,可以通过P/Invoke更改标题并发送WM_SETTEXT消息.

You can't if you use the class FolderBrowserDialog directly. But I read somewhere that it could be possible to change the title with P/Invoke and sending WM_SETTEXT message.

在我看来,这样做是不值得的.只需使用属性说明添加信息:

In my opinion, it is not worth the pain. Just use the property Description to add the information:

FolderBrowserDialog dlg = new FolderBrowserDialog();
dlg.Description = "Select the document folder";

这篇关于我可以更改FolderBrowserDialog的标题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆