随笔分类 - winForm(c#)
关于使用c#在office建立工具条
摘要:最近看到很多朋友在问如何在office中添加新工具条 简单写了一点代码,供大家参考 我使用vs2003开发office addin 首先定义了几个东西,大家看看应该都能明白 publicword.Applicationfkrl; publicobjecto=System.Reflection.Missing.Value; publicComman...
阅读全文
C#中实现文件拖放打开的方法
摘要:首先呢,要对拖放到控件中的数据进行判断 privatevoidtextBox1_DragEnter(objectsender,System.Windows.Forms.DragEventArgse) { if(e.Data.GetDataPresent(DataFormats.FileDrop)) ...
阅读全文
用C#实现Des加密和解密
摘要:今年把密码挂了,真是很郁闷的一件事情 DES啊 usingSystem; usingSystem.IO; usingSystem.Security.Cryptography; namespaceVavic { /**//// ///Security的摘要说明。 /// publicclassSecurity { const...
阅读全文
Office addin(1)
摘要:在插入CommandBar时,出现了这样的问题,每次打开word后,都会调用 bar = cm.Add("CM",o,o,o); 所以几次之后就发现出现了N个叫CM的Bar,呵呵 稍微郁闷了一下,改代码为 try { bar=cm["CM"]; } catch { bar = cm.Add("CM",o,o,o); } ...
阅读全文
浙公网安备 33010602011771号