WinForm的,有图片和文字,但没有控制按钮,自定义标题栏? [英] Winform, custom title bar with Image and text but no control buttons?

查看:636
本文介绍了WinForm的,有图片和文字,但没有控制按钮,自定义标题栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在WinForm应用程序,我怎么添加图片和标题文本中的标题栏,并删除所有控制buttions(最小,最大和放大器;关闭)。我可以能够显示图像和标题文本,但不能删除所有按钮,包括关闭按钮。疗法是这个什么解决办法?

In winform application, how do i add image and title text in 'Title bar' and remove all control buttions (min, max & close). I could able to show image and title text but could not remove all buttons including 'Close' button. Is ther any workaround for this?

推荐答案

您可以设置窗体为False ControlBox属性,则U可以轻松删除所有按钮(最小,最大,关闭按钮),甚至可以设置标题和图片吧,因为那里使用FormBorderStyle将彻底删除标题栏,这将不利于您的问题。

You can set the ControlBox property of the form to False, then u can easily remove all buttons(min, max, Close buttons), and even you can set Title and Image to it, where as using FormBorderStyle it will completely remove title bar ,which will not help your problem.

所以,我建议您设置的结果
控制盒= FALSE形式

So i suggest you to set
ControlBox=false of the form

这篇关于WinForm的,有图片和文字,但没有控制按钮,自定义标题栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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