上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要: 信息来自:http://blog.csdn.net/bigeyescat/article/details/5966540以下例子是将Word打开,然后将它嵌入到winform窗体中,效果如下图:注意:该方法只适用于com的exe(如word,Excel之类),.net的编的exe就不能用这用方法嵌入到窗体中。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.W 阅读全文
posted @ 2013-12-09 12:27 Vincent.Dr 阅读(1947) 评论(0) 推荐(0)
摘要: 信息来自:http://blog.163.com/kunkun0921@126/blog/static/169204332201293023432113/using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Diagnostics;namespace ConsoleApp{ class ProcessDo { /// /// 获取进程相关信息 /// public static void ... 阅读全文
posted @ 2013-12-09 11:50 Vincent.Dr 阅读(817) 评论(0) 推荐(0)
摘要: This info is from:http://www.codeproject.com/Articles/302405/The-Easy-way-of-changing-Collation-of-all-DatabaseHave you encountered a problem where you wanted to change your database collation to default or even just change it to a different type? I guess what you had initially done (like me) was to 阅读全文
posted @ 2013-11-26 12:12 Vincent.Dr 阅读(360) 评论(0) 推荐(0)
摘要: public string Serialize(T serializeClass) { string xmlString = string.Empty; try { if (serializeClass != null) { XmlSerializer serializer = new XmlSerializer(typeof(T)); StringBuilder xmlStrin... 阅读全文
posted @ 2013-11-07 15:10 Vincent.Dr 阅读(767) 评论(0) 推荐(0)
摘要: 参考:http://blog.sina.com.cn/s/blog_6cccb1630100m23i.htmlHTML页面代码如下:Tab页切换DIVCSSJavaScriptHTML的DIV控件是其他控件的容器。当要以编程方式生成控件、隐藏/显示一组控件或本地化一组控件时,该控件尤其有用。级联样式表 (CSS) 包含应用于网页中的元素的样式规则。这些样式定义元素的显示方式以及元素在页面中的放置位置Javascript是一种由Netscape的LiveScript发展而来的原型化继承的面向对象的动态类型的区分大小写的客户端脚本语言,主要目的是为了解决服务器端语言,比如Perl,遗留的速度问题, 阅读全文
posted @ 2013-10-30 18:04 Vincent.Dr 阅读(5532) 评论(0) 推荐(0)
摘要: 信息来自:http://blog.csdn.net/renyouprince/article/details/4136176当我们在做WinForm的程序时,总是要弹出一些窗体,但弹出窗体看起来效果都不是很好,特别是弹出的窗体很多时,这时候就会影响整个软件的用户体验.所以还是要尽量的避免弹出窗体.我们可以用这样的方法来解决此问题,将父窗体作为容器,将字窗体显示到父窗体中,而不是作为弹出窗体.将弹出窗体显示在父窗体中,可在父窗体中加入一个Panel(或其他容器控件),然后将要弹出的窗体作为Panel的控件显示到Panel上.但此处要设置子窗体的两个属性:1.TopLevel,获取或设置一个值,该 阅读全文
posted @ 2013-10-27 08:05 Vincent.Dr 阅读(1659) 评论(0) 推荐(0)
摘要: xml如下: 4700203048783633 Failed to identify the card scheme of the supplied card number 1000001 TEST Invalid card type 21 1382512427原来的Entity如下: [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")] [Serializable()] [System.Diagnostics.DebuggerStepThroughAttribute 阅读全文
posted @ 2013-10-23 15:35 Vincent.Dr 阅读(2480) 评论(0) 推荐(0)
摘要: More info here:http://blogs.msdn.com/b/yojoshi/archive/2011/05/14/xml-serialization-and-deserialization-entity-classes-with-xsd-exe.aspxIntroductionMany time we come across the need ofparsing XML document and creating entities. These entities are later passed between multiple methods, stored as conf 阅读全文
posted @ 2013-10-21 13:59 Vincent.Dr 阅读(277) 评论(0) 推荐(0)
摘要: 1.将.MDF和.LDF文件拷到SQL Server2008数据目录,如:\\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA;2. 然后在SQL Server Management Studio 右击Datebases,选择Attach附加数据库,然后按提示ADD你刚刚添加的那个.MDF文件即可。 阅读全文
posted @ 2013-10-09 15:21 Vincent.Dr 阅读(962) 评论(0) 推荐(0)
摘要: 转自:http://www.connectionstrings.com/SQL ServerODBCStandard Security:"Driver={SQL Server};Server=Aron1;Database=pubs;Uid=sa;Pwd=asdasd;"Trusted connection:"Driver={SQL Server};Server=Aron1;Database=pubs;Trusted_Connection=yes;"PRompt for username and passWord:oConn.Properties(&quo 阅读全文
posted @ 2013-10-04 16:38 Vincent.Dr 阅读(224) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页