文章分类 - C#
摘要:publicForm1(){InitializeComponent();this.webBrowser1.AllowWebBrowserDrop=false;//可在属性里设置,很重要//在新Form中的WebBrowser中打开(this.webBrowser1.ActiveXInstanceasSHDocVw.WebBrowser).NewWindow2+=newSHDocVw.DWebBrowserEvents2_NewWindow2EventHandler(Form1_NewWindow2);//在主WebBrowser中打开//(this.webBrowser1.ActiveXIns
阅读全文
摘要:usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;namespaceWindowsApplication3{publicpartialclassForm1:Form{publicForm1(){InitializeComponent();}privatevoidwebBrowser1_DocumentCompleted(objectsender,
阅读全文
摘要:在KeyPress事件中 privatevoidtextBox1_KeyPress(objectsender,System.Windows.Forms.KeyPressEventArgse){if(e.KeyChar==(char)13){this.textBox2.Focus();}}===================================================================================privatevoidtextBox1_KeyDown(objectsender,System.Windows.Forms.KeyEventArg
阅读全文
摘要:usingSystem;usingSystem.Net.Sockets;usingSystem.Net;usingSystem.Security.Cryptography;usingSystem.IO;///////////////////////////////////////////////类名:Pop3////功能:接收电子邮件///////////////////////////////////////////////namespaceZTSX.Email{///<summary>///Pop3的摘要说明。///</summary>publicclassPop3
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号