文章分类 -  C#

摘要:publicForm1(){InitializeComponent();this.webBrowser1.AllowWebBrowserDrop=false;//可在属性里设置,很重要//在新Form中的WebBrowser中打开(this.webBrowser1.ActiveXInstanceasSHDocVw.WebBrowser).NewWindow2+=newSHDocVw.DWebBrowserEvents2_NewWindow2EventHandler(Form1_NewWindow2);//在主WebBrowser中打开//(this.webBrowser1.ActiveXIns 阅读全文
posted @ 2011-05-25 22:36 C#&SQL 阅读(778) 评论(0) 推荐(0)
摘要:usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;namespaceWindowsApplication3{publicpartialclassForm1:Form{publicForm1(){InitializeComponent();}privatevoidwebBrowser1_DocumentCompleted(objectsender, 阅读全文
posted @ 2011-05-25 22:35 C#&SQL 阅读(376) 评论(0) 推荐(0)
摘要:在KeyPress事件中 privatevoidtextBox1_KeyPress(objectsender,System.Windows.Forms.KeyPressEventArgse){if(e.KeyChar==(char)13){this.textBox2.Focus();}}===================================================================================privatevoidtextBox1_KeyDown(objectsender,System.Windows.Forms.KeyEventArg 阅读全文
posted @ 2011-05-25 20:53 C#&SQL 阅读(1188) 评论(0) 推荐(0)
摘要:usingSystem;usingSystem.Net.Sockets;usingSystem.Net;usingSystem.Security.Cryptography;usingSystem.IO;///////////////////////////////////////////////类名:Pop3////功能:接收电子邮件///////////////////////////////////////////////namespaceZTSX.Email{///<summary>///Pop3的摘要说明。///</summary>publicclassPop3 阅读全文
posted @ 2011-05-25 19:44 C#&SQL 阅读(587) 评论(0) 推荐(0)
摘要:usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.IO;usingSystem.Data;usingSystem.Data.SqlClient;namespaceDAL{publicclassSQLHelper{privateSqlConnectionconn=null;privateSqlCommandcmd=null;privateSqlDataReadersdr=null;privateDataSetds=newDataSet();privateSqlDataAdaptersda=null;p 阅读全文
posted @ 2011-05-25 18:58 C#&SQL 阅读(1176) 评论(0) 推荐(1)