摘要: [StructLayout(LayoutKind.Sequential)] public struct SYSTEMTIME { public ushort wYear; public ushort wMonth... 阅读全文
posted @ 2015-01-19 10:03 倾天 阅读(530) 评论(0) 推荐(0) 编辑
摘要: @echo off rem 建立链接 net use \\192.168.2.3\share /user:username password rem 打开共享文件夹 explorer \\192.168.2.3\share Pause net use \\192.168.2.3\share /del... 阅读全文
posted @ 2015-01-16 15:52 倾天 阅读(305) 评论(0) 推荐(0) 编辑
摘要: eg:Cursor.Current = Cursors.WaitCursor;dosomething(); Cursor.Current = Cursors.Default; Cursor.Current = Cursors.WaitCursor;//等待Cursor.Current = Curs... 阅读全文
posted @ 2015-01-15 15:16 倾天 阅读(435) 评论(0) 推荐(0) 编辑
摘要: C#是一门支持多线程的语言,因此线程的使用也是比较常见的。由于线程的知识在Win32编程的时候已经说得过多,所以在.Net中很少介绍这部分(可能.Net不觉得这部分是它所特有的)。那么线程相关的问题大致有如下四类(这篇文章只讨论单线程、单线程与UI线程这两方面的问题)。问题一,线程的基本操作,例如:... 阅读全文
posted @ 2015-01-07 14:33 倾天 阅读(237) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Linq;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;using System.Drawing;using Syst... 阅读全文
posted @ 2014-12-04 17:39 倾天 阅读(568) 评论(0) 推荐(0) 编辑
摘要: 我们在做winform应用的时候,大部分情况下都会碰到使用多线程控制界面上控件信息的问题。然而我们并不能用传统方法来做这个问题,下面我将详细的介绍。首先来看传统方法:publicpartialclassForm1:Form{publicForm1(){InitializeComponent();}p... 阅读全文
posted @ 2014-12-04 15:00 倾天 阅读(2197) 评论(0) 推荐(0) 编辑
摘要: 1、我们知道,在使用Windows的开发机上用C#启动一个外部程序的方法有很多,但这些方法用在使用WinCE的目标工控机上都无能为力,现在小嫚儿以打开一个IE为例,介绍如何在WinCE下使用C#来打开一个外部文件:首先添加命名空间usingSystem.Runtime.InteropServices... 阅读全文
posted @ 2014-12-04 14:26 倾天 阅读(2629) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;using System.Drawing;public class MyLabel : Control{ pr... 阅读全文
posted @ 2014-12-04 10:24 倾天 阅读(286) 评论(0) 推荐(0) 编辑
摘要: static void Create() { string PathGPRS = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName()... 阅读全文
posted @ 2014-11-28 09:48 倾天 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 开发 基于wince 手持设备数据库应用时 由于是触摸屏 当datagrid 数据过多 往往用户烦于去控制又窄又细的上下滚动条 尤其是高分辨率的屏上 (如魅族M8系统 720×480)而且datagrid 不支持触摸拖动 所以自己研究出来如下 事件组合 1 //x y 是静态变量 鼠标按... 阅读全文
posted @ 2014-11-27 14:13 倾天 阅读(373) 评论(0) 推荐(0) 编辑