C#制作欢迎界面
来源:互联网 发布:淘宝直通车手机端投放 编辑:程序博客网 时间:2024/05/18 02:17
(1)设置窗体的属性
StartPosition:CenterScreen
FormBoderStyle:None
(2)添加背景图片
在属性面板的BackgroundImage中添加背景图片
(3)为窗体添加Timer组件,以实现窗体的淡入淡出效果。
(4)编写代码
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 WelcomeFormDemo
{
public partial class SplashScreen : Form
{
public SplashScreen()
{
InitializeComponent();
}private void SplashScreen_Load(object sender, EventArgs e)
{
// 设置欢迎界面的大小
this.ClientSize = this.BackgroundImage.Size;
this.Opacity = 0; // 透明界面
this.timer1.Interval = 50; // 设置Timer的时间间隔
this.timer1.Enabled = true;this.timer1.Start(); // 开始Timer
}private void Timer_Tick(object sender, EventArgs e)
{
this.Opacity += 0.02;
if (this.Opacity >= 1)
{
this.timer1.Stop();
this.Close();
}
}
}
}
- C#制作欢迎界面
- C#制作欢迎界面
- 欢迎界面的制作
- 制作欢迎界面
- Delphi欢迎界面的制作
- 安卓欢迎界面制作
- 安卓欢迎界面制作
- c# 欢迎界面的做法
- 使用Canvas制作MIDlet的欢迎界面
- 使用Canvas制作MIDlet的欢迎界面
- 使用Canvas制作MIDlet的欢迎界面
- Android开发_ViewPager制作欢迎界面
- Android笔记—如何制作欢迎界面
- 如何使用图片制作全屏欢迎界面
- Android中的ViewPager制作欢迎界面
- 微信小程序欢迎界面的制作
- C# 启动欢迎界面的实现有感
- C#淡入淡出的欢迎界面
- 我看敏捷
- [原创][Python 技术培训] 第一周讲稿 (第二版)
- 再看木桶
- FCKEditor v2.6.3 最新版-ASP.NET 演示程序
- [原创][Python 技术培训] 第一周幻灯片 "Python 基础篇"
- C#制作欢迎界面
- 征信业务发展亟待解决的问题
- ASP.NET2.0特性之登录控件
- 代码发芽网站小启示
- 使用VB创建PPPoE以及VPN拨号连接的核心代码
- 原创:产品经理的14条军规。(转贴请注明来自5G 常佳军http://www.5gme.com/space.php?uid=17341&do=blog&id=23168——转载本作者不收取费用,否则等着收律师事务所的律师信)
- ·········
- 一查询语句(检查过期的发货合同)
- 《中国新闻周刊》报道:施一公深陷泥潭