[英]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.