資源簡介
c# 抽獎 隨即 滾動 強大 源代碼
非常實用程序
代碼片段和文件信息
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?抽獎
{
????public?partial?class?Form1?:?Form
????{
????????bool?ww?=?false??;
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
???????private?void?timer1_Tick(object?sender?EventArgs?e)
???????{
???????????
???????????Random?re?=?new?Random();
???????????//輸出隨機變量,其中10000為最小值,99999為最大值
???????????this.label1.Text?=?re.Next(100000?999999).ToString();
???????}
???????private?void?Form1_KeyPress(object?sender?KeyPressEventArgs?e)
???????{
???????????if?(e.KeyChar?==?(char)Keys.Space)
???????????{
???????????????this.label3.Text?=?“抽獎中···敬請期待···“;
???????????????this.timer1.Enabled?=?!ww;
???????????????this.label1.Visible?=?true;
???????????????ww?=?!ww;
???????????}
???????????if?(timer1.Enabled?==?false)
???????????{
???????????????this.label1.Hide();
???????????????this.label3.Text?=““;
???????????????
?????????????
???????????????this.label2.Text?=?“恭喜你:“?+?this.label1.Text?+?“獲得今天的大獎“;
???????????}
???????????else
???????????????this.label2.Text?=?““;
???????}
????
????????}
?}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????1167360??2009-11-08?16:24??抽獎\抽獎\bin\Debug\抽獎.exe
?????文件??????30208??2009-11-08?16:24??抽獎\抽獎\bin\Debug\抽獎.pdb
?????文件??????14328??2009-11-09?10:30??抽獎\抽獎\bin\Debug\抽獎.vshost.exe
?????文件????????490??2007-07-21?01:33??抽獎\抽獎\bin\Debug\抽獎.vshost.exe.manifest
?????文件???????1363??2009-11-08?16:24??抽獎\抽獎\Form1.cs
?????文件???????5795??2009-11-08?16:15??抽獎\抽獎\Form1.Designer.cs
?????文件?????155828??2009-11-08?16:15??抽獎\抽獎\Form1.resx
?????文件???????6144??2009-11-01?20:03??抽獎\抽獎\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
?????文件????????781??2009-11-09?10:30??抽獎\抽獎\obj\Debug\抽獎.csproj.FileListAbsolute.txt
?????文件???????1351??2009-11-08?16:15??抽獎\抽獎\obj\Debug\抽獎.csproj.GenerateResource.Cache
?????文件????1167360??2009-11-08?16:24??抽獎\抽獎\obj\Debug\抽獎.exe
?????文件?????100244??2009-11-08?16:15??抽獎\抽獎\obj\Debug\抽獎.Form1.resources
?????文件??????30208??2009-11-08?16:24??抽獎\抽獎\obj\Debug\抽獎.pdb
?????文件????1055875??2009-11-01?20:04??抽獎\抽獎\obj\Debug\抽獎.Properties.Resources.resources
?????文件????????487??2009-11-01?10:06??抽獎\抽獎\Program.cs
?????文件???????1368??2009-11-01?10:06??抽獎\抽獎\Properties\AssemblyInfo.cs
?????文件???????5730??2009-11-01?20:03??抽獎\抽獎\Properties\Resources.Designer.cs
?????文件???????8747??2009-11-01?20:03??抽獎\抽獎\Properties\Resources.resx
?????文件???????1091??2009-11-01?10:06??抽獎\抽獎\Properties\Settings.Designer.cs
?????文件????????249??2009-11-01?10:06??抽獎\抽獎\Properties\Settings.settings
?????文件??????93337??2009-11-01?13:59??抽獎\抽獎\Resources\200961619271287663.jpg
?????文件?????115691??2009-11-01?14:01??抽獎\抽獎\Resources\271120.jpg
?????文件?????209999??2009-11-01?15:44??抽獎\抽獎\Resources\271786.jpg
?????文件??????81288??2009-11-01?14:28??抽獎\抽獎\Resources\4.jpg
?????文件??????45188??2009-11-01?14:29??抽獎\抽獎\Resources\90bf1963be4a4ef8e6113a40.jpg
?????文件?????413902??2009-11-01?19:56??抽獎\抽獎\Resources\Mail.ico
?????文件?????264538??2009-11-01?19:53??抽獎\抽獎\Resources\小鹿.jpg
?????文件??????12892??2009-11-01?20:03??抽獎\抽獎\Resources\手.jpg
?????文件??????39755??2009-11-01?19:47??抽獎\抽獎\Resources\撒.jpg
?????文件??????68000??2009-11-01?18:56??抽獎\抽獎\Resources\非主流桌面圖標下載22.png
............此處省略17個文件信息
- 上一篇:C# 編寫的定時關機程序
- 下一篇:人大金倉數據庫通過ODBC訪問源代碼
評論
共有 條評論