[英]Icon button layout in winform
我正在使用Windows 8,VS 2012.我在我的按钮上添加了一个圆形图标:
this.btn.Image = Properties.Resources.icon; this.btn.Size = Properties.Resources.icon.Size;
我的表格也有背景图片:
this.BackgroundImage = Properties.Resources.sunset;
但是我的形状很难看,我的图标按钮是方形的:中间的圆形图像和角落的灰色。
问题是如何显示表格背景而不是灰色?
感谢您的关注
您可以设置按钮的某些属性以获得所需内容:
FlatStyle
Flat
BackColor
Transparent
FlatAppearance
BorderSize
MouseDownBackColor
MouseOverBackColor
你可以让你控制透明背景,然后使用透明的PNG作为图标和瞧。
有关在控件上创建透明背景的信息,请参阅此Microsoft文章
[英]How to layout items in winform
[英]Winform did not show the icon in the taskbar
[英]C# Winform Binary Icon
[英]Close WinForm On Button Click
[英]Toggling the appearance of a button winform
[英]Button Hiding in Tabpage in Winform
[英]Button text in winform app
[英]WinForm binding radio button
[英]Winform image toggle button
[英]Deleting old winform and tray icon when I make a new winform
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.