• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
wjshan0808

Learn from yesterday, Live for today, For a better tomorrow.
 ————wjshan0808

博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页
2015年1月13日
检测网络状态
摘要: /// /// Retrieves the connected state of the local system /// /// Pointer to a variable that receives the connection de... 阅读全文
posted @ 2015-01-13 16:05 wjshan0808 阅读(180) 评论(0) 推荐(0)
邮件发送接收
摘要: string server = this.txtserver.Text; MailMessage Mail = new MailMessage(this.txtFrom.Text, this.txtGet.Text); Ma... 阅读全文
posted @ 2015-01-13 15:38 wjshan0808 阅读(209) 评论(0) 推荐(0)
网页内容下载
摘要: string strl="";//存储编码 WebRequest request = WebRequest.Create(txtHtmlUrl.Text.Trim());//请求资源 WebResponse respons... 阅读全文
posted @ 2015-01-13 15:21 wjshan0808 阅读(143) 评论(0) 推荐(0)
[转] asp.net <%%>&<%#%>&<%=%>&<%@%>&<%$%>用法区别
摘要: 转自 参考 1.<% %>用来绑定后台代码 如: < % for(int i=0;i<100;i++) { Reaponse.Write(i.ToString()); } %> 2.<%# %> 是在绑定控件DataBind()方法执行时被执行,用于数据绑定 如: < %# Container.Da 阅读全文
posted @ 2015-01-13 14:53 wjshan0808 阅读(197) 评论(0) 推荐(0)
正则表达式
摘要: 邮箱验证:@"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"网址@"http(s)?://([\w-]+\.)+[\w-]+(//[\w- .//?%&=]*)?"15位或18位身份证号码@"\d{17}[\d|X]|\d{15}"手机号@"1(47|(3... 阅读全文
posted @ 2015-01-13 14:42 wjshan0808 阅读(112) 评论(0) 推荐(0)
加密器
摘要: ///随机数加密byte[] randomByte = new byte[16];//创建字节数组 //实例化加密随机数生成器 RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider(); ... 阅读全文
posted @ 2015-01-13 12:43 wjshan0808 阅读(209) 评论(0) 推荐(0)
2015年1月12日
程序集属性访问器
摘要: #region 程序集属性访问器 public string AssemblyTitle { get { object[] attributes = Assembly.GetExecu... 阅读全文
posted @ 2015-01-12 12:51 wjshan0808 阅读(306) 评论(0) 推荐(0)
模拟窗体附顶停靠隐藏
摘要: using System.Runtime.InteropServices;/* Winform的 FormBorderStyle=None; */namespace Windows_API_实现屏幕右下角_消息框_{ public partial class QQHide : F... 阅读全文
posted @ 2015-01-12 09:40 wjshan0808 阅读(212) 评论(0) 推荐(0)
2015年1月9日
WinForm利用 WinApi实现 淡入淡出 弹出 效果 仿QQ消息
摘要: 消息框:using System.Runtime.InteropServices;namespace Windows_API_实现屏幕右下角_消息框_{ public partial class Msg : Form { public Msg() { ... 阅读全文
posted @ 2015-01-09 13:48 wjshan0808 阅读(430) 评论(0) 推荐(0)
2015年1月8日
鼠标滚轮改变图片大小
摘要: 阅读全文
posted @ 2015-01-08 12:09 wjshan0808 阅读(210) 评论(0) 推荐(0)
2015年1月4日
Web TreeView 加载级联数据
摘要: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { dt = BLL.GetTable(); LoadLYRProperties(0, null); ... 阅读全文
posted @ 2015-01-04 16:12 wjshan0808 阅读(233) 评论(0) 推荐(0)
2014年12月31日
无边窗体的移动
摘要: #region 移动无边窗体 [DllImport("user32.dll")] public static extern bool ReleaseCapture(); [DllImport("user32.dll")] pub... 阅读全文
posted @ 2014-12-31 16:43 wjshan0808 阅读(242) 评论(0) 推荐(0)
2014年12月2日
C# Winform 水波纹效果
摘要: //添加自定义控件using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using Syst... 阅读全文
posted @ 2014-12-02 16:35 wjshan0808 阅读(1524) 评论(0) 推荐(0)
2014年11月20日
解决 linux [Fedora] 升级 导致VMware启动出现"before you can run vmware workstation, serveral modules must be complied and loaded into the runing kernel" 而无法卸载
摘要: 解决: 开机启动 进入 升级之前的内核系统 然后 执行卸载 VMware 命令# vmware-uninstall You have gotten this message because you are either downgrading VMwareWorkstation, Player, ... 阅读全文
posted @ 2014-11-20 14:09 wjshan0808 阅读(13253) 评论(0) 推荐(0)
Fedora20 MATE Destop 环境下安装Sougoupinyin输入法+皮肤
摘要: 卸载ibus# yum erase ibus* 选择性安装 fcitx# yum install fcitx fcitx-configtool$ ls -a$ vi .bashrc .bash_profile /etc/profile#追加____~~~ export GTK_IM_M... 阅读全文
posted @ 2014-11-20 02:46 wjshan0808 阅读(569) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3