上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页
摘要: To achieve this requirement, you need to create a "connectionstring" to connect them. Here is a simple demo that read data to "DataGridView". Properti 阅读全文
posted @ 2019-01-28 14:02 Kyle0418 阅读(208) 评论(0) 推荐(0) 编辑
摘要: [DllImport("uxtheme.dll", EntryPoint = "#95")] public static extern uint GetImmersiveColorFromColorSetEx(uint dwImmersiveColorSet, uint dwImmersiveCol 阅读全文
posted @ 2019-01-21 16:24 Kyle0418 阅读(654) 评论(0) 推荐(0) 编辑
摘要: 设置无边框 Form: 通过重写 WndProc 实现无边框窗体的拖动: 阅读全文
posted @ 2019-01-21 16:19 Kyle0418 阅读(688) 评论(3) 推荐(1) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.Title = "C# Corner Ope 阅读全文
posted @ 2019-01-17 17:07 Kyle0418 阅读(9521) 评论(0) 推荐(2) 编辑
摘要: 有两种调用方式,在使用之前都将控件“ElementHost”添加到 Form 中: 方式一: 直接声明wpf中控件(使用 Windows.Controls) 方式二: 首先新建一个 ”User Control“, 之后,如下编辑“UserControl1.xaml”中的内容: 最后,修改”Form1 阅读全文
posted @ 2019-01-09 16:48 Kyle0418 阅读(6257) 评论(0) 推荐(0) 编辑
摘要: First, you need to add "NHunspell" from "NuGet" and import it. The specific operation is as follows: Right click the Reference and select "Manage NuGe 阅读全文
posted @ 2019-01-09 16:32 Kyle0418 阅读(544) 评论(3) 推荐(0) 编辑
摘要: 下面的例子实现定时删除文件: 使用前需要从 NuGet 获取 FluentScheduler 并引用它。 阅读全文
posted @ 2019-01-07 14:53 Kyle0418 阅读(2583) 评论(0) 推荐(0) 编辑
摘要: static void SetWebBrowserFeatures(int ieVersion) { // don't change the registry if running in-proc inside Visual Studio if (LicenseManager.UsageMode ! 阅读全文
posted @ 2019-01-02 10:56 Kyle0418 阅读(1411) 评论(0) 推荐(0) 编辑
摘要: C# 利用反射动态创建对象——带参数的构造函数和String类型 C# 把类实例保存到文件里(类的序列化和反序列化) C# WinForm获取 当前执行程序路径的几种方法 阅读全文
posted @ 2018-12-27 14:08 Kyle0418 阅读(114) 评论(2) 推荐(0) 编辑
摘要: VS 提供了一种简单的方式来为应用设置多种语言——resx文件。下面演示具体的操作步骤。 1.首先新建 Winform 项目,向其添加控件,并命名 2.将 Form1 的 Localizable 属性设为 true, 设置该属性后,.net 将根据不同的语言,为应用程序生成不同的资源文件(resx文 阅读全文
posted @ 2018-12-25 13:19 Kyle0418 阅读(758) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页