- 博客(8)
- 资源 (62)
- 问答 (1)
- 收藏
- 关注
原创 .Net线程足迹(三)——IsAlive属性
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace ThreadDemo{ class Program { static void Main(string[
2010-04-29 16:25:00 2210
原创 .Net线程足迹(二) ——传递参数至线程
方法一:应用ParameterizedThreadStart这个委托来传递输入参数,这种方法适用于传递单个参数的情况。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Lin
2010-04-26 15:19:00 3397
原创 SQLite启动事物
事务(DbTransaction):SQLite 缺省为每个操作启动一个事务,所以成批插入的时候,启动事务,比不启动事务快n倍。 在没启动事务之前往Sqlite数据库里插入1000多条数据的情况,结果每次都需要一两分钟才能完成.而在启动事物以后所需要的时间直接变成不到2秒!原来sqlite花两分钟是由于ExecuteNonQuery方法执行时自己提交了更新事务,默认执行更新操作是会自动
2010-04-16 15:22:00 2259
原创 .Net线程足迹(一)
开始学习线程了,做个记录:) 1、在这个小例子里,将创建一个新线程,我们将用两个线程演示多线程的工作方式。 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace ManualResetEv
2010-04-14 14:25:00 1517
转载 Control.Invoke&Control.BeginInvoke
只在创建控件的线程里设置控件的属性当然是可以的,但是两个线程都在自顾自的运行,我有什么办法让别的线程停下手头的工作,来执行我分派的任务,这又不是两个人,我可以跟他说下。嘿,您还别说,这里的机制还真像两个人,甲线程发个短信给乙线程说,哥们,我有个事儿自己不好处理,怕出问题,你抽空儿给我处理下。根据甲线程发短信的方式,甲线程要么发了短信后就忙自己的事儿然后等乙线程处理完后的消息,要么一直在那里傻傻的等
2010-04-09 15:34:00 1757
转载 Invoke and BeginInvoke
在Invoke或者BeginInvoke的使用中无一例外地使用了委托Delegate。 一、为什么Control类提供了Invoke和BeginInvoke机制?关于这个问题的最主要的原因已经是dotnet程序员众所周知的,我在此费点笔墨再次记录到自己的日志,以便日后提醒一下自己。1、windows程序消息机制Windows GUI程序是基于消息机制的,有个主线程维护着一个消息泵
2010-04-09 13:52:00 594
原创 Windows窗口和消息
进行Windows程序设计,实际上是在进行一种对象导向的程序设计(OOP)。这种对象正是Windows之所以命名为「Windows」的原因。作为对象,使用者会在屏幕上看到这些窗口,并通过键盘和鼠标直接与它们进行交互操作。窗口以「消息」的形式接收窗口的输入,窗口也用消息与其它窗口通讯。 这有一个Windows的消息范例:我们知道,大多数的Windows程序都有大小合适的应用程
2010-04-09 13:45:00 1017
原创 Delegate.BeginInvoke例子
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namesp
2010-04-09 13:19:00 8471
Oracle学习相关资料大全
2009-04-24
2009-4-21(2009-4-21)
2009-04-21
用于收集和监视系统的很多状态信息及监控注册表的Demo
2009-04-15
Mobile Tracker Application for SmartPhones
2009-04-14
Getting a Millisecond-Resolution DateTime under Windows CE
2009-04-10
读取Excel数据到DataGrid c#代码
2009-04-09
Pocket PC services
2009-04-01
PdfiumViewer-master(Framwork4.0).rar
2020-07-10
SQL Server CE Query Tool
2010-07-14
Add Custom Properties to a PropertyGrid
2009-08-29
PPC取设备唯一号GetDeviceUniqueID
2009-07-02
A TreeView Control with ComboBox Dropdown Nodes
2009-06-13
Custom ComboBoxes with Advanced Drop-down Features
2009-06-09
使用 OpenNETCF.Desktop.Communication.dll拷贝设备文件到PC
2009-05-15
VS2013设置断点后调试程序就卡死,求大神指教!!!!!!
2016-07-26
TA创建的收藏夹 TA关注的收藏夹
TA关注的人