Tag: 背景

使表单的背景透明

我如何在表单上透明背景? 在C#中有可能吗? 提前致谢!

如何在WPF / XAML中绑定背景颜色?

我需要更改为以下代码,以便背景为红色,我尝试的两种方式都没有: 替代文字http://www.deviantsart.com/upload/1okq25l.png XAML: 代码背后: using System.Windows; using System.ComponentModel; namespace TestBackground88238 { public partial class Window1 : Window, INotifyPropertyChanged { #region ViewModelProperty: Background private string _background; public string Background { get { return _background; } set { _background = value; OnPropertyChanged(“Background”); } } #endregion #region ViewModelProperty: Message private string _message; public string Message { get { […]

C#更改按钮的背景颜色

使用C#和Visual Studio 2010,如果按下另一个按钮,如何更改按钮的背景颜色? 我不包括系统。? 错误? 我现在拥有的是: ButtonToday.Background = Color.Red; 而且它不起作用。

C#Winform ProgressBar和BackgroundWorker

我有以下问题: 我有一个名为MainForm的表单。 我要在这张表格上进行长时间的操作。 虽然这个长时间的操作正在进行,但我需要在MainForm之上显示另一个名为ProgressForm的操作。 ProgressForm包含一个进度条,需要在长时间操作时更新。 长操作完成后,应自动关闭ProgressForm。 我写了以下代码: using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.Threading; namespace ClassLibrary { public class MyClass { public static string LongOperation() { Thread.Sleep(new TimeSpan(0,0,30)); return “HelloWorld”; } } } using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace BackgroungWorker__HelloWorld { public partial […]

如何更改ListBox选择背景颜色?

它似乎使用Windows设置中的默认颜色,默认为蓝色。 假设我想永久地将它改为红色。 我正在使用Winforms。 提前致谢。