摘要: http://support.microsoft.com/kb/310263/zh-cn 阅读全文
posted @ 2013-07-25 14:41 马老虎 阅读(196) 评论(0) 推荐(0) 编辑
摘要: public struct Struct_INTERNET_PROXY_INFO { public int dwAccessType; public IntPtr proxy; public IntPtr proxyBypass; }; [DllImport("wininet.dll", SetLastError = true)] private static extern bool InternetSetOption(IntPtr hInternet, in... 阅读全文
posted @ 2013-07-25 14:31 马老虎 阅读(312) 评论(0) 推荐(0) 编辑
摘要: using System.Net.Mail;public static bool SendMail(string messTo,string messBody) { MailMessage mess = new MailMessage(); mess.From = new MailAddress("mmm306306@163.com", "报警系统");//发件人 mess.Subject = "报警系统";//主题 mess.IsBodyHtml = true;//允许HTML ... 阅读全文
posted @ 2013-07-25 14:27 马老虎 阅读(450) 评论(0) 推荐(0) 编辑
摘要: /* * 2009年8月6日13:19:20 * 调用:this.label1.Text = DXHanZiToPinYin.DXHanZiToPinYin.Convert(this.textBox1.Text); */using System;using System.Collections.Generic;using System.Text;using System.Text.RegularExpressions;using System.Web;namespace DXHanZiToPinYin{ public class DXHanZiToPinYin { #... 阅读全文
posted @ 2013-07-25 14:21 马老虎 阅读(2082) 评论(0) 推荐(0) 编辑
摘要: string Today = DateTime.Now.ToString("yyyy-MM-dd dddd",new System.Globalization.CultureInfo("zh-CN"));______________2009-12-09 星期三 阅读全文
posted @ 2013-07-25 14:19 马老虎 阅读(294) 评论(0) 推荐(0) 编辑
摘要: Test for the .NET Framework 3.5 阅读全文
posted @ 2013-07-25 14:16 马老虎 阅读(300) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { string str ="http://www.7y8.com/V/ip.asp"; MessageBox.Show("访问的IP地址是:"+getIPAddr(GetResponseStr(str))); } //使用代理访问 private string GetResponseStr(string str) { HttpWebRequest r... 阅读全文
posted @ 2013-07-25 14:15 马老虎 阅读(1255) 评论(0) 推荐(0) 编辑
摘要: 保存!public sealed class EncryptUtils { #region Base64加密解密 /// /// Base64加密 /// /// 需要加密的字符串 /// public static string Base64Encrypt(string input) { return Base64Encrypt(input, new UTF8Encoding()); } /// /// ... 阅读全文
posted @ 2013-07-25 12:57 马老虎 阅读(24641) 评论(4) 推荐(4) 编辑