資源簡介
一般。。沒什么意思。呵呵隨便上傳玩的。第一次傳

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.Configuration;
using?System.Data.SqlClient;
namespace?真查詢
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????public?static?string?userid;
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????SqlConnection?cn?=?new?SqlConnection();
????????????cn.ConnectionString?=?System.Configuration.ConfigurationManager.ConnectionStrings[“china“].ConnectionString;
????????????cn.Open();
????????????SqlCommand?cmd?=?new?SqlCommand();
????????????string?str?=?String.Format(“select?snosname?from?student?where?sno=‘{0}‘and?spwd=‘{1}‘“?textBox1.Text.Trim()?textBox2.Text.Trim());
????????????cmd.CommandText?=?str;
????????????cmd.Connection?=?cn;
????????????SqlDataReader?dr?=?cmd.ExecuteReader();
????????????if?(dr.Read())
????????????{
????????????????userid?=?textBox1.Text.Trim();
????????????????Form2?f2?=?new?Form2();
????????????????f2.Show();
????????????????this.Hide();
????????????}
????????????else?{
????????????????MessageBox.Show(“用戶名或密碼錯誤“);
????????????}
????????}
?????
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????5612??2010-11-25?09:55??真查詢\真查詢\Properties\Resources.resx
?????文件????????249??2010-11-25?09:55??真查詢\真查詢\Properties\Settings.settings
?????文件???????1176??2010-11-25?09:55??真查詢\真查詢\Properties\AssemblyInfo.cs
?????文件???????2872??2010-11-25?09:55??真查詢\真查詢\Properties\Resources.Designer.cs
?????文件???????1092??2010-11-25?09:55??真查詢\真查詢\Properties\Settings.Designer.cs
?????文件???????3649??2010-11-25?10:44??真查詢\真查詢\真查詢.csproj
?????文件???????5632??2005-11-11?22:25??真查詢\真查詢\bin\Debug\真查詢.vshost.exe
?????文件????????223??2010-11-25?10:44??真查詢\真查詢\bin\Debug\真查詢.exe.config
?????文件??????24576??2010-12-10?21:40??真查詢\真查詢\bin\Debug\真查詢.exe
?????文件??????28160??2010-12-10?21:40??真查詢\真查詢\bin\Debug\真查詢.pdb
?????文件????????223??2010-11-25?10:44??真查詢\真查詢\bin\Debug\真查詢.vshost.exe.config
?????文件????????180??2010-11-25?11:07??真查詢\真查詢\obj\Debug\真查詢.Form1.resources
?????文件????????180??2010-11-25?12:22??真查詢\真查詢\obj\Debug\真查詢.Form2.resources
?????文件????????180??2010-11-25?10:44??真查詢\真查詢\obj\Debug\真查詢.Properties.Resources.resources
?????文件??????24576??2010-12-10?21:40??真查詢\真查詢\obj\Debug\真查詢.exe
?????文件????????900??2010-11-25?12:22??真查詢\真查詢\obj\Debug\真查詢.csproj.GenerateResource.Cache
?????文件??????28160??2010-12-10?21:40??真查詢\真查詢\obj\Debug\真查詢.pdb
?????文件????????351??2010-12-10?21:40??真查詢\真查詢\obj\真查詢.csproj.FileList.txt
?????文件????????468??2010-11-25?09:55??真查詢\真查詢\Program.cs
?????文件????????223??2010-11-25?10:44??真查詢\真查詢\App.config
?????文件???????4047??2010-11-25?11:07??真查詢\真查詢\Form1.Designer.cs
?????文件???????5814??2010-11-25?11:07??真查詢\真查詢\Form1.resx
?????文件???????5814??2010-11-25?12:22??真查詢\真查詢\Form2.resx
?????文件???????2341??2010-11-25?12:54??真查詢\真查詢\Form2.Designer.cs
?????文件???????1188??2010-11-25?17:09??真查詢\真查詢\Form2.cs
?????文件???????1351??2010-11-25?17:09??真查詢\真查詢\Form1.cs
?????文件????????916??2010-11-25?09:55??真查詢\真查詢.sln
????..A..H.?????14848??2010-12-10?21:40??真查詢\真查詢.suo
?????目錄??????????0??2010-11-25?09:55??真查詢\真查詢\obj\Debug\TempPE
?????目錄??????????0??2010-11-25?09:55??真查詢\真查詢\bin\Debug
............此處省略9個文件信息
- 上一篇:曲線測設程序C#
- 下一篇:在線考試系統B/S[C#]
評論
共有 條評論