随笔分类 -  Winform

在实际工作中所遇之问题解答
.Net本地化资源
摘要:一、 演示如下图:二、 下载源代码:/Files/NewLand/CustomerCulter.rar三、 参考资料:Msdn:http://msdn.microsoft.com/zh-cn/library/system.globalization.cultureinfo(VS.80).aspxhttp://msdn.microsoft.com/zh-cn/library/c6zyy3s9(VS.... 阅读全文
posted @ 2009-05-11 14:50 kuning的程序博客 阅读(673) 评论(1) 推荐(0)
Poket PC 与 sqlserver2000(以上) RDA 方案
摘要:Poket PC 与 sqlserver2000(以上) RDA 最终实现的效果想必大家都知道了,现在我们讨论下具体实施。 开发环境: Visual Studio 2005. Microsoft ActiveSync(我是去微软下载的) Sqlce 3.0 (C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server... 阅读全文
posted @ 2007-08-09 18:45 kuning的程序博客 阅读(460) 评论(1) 推荐(0)
窗口父子俩
摘要:1 /// 2 /// 判断子窗口是否已经打开 3 /// 4 /// 5 /// 6 static bool OpenOnce(System.Windows.Forms.Form aform) 7 { 8 bool result=false; 9 ... 阅读全文
posted @ 2006-07-06 10:51 kuning的程序博客 阅读(224) 评论(0) 推荐(0)
关闭窗口时出现确认框架
摘要:1 protected override void Dispose( bool disposing ) 2 { 3 if(MessageBox.Show(this,"您真的要退出吗?","退出询问",MessageBoxButtons.YesNo,MessageBoxIcon.Question)==DialogResult.Yes ) 4 ... 阅读全文
posted @ 2006-07-06 10:41 kuning的程序博客 阅读(254) 评论(0) 推荐(0)
base64编码
摘要:base64 Encoding/Decoding Type in the message you want to encode in base64, or paste base64 encoded text into the text field, select Encode or Decode, ... 阅读全文
posted @ 2005-12-02 12:19 kuning的程序博客 阅读(271) 评论(0) 推荐(0)
执行系统的命令比如net use
摘要:1System.Diagnostics.Process process1;2 process1= new System.Diagnostics.Process();3 process1.EnableRaisingEvents = false;4 string strCmdLine;5 strCmdLine =... 阅读全文
posted @ 2005-12-02 12:14 kuning的程序博客 阅读(464) 评论(1) 推荐(0)
改变显示器分辨率:)
摘要:1using System; 2using System.Drawing; 3using System.Collections; 4using System.ComponentModel; 5using System.Windows.Forms; 6using System.Data; 7using System.Runtime.InteropServices; 8 9name... 阅读全文
posted @ 2005-12-02 12:10 kuning的程序博客 阅读(490) 评论(0) 推荐(0)
获取本地磁盘信息(WMI)
摘要:1using System; 2using System.Management; 3 4class Sample_MethodDataEnumerator 5{ 6 public static int Main(string[] args) 7 { 8 ManagementClass diskClass = new ManagementClass("win32_lo... 阅读全文
posted @ 2005-12-02 12:06 kuning的程序博客 阅读(479) 评论(0) 推荐(0)
备份到域里另一台计算机或从域内一台计算机上恢复
摘要:1exec master..xp_cmdshell 'net use f: \\mrfu\carBackup "" /user:mrfu\administrator' 2 3 4/**//*--说明: 5这句是强制建立映射 6f: 是映射网络路径对应本机的盘符,与下面的备份对应 7\\mrfu\carBackup 是要映射的网络... 阅读全文
posted @ 2005-12-02 12:01 kuning的程序博客 阅读(354) 评论(0) 推荐(0)
webservice异步调用
摘要:已经建立webservice:http:// webs异步调用.servervice1.asmx [STAThread] static void Main() { Application.Run(new Form1()); } private void Form1_Load(object sender, System.... 阅读全文
posted @ 2005-12-02 11:54 kuning的程序博客 阅读(739) 评论(0) 推荐(0)
登陆的两种写法
摘要:[STAThread] static void Main() { Form1 f1=new Form1(); f1.Hide(); Application.Run(f1); } private void Form1_Load(object sender, System... 阅读全文
posted @ 2005-12-02 11:44 kuning的程序博客 阅读(256) 评论(0) 推荐(0)