當前位置:編程學習大全網 - 電腦編程 - 在winform編程中怎樣實現如下圖所示的界面

在winform編程中怎樣實現如下圖所示的界面

可以用按鈕~和圖片,或者label

背景色~和圖片的變換~

bool one;

private void button6_Click(object sender, EventArgs e)

{

if (one == true)

{

button1.BackColor = Color.Red;

one = false;

}

else

{

button1.BackColor = Color.Silver;

one = true;

}

//button1.BackgroundImage = Image.FromFile(@"\圖片地址");//DEBUG下 的路徑 用\就行

}

  • 上一篇:參數計算編程
  • 下一篇:單片機 匯編 怎麽用指針啊
  • copyright 2024編程學習大全網