随笔分类 - 个人总结
总结问题,编程实现。
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u
阅读全文
摘要://检查端口是否被占用! public static bool PortInUseBl(int port) { bool inUse = false; IPGlobalProperties ipProperties = IPGlobalProperties.GetIPGlobalProperties
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.Win32;using System.Diagnostics;using System.IO; name
阅读全文
摘要:/**//* * Gary Zhang -- cbcye@live.com * www.cbcye.com * www.quicklearn.cn * cbcye.cnblogs.com */ using System; using System.Collections.Generic; using
阅读全文
摘要:1、using System; 2、 WebRequest myrequest = WebRequest.Create("http://www.baidu.com"); WebResponse myres = null; try
阅读全文
摘要:一、隐藏焦点 1、窗体中如果没有GotFocus事件时,只要把TabStop属性设置成false,就好了. 2、using System.Runtime.InteropServices; [DllImport("user32", EntryPoint = "HideCaret")
阅读全文
摘要:说明:Dictionary对象本身不支持序列化和反序列化,需要定义一个继承自Dictionary, IXmlSerializable类的自定义类来实现该功能。感觉完全可以把这样的类封装到C#库中,很具有通用性嘛,至今没有遇到不能用的情况的说,或许出于其他方面的考虑microsoft才没有这么做。 2
阅读全文
摘要:在PictureStudio中,我需要实现多国语言的界面切换,而且切换各种语言版本的时候希望程序是动态的加载语言,不希望切换语言后重新启动程序。 实现这样的功能可以有很愚蠢的方法,比如说你可以在程序中为界面上的所有国家的文字信息,在代码中进行赋值,你可以想像这样的做法是可以的,但绝对是愚蠢的,代码不
阅读全文
摘要:System.ComponentModel.ComponentResourceManager .ApplyResources 时间:2015-06-17 14:59:06 阅读:473 评论:0 收藏:0 [点我收藏+] 标签:des winform class style com 代码 http
阅读全文
摘要:备份 第一 :选择数据库右键任务,然后直接选择分离,再选择删除和更新上打勾,之后到sqlsever安装目录下查看,会生成xx.mdf和xx.ldf两个文件(既有表结构又有数据)。 第二:可以选择备份,选中数据库右键任务,选择备份(既有表结构又有数据),目标是备份到,如果已经有备份路径了,这时需要删掉
阅读全文