This program requires a transparent PNG image that the reader can prepare for himself.
1. Create a new form and set the FormBorderStyle property of the form to none and the "TransparencyKey" property to "control".
2. Add the following code for the Load event for the form://yinyiniao ' s Blog http://blog.csdn.net/yinyiniao
private void Form1_Load (object sender, EventArgs e) {mybit = new Bitmap ("Mypic.png"); Maketransparent (Color.yellow); This. StartPosition = Formstartposition.centerscreen; This. WindowState = Formwindowstate.normal; }//yinyiniao ' s Blog http://blog.csdn.net/yinyiniao
3. Rewrite the form's OnPaint event method:
protected override void OnPaint (PaintEventArgs e) {e.graphics.drawimage ((Image) mybit,new Point (0,0));
4. Add the Close program code for the Click event of the form:
private void Form1_Click (object sender, EventArgs e) {application.exit ();}//yinyiniao ' s Blog http://blog.csdn.net/yiny Iniao