基本信息
源码名称:C# 异型窗口,圆形窗口
源码大小:0.47M
文件格式:.zip
开发语言:C#
更新时间:2020-10-06
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559

本次赞助数额为: 2 元 
   源码介绍

打开后窗体如下效果,无边框,无标题


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
            //窗体显示特效
            this.Opacity = 0;//设置窗体不透明度
            timer1.Start();//时间控件开始运行 
            pictureBox1.MouseEnter  = new System.EventHandler(pseEnter);

            pictureBox1.MouseLeave  = new System.EventHandler(pseLeave);
        }

        int intTime = 0;
        private void timer1_Tick(object sender, EventArgs e)
        {
            intTime  = timer1.Interval;

            if (intTime == 3000) //定义多长时间显示第三个窗口 
            {
                timer2.Start();
            }
            this.Opacity  = 0.03;//改变窗体透明度
        }

        private void timer2_Tick(object sender, EventArgs e)
        {
            this.timer1.Stop();//关闭定时器1
            this.Opacity = this.Opacity - 0.03;//改变窗体透明度
            if (this.Opacity == 0)//当窗体透明度为0时(看不到窗体了)
            {
                this.Close();//关闭窗体
            }
        }

        private void timer3_Tick(object sender, EventArgs e)
        {
            this.timer1.Stop();//关闭定时器1
            this.Opacity  = 0.03;//改变窗体透明度
        }

        private void pseEnter(object sender, EventArgs e)
        {
            timer3.Start();
        }
        private void pseLeave(object sender, EventArgs e)
        {
            timer1.Start();
        }

    }
     
 }