会员
众包
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
探花客客
C#.Net开发
博客园
首页
新随笔
联系
订阅
管理
2011年5月19日
vsto对让tab页获得焦点
摘要: 在vs2008中做word2007插件的时候,新建文档会使tab页焦点移动到word的开始, void Focus() { tab2.KeyTip = "U"; SendKeys.Send("%"); SendKeys.SendWait("U{ENTER}"); }这种方式并不是很好,但是暂时解决了部分问题。
阅读全文
posted @ 2011-05-19 20:20 探花客客
阅读(248)
评论(0)
推荐(0)
编辑
2009年1月7日
C#读写 ini文件
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Runtime.InteropServices;usingSystem.IO;namespaceTaskManager{publicclassINIClass{publicstringinipath;[DllImport("kernel32")]privatestaticexternlongWritePrivateProfileString(stringsection,stringkey,stringval,stringfileP
阅读全文
posted @ 2009-01-07 12:26 探花客客
阅读(171)
评论(0)
推荐(0)
编辑
2009年1月6日
sql2005实现行锁
摘要: begintranSELECT*FROMAparliquidationWITH(updlock)whereDetailpointer='5fdf708e-283a-405c-99e4-4f3509bf5848'updateAparliquidationsetbatchno=20whereDetailpointer='5fdf708e-283a-405c-99e4-4f3509bf5848'SELECT*FROMAparliquidationwaitfordelay'00:00:10'committran
阅读全文
posted @ 2009-01-06 12:37 探花客客
阅读(980)
评论(0)
推荐(0)
编辑
2009年1月5日
sql字符串聚合
摘要: create table AAA ( id int, NAME varchar(5) ) insert into AAA values(1,'a') insert into AAA values(1,'b') insert into AAA values(1,'c') insert into AAA values(2,'d') insert into AAA values(2,'e...
阅读全文
posted @ 2009-01-05 12:24 探花客客
阅读(337)
评论(0)
推荐(0)
编辑
2009年1月4日
sql2005中游标的简例
摘要: --声明游标declareuser_cursor1cursorforselectcodeidfromgl_userwherecodenamelike'%小%'--打开游标openuser_cursor1--定义参量declare@uidvarchar(40)--取值fetchnextfromuser_cursor1into@uid--循环while(@@fetch_status=0)begin--显示print@uid--游标指向下一条记录fetchnextfromuser_cursor1into@uidend--关闭游标closeuser_cursor1--释放dealloc
阅读全文
posted @ 2009-01-04 12:18 探花客客
阅读(507)
评论(1)
推荐(0)
编辑
2008年11月20日
excel=>DataSet(转)
摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->1usingSystem; 2usingSystem.Collections.Generic; 3usingSystem.Text; 4usingSystem....
阅读全文
posted @ 2008-11-20 15:38 探花客客
阅读(465)
评论(0)
推荐(0)
编辑
2008年11月12日
异常递归
摘要: public static void Get(int k) { try { for (; k < 761; k++) { } } catch { G...
阅读全文
posted @ 2008-11-12 09:28 探花客客
阅读(179)
评论(0)
推荐(0)
编辑