如题:怎样在winForm中设置我动态添加的Panel的透明度
System.Drawing.Color.FromArgb()方法只设置了颜色的透明度,而Panel没有透明!private System.Windows.Forms.Panel LoadingPanel = new System.Windows.Forms.Panel();
public void PanelStart(System.Windows.Forms frm)
{
this.LoadingPanel.Location = new System.Drawing.Point(0, 0);
this.LoadingPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.LoadingPanel.Parent = frm;
this.LoadingPanel.BringToFront();
this.LoadingPanel.BackColor = System.Drawing.Color.FromArgb(200, 222, 235, 247);
}
System.Drawing.Color.FromArgb()方法只设置了颜色的透明度,而Panel没有透明!private System.Windows.Forms.Panel LoadingPanel = new System.Windows.Forms.Panel();
public void PanelStart(System.Windows.Forms frm)
{
this.LoadingPanel.Location = new System.Drawing.Point(0, 0);
this.LoadingPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.LoadingPanel.Parent = frm;
this.LoadingPanel.BringToFront();
this.LoadingPanel.BackColor = System.Drawing.Color.FromArgb(200, 222, 235, 247);
}
解决方案 »
- 紧急求助,如何将Delegate作为参数传递
- 关于窗体的继承内部!
- 访问数据库的SQLHelper.cs如何写才是最优的?
- 关于用C#.net比较相似的两个图片
- MDI窗口里打开一个窗口A,怎么在A窗口里打开一个窗口B,让这个窗口B属于MDI窗口的子窗口
- 大家积极交流啊!该如何获取一个小小网站的源代码呢??
- 传手机号码到移动网站查询手机归属地出错。
- sql语句
- CheckedlistBox奇怪的问题:System.ArgumentOutOfRangeException
- 数据库为sql 系统数据库northing为什么提示 objConnection=New SqlConnection(strConnection);不运行呢/????????????
- 图片浏览器,图片索引为无效参数(郁闷)!
- 单体调试 对象测试工作台 0x80004005错误
赋颜色你换成这句看看