上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页
摘要: 1、C#中 property 与 attribute的区别,他们各有什么用处,这种机制的好处在哪里? property和attribute汉语都称之为属性。不过property是指类向外提供的数据区域。而attribute则是描述对象在编译时或运行时属性的。这两者是有本质区别的。 2、讲一讲你理解的web service,在dot net framework中,怎么很好的结合xml?(... 阅读全文
posted @ 2008-10-23 10:43 Landy_di 阅读(142) 评论(0) 推荐(0) 编辑
摘要: public bool run = false; public int count = 0; //发送次数 private static bool issuccess(string[] mailTo, string mailSubject, string mailBody) { string mailFrom = Sys... 阅读全文
posted @ 2008-10-23 10:42 Landy_di 阅读(249) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { string QQPath; using (RegistryKey reg = Registry.LocalMachine.OpenSubKey(@"Software\Tencent\QQ")) {... 阅读全文
posted @ 2008-10-23 10:41 Landy_di 阅读(298) 评论(0) 推荐(0) 编辑
摘要: DataAdapter 的 Update 方法:将 DataSet 中的更改解析回数据源。DataSet保存的数据是位于服务器内存里面的原数据库的“副本”。所以用DataSet更新数据的过程就是先对“副本”进行更新,然后在将“原本”更新。 Update 方法会将更改解析回数据源,但是自上次填充 DataSet 以来,其他客户端可能已修改了数据源中的数据。若要使用当前数据刷新 DataSet,请... 阅读全文
posted @ 2008-10-23 10:41 Landy_di 阅读(293) 评论(0) 推荐(0) 编辑
摘要: using System; using System.IO; public class FileApp { public static void Main() { // 在当前目录创建一个文件myfile.txt,对该文件具有读写权限 FileStream fsMyfile = new FileStream("myfile.txt" , ... 阅读全文
posted @ 2008-10-23 10:40 Landy_di 阅读(1012) 评论(0) 推荐(0) 编辑
摘要: public bool IsChina(string CString) { bool BoolValue=false; for (int i=0; i<CString.Length; i ) { if(Convert.ToInt32(Convert.ToChar(CString.Substring(i,1)))<Convert.ToInt32(Convert.ToCh... 阅读全文
posted @ 2008-10-23 10:39 Landy_di 阅读(103) 评论(0) 推荐(0) 编辑
摘要: System.Net.Mail.SmtpClient client = new SmtpClient(); client.Host = "smtp.163.com"; client.UseDefaultCredentials = false; client.Credentials = new System.Net.Networ... 阅读全文
posted @ 2008-10-23 10:37 Landy_di 阅读(122) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Diagnostics; class close_special_exe { static void Main() { Process[] myProcess; myProcess=Process.GetProcessesByName ("Notepad"); foreach(Pr... 阅读全文
posted @ 2008-10-23 10:36 Landy_di 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 1.绝对路径: this.pictureBox2.Image=Image.FromFile("D:\\001.jpg"); 2.相对路径: Application.StartupPath; 可以得到程序根目录 this.pictureBox2.Image=Image.FromFile(Application.StartupPath "\\1.gif"); 3.获得网络图片的路径... 阅读全文
posted @ 2008-10-23 10:35 Landy_di 阅读(248) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Threading; using System.IO; using System.Diagnost... 阅读全文
posted @ 2008-10-23 10:32 Landy_di 阅读(276) 评论(1) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页