读书人

如何做不规则窗体. 多谢

发布时间: 2011-12-26 23:09:58 作者: rapoo

怎么做不规则窗体... 谢谢
Microsoft Visual Studio .NET 2003

下怎么做不规则窗体,看了一下微软视屏,云里雾里.........

有需要的 视屏我可以上传... 请教了

[解决办法]
http://allancandy.cnblogs.com/archive/2005/09/01/227814.html
[解决办法]
public partial class Form1 : Form
{
Bitmap bit;
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
bit = new Bitmap("heart.bmp");
bit.MakeTransparent(Color.Blue);
}
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.DrawImage((Image)bit, new Point(0, 0));
}

private void label1_Click(object sender, EventArgs e)
{
this.Close();
}
}
可以自己加张图片试试

读书人网 >C#

热点推荐