zoukankan
html css js c++ java
如何制作winform得启动画面
using
System;
using
System.Collections.Generic;
using
System.Text;
using
System.Windows.Forms;
using
System.Drawing;
namespace
SlashScreenLib
{
public
class
SlashScreenForm:Form
{
static
SlashScreenForm slashScreen;
Bitmap bitMap;
public
static
SlashScreenForm SlashScreen
{
get
{
if
(slashScreen
==
null
)
{
slashScreen
=
new
SlashScreenForm();
}
return
slashScreen;
}
}
public
SlashScreenForm()
{
//
SlashScreen肯定显示在屏幕中央
this
.StartPosition
=
FormStartPosition.CenterScreen;
//
应该没有边框
this
.FormBorderStyle
=
FormBorderStyle.None;
//
获取SlashScreen要显示的图片
bitMap
=
Resources.Resource.SlashScreen;
//
窗口大小与图片大小一致
this
.ClientSize
=
bitMap.Size;
//
在图片上写上字
using
(Font f
=
new
Font(
"
宋体
"
,
18
))
{
using
(Graphics g
=
Graphics.FromImage(bitMap))
{
g.DrawString(
"
Jillzhang
"
, f, Brushes.Black,
100
,
142
);
}
}
this
.BackgroundImage
=
bitMap;
}
protected
override
void
Dispose(
bool
disposing)
{
base
.Dispose(disposing);
if
(disposing)
{
if
(bitMap
!=
null
)
{
bitMap.Dispose();
bitMap
=
null
;
}
}
}
}
}
作者:
jillzhang
出处:
http://jillzhang.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
查看全文
相关阅读:
perl system和exec 调用
perl hash 根据键访问相应值
perl unless循环
perl hash数组
Flex中利用单选按钮切换柱状图横纵坐标以及描述
ReferenceError: Error #1069: 在 spark.components.RadioButtonGroup 上找不到属性 label,且没有默认值
perl utf8 转gbk
Oracle根据数据块ITL查找UNDO前镜像
集团管控的历史读本——Leo鉴书76
1067: spark.components:NavigatorContent 类型值的隐式强制指令的目标是非相关类型 String
原文地址:https://www.cnblogs.com/jillzhang/p/543613.html
最新文章
latch:row cache objects
Flex中怎么给表格中的滚动条定位
1118: 属于 static 类型 Object 的值的隐式强制指令的目标可能是非相关类型 Number。
TypeError: Error #1034: 强制转换类型失败:无法将 mx.controls::DataGrid@9a7c0a1 转换为 spark.core.IViewport。
索引分裂引发的enq: TX
log file sync
唯一索引引发的enq: TX
合理的薪酬策略——揭秘万达电商(3)
Exception in thread "main" java.lang.IllegalArgumentException
shared pool latch和library cache latch
热门文章
Oracle 如何修改列的数据类型
属性“dataProvider”有多个初始值设定项。(注意:“dataProvider”是“mx.charts.BarChart”的默认属性)。
Flex实现双轴条状图
perl 控制结构
选对公司是梦想实现的一半——揭秘万达电商(2)
perl chop和chomp函数
MQ 查看消息
大时代提供的机遇——近距离揭秘万达电商(1)
TypeError: Error #1034: 强制转换类型失败:无法将 flash.events::MouseEvent@73b7cc1 转换为 mx.events.ItemClickEvent。
Flex中单选按钮控制表格中的列的增加或减少
Copyright © 2011-2022 走看看