資源簡介
C#編寫的QQ簡單界面源代碼,個人覺得還是值得新手學習的

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
namespace?QQ
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?pictureBox1_Click(object?sender?EventArgs?e)
????????{
????????}
????????private?void?comboBox1_SelectedIndexChanged(object?sender?EventArgs?e)
????????{
????????}
????????private?void?button2_Click(object?sender?EventArgs?e)
????????{
????????????string?QQ?password;
????????????string[]?data1?={?“756074080“?“995223851“?“1113584854“?“1012893499“?“823998382““651853289“?};
????????????string[]?pw?=?{?“123“?“abc123“?};
????????????QQ?=?comboBox1.Text;
????????????password?=?textBox1.Text;
????????????if?(QQ?==?““)
????????????????MessageBox.Show(“請輸入QQ帳號“);
????????????else?if?(QQ?!=?data1[0]?&&?QQ?!=?data1[1]?&&?QQ?!=?data1[2]?&&?QQ?!=?data1[3]?&&?QQ?!=?data1[4]?&&?QQ?!=?data1[5])
????????????????MessageBox.Show(“不存在此QQ帳號請注冊新帳號“);
????????????else?if?(password?==?““)
????????????????MessageBox.Show(“請輸入QQ密碼“);
????????????else?if?(password?==?pw[0]?||?password?==?pw[1])
????????????????MessageBox.Show(“帳號/密碼正確,登錄成功“);
????????????else
????????????MessageBox.Show(“密碼錯誤,請重新輸入\n\n請注意大小寫“);
????????}
????????private?void?textBox1_TextChanged(object?sender?EventArgs?e)
????????{
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????Form2?f2?=?new?Form2();
????????????f2.Show();?
????????}
????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????????comboBox1.Text?=?“995223851“;
????????????comboBox2.Text?=?“在線“;
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????323584??2010-04-28?22:23??QQ\QQ\bin\Debug\QQ2011.exe
?????文件??????42496??2010-04-28?22:23??QQ\QQ\bin\Debug\QQ2011.pdb
?????文件???????5632??2005-12-08?14:51??QQ\QQ\bin\Debug\QQ2011.vshost.exe
?????文件?????319488??2010-04-24?23:32??QQ\QQ\bin\Release\QQ2011.exe
?????文件??????26112??2010-04-24?23:32??QQ\QQ\bin\Release\QQ2011.pdb
?????文件???????1930??2010-04-28?22:24??QQ\QQ\Form1.cs
?????文件??????12569??2010-04-28?22:18??QQ\QQ\Form1.Designer.cs
?????文件?????245342??2010-04-28?22:18??QQ\QQ\Form1.resx
?????文件????????330??2010-04-19?17:56??QQ\QQ\Form2.cs
?????文件???????2564??2010-04-19?17:56??QQ\QQ\Form2.Designer.cs
?????文件???????5814??2010-04-19?17:56??QQ\QQ\Form2.resx
?????文件????????334??2010-04-25?22:58??QQ\QQ\Form4.cs
?????文件???????1152??2010-04-25?22:58??QQ\QQ\Form4.Designer.cs
?????文件????????959??2010-04-28?22:18??QQ\QQ\obj\Debug\QQ.csproj.GenerateResource.Cache
?????文件?????160298??2010-04-28?22:18??QQ\QQ\obj\Debug\QQ.Form1.resources
?????文件????????180??2010-04-19?17:56??QQ\QQ\obj\Debug\QQ.Form2.resources
?????文件?????323584??2010-04-28?22:23??QQ\QQ\obj\Debug\QQ2011.exe
?????文件????????180??2010-04-25?22:57??QQ\QQ\obj\Debug\QQ2011.Form3.resources
?????文件??????42496??2010-04-28?22:23??QQ\QQ\obj\Debug\QQ2011.pdb
?????文件????????180??2010-04-19?18:20??QQ\QQ\obj\Debug\QQ2011.Properties.Resources.resources
?????文件???????4608??2010-04-24?23:34??QQ\QQ\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
?????文件????????618??2010-04-28?22:23??QQ\QQ\obj\QQ.csproj.FileList.txt
?????文件????????900??2010-04-24?23:32??QQ\QQ\obj\Release\QQ.csproj.GenerateResource.Cache
?????文件?????160298??2010-04-24?23:32??QQ\QQ\obj\Release\QQ.Form1.resources
?????文件????????180??2010-04-24?23:32??QQ\QQ\obj\Release\QQ.Form2.resources
?????文件?????319488??2010-04-24?23:32??QQ\QQ\obj\Release\QQ2011.exe
?????文件??????26112??2010-04-24?23:32??QQ\QQ\obj\Release\QQ2011.pdb
?????文件????????180??2010-04-24?23:32??QQ\QQ\obj\Release\QQ2011.Properties.Resources.resources
?????文件???????4608??2010-04-24?23:32??QQ\QQ\obj\Release\TempPE\Properties.Resources.Designer.cs.dll
?????文件????????461??2010-04-19?15:30??QQ\QQ\Program.cs
............此處省略27個文件信息
評論
共有 條評論