在运行时更改按钮控件的系统定义的边框吗? [英] Change System Defined Borders For Button Controls At RunTime?

查看:60
本文介绍了在运行时更改按钮控件的系统定义的边框吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在Form1中有2个按钮,只是我在运行Form.
如果我将鼠标悬停在任何Button上,则会分配一些系统定义的BorderColor. 例题:
在我的系统中,当我运行该应用程序时.金色"出现在按钮边框"中.

我需要更改按钮控件的边框.
我需要为按钮创建自定义控件吗?

是否可以使用任何内置属性来解决我的问题?

请让我知道解决方法..

问候,
帕万.

Hi All,

I have 2 Buttons in Form1 and simply i run the Form.
if i mouse hover on any Button, some system Defined BorderColor is assigned..
Exa:
In my system When i run the application.. Gold Color is appearing For Button Borders.

i need to Change the Borders For Button Controls..

Do i need to Create Custom Control For Button
Or
Is there any Built in Property''s are Method''s available to Solve my issue?

Kindly let me know the solution..

Regards,
Pawan.

推荐答案

更改 FlatStyle 属性,尝试一下..
Change the FlatStyle property, try it..




您可以通过为Buttons创建图像来解决上述问题.
创建一幅图像后,然后将该图像设置为Button控件的背景图像.
Hi,

You can solve above issue by creating image for Buttons.
After creating one image,then set that image as backgroundmage for Button control.


这篇关于在运行时更改按钮控件的系统定义的边框吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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