資源簡介
C#點名程序,也可當作是一個隨機搖號或幸運抽獎程序,可以幫助老師在課堂上進行隨機點名,
實例采用Visual Studio 2008作為開發工具,采用C#開發。
為了簡單數據存儲采用文件的形式。在系統的bin目錄下用lottery.asf存放學生的信息。
lottery.asf是Access數據庫,為了安全改名為lottery.asf。
通過參與此系統的開發,讀者可以了解信息管理系統的需求分析、設計和實現的完整過程,
掌握Access數據庫的基本管理方法、常用SQL語言的使用方法以及C#數據庫開發技術,積累有效的數據庫應用系統實戰經驗。

代碼片段和文件信息
using?System;
using?System.Drawing;
using?System.Collections;
using?System.ComponentModel;
using?System.Windows.Forms;
//該源碼下載自C#編程網|www.cpbcw.com
namespace?ideology
{
///?
///?about?的摘要說明。
///?
public?class?about?:?System.Windows.Forms.Form
{
private?System.Windows.Forms.Timer?timer1;
private?System.ComponentModel.IContainer?components;
public?about()
{
//
//?Windows?窗體設計器支持所必需的
//
InitializeComponent();
//
//?TODO:?在?InitializeComponent?調用后添加任何構造函數代碼
//
}
///?
///?清理所有正在使用的資源。
///?
protected?override?void?Dispose(?bool?disposing?)
{
if(?disposing?)
{
if(components?!=?null)
{
components.Dispose();
}
}
base.Dispose(?disposing?);
}
#region?Windows?窗體設計器生成的代碼
///?
///?設計器支持所需的方法?-?不要使用代碼編輯器修改
///?此方法的內容。
///?
private?void?InitializeComponent()
{
this.components?=?new?System.ComponentModel.Container();
this.timer1?=?new?System.Windows.Forms.Timer(this.components);
//?
//?about
//?
this.AutoScalebaseSize?=?new?System.Drawing.Size(6?14);
this.BackColor?=?System.Drawing.Color.GhostWhite;
this.ClientSize?=?new?System.Drawing.Size(304?224);
this.FormBorderstyle?=?System.Windows.Forms.FormBorderstyle.None;
this.Name?=?“about“;
this.StartPosition?=?System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text?=?“about“;
this.TopMost?=?true;
this.Load?+=?new?System.EventHandler(this.about_Load);
this.DoubleClick?+=?new?System.EventHandler(this.about_DoubleClick);
}
#endregion
private?void?about_Load(object?sender?System.EventArgs?e)
{
fromOpacity(1080) ;
}
private?void?fromOpacity(int?BegOpacityint?EndOpacity)
{
?this.Opacity?=0.1;
?
?timer1.Start();
?????????timer1.Tick+=new??EventHandler(timer1_Tick);
}
private?void?timer1_Tick(object?sender?System.EventArgs?e)
{
if?(this.Opacity<0.8)
{
this.Opacity=this.Opacity+0.1;
}
else
{
timer1.Stop();
}
}
private?void?about_DoubleClick(object?sender?System.EventArgs?e)
{
this.Close();
}
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2852??2010-10-19?23:45??Properties\Resources.Designer.cs
?????文件???????5817??2009-11-06?13:52??Properties\Resources.resx
?????文件?????107040??2009-11-06?14:22??Resources\biaozhi.Image.png
?????文件???????9942??2009-11-06?14:59??Resources\F_begin.Image.png
?????文件??????15621??2009-11-06?15:10??Resources\F_open.Image.png
?????文件???????2550??2009-10-06?18:36??Resources\hi.ico
?????文件??????18701??2009-11-11?19:28??Resources\pictureBox1.BackgroundImage.jpg
?????文件???????2326??2011-10-11?08:57??about.cs
?????文件???????7004??2004-12-13?15:27??about.resx
?????文件???????1078??2004-11-26?18:27??App.ico
?????文件???????1895??2011-10-11?08:57??AssemblyInfo.cs
?????文件??????25107??2011-10-11?08:57??Form1.cs
?????文件?????678160??2009-10-08?21:27??Form1.resx
?????文件???????2550??2009-11-06?15:34??hi.ico
?????文件???????5291??2010-10-19?23:45??ideology.csproj
?????文件???????2123??2010-10-19?23:44??ideology.csproj.user
?????文件????????900??2010-10-19?23:45??ideology.sln
????..A..H.?????18944??2011-10-11?08:58??ideology.suo
?????文件???????2603??2011-02-22?21:23??logo.gif
?????文件????????712??2009-11-11?20:34??pass.xm
?????文件????????190??2011-02-01?21:29??更多C#源碼下載.url
?????文件???????2250??2011-10-11?08:58??下載必讀.txt
?????文件???????2290??2009-10-08?21:32??Backup\about.cs
?????文件???????7004??2004-12-13?15:27??Backup\about.resx
?????文件???????1078??2004-11-26?18:27??Backup\App.ico
?????文件???????1896??2009-02-14?20:45??Backup\AssemblyInfo.cs
?????文件??????25071??2009-12-08?21:38??Backup\Form1.cs
?????文件?????678160??2009-10-08?21:27??Backup\Form1.resx
?????文件???????2550??2009-11-06?15:34??Backup\hi.ico
?????文件???????4999??2009-12-08?21:39??Backup\ideology.csproj
............此處省略50個文件信息
- 上一篇:C# NPOI_2.3.0版插件
- 下一篇:c#圖書管理系統C#源碼和SQL數據庫
評論
共有 條評論