摘要: 在vs2008中做word2007插件的时候,新建文档会使tab页焦点移动到word的开始, void Focus() { tab2.KeyTip = "U"; SendKeys.Send("%"); SendKeys.SendWait("U{ENTER}"); }这种方式并不是很好,但是暂时解决了部分问题。 阅读全文
posted @ 2011-05-19 20:20 探花客客 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: 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) 编辑
摘要: 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) 编辑
摘要: --声明游标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) 编辑
摘要: 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) 编辑
摘要: public static void Get(int k) { try { for (; k < 761; k++) { } } catch { G... 阅读全文
posted @ 2008-11-12 09:28 探花客客 阅读(179) 评论(0) 推荐(0) 编辑