简体   繁体   English

自定义 Winforms 标题栏中的文本

[英]Customising the text in Winforms title bar

I am developing a winform based application.我正在开发一个基于 winform 的应用程序。 I just want to put some hyperlink on left side of the title bar as shown in the image below and add hyperlink to that.我只想在标题栏的左侧放置一些超链接,如下图所示,并为其添加超链接。 Is it possible in winforms?在winforms中可能吗?
In addition to that winform title bar will have a header as shown "Happy Days Design Suite"除了那个 winform 标题栏将有一个标题,如“Happy Days Design Suite”所示

Alternative solution would be remove the title bar completely and add labels, but before that I just want to check whether adding texts to the title bar would be possible替代解决方案是完全删除标题栏并添加标签,但在此之前我只想检查是否可以向标题栏添加文本

在此处输入图片说明

Not the answer the OP was looking for, but most likely the way that Microsoft intended - If you have space on the form, in the designer add a StatusStrip, then add a ToolStripStatusLabel to it.不是 OP 正在寻找的答案,但很可能是 Microsoft想要的方式 - 如果表单上有空间,请在设计器中添加一个 StatusStrip,然后向其中添加一个 ToolStripStatusLabel。 ToolStripStatusLabel supports hyperlinks out of the box. ToolStripStatusLabel 支持开箱即用的超链接。

Life is short, take the path of least resistance.人生苦短,走阻力最小的路。 WinForms is an opinionated framework and your safest bet is to do things their way. WinForms 是一个固执己见的框架,您最安全的选择是按照自己的方式做事。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM