.NET
AI-kim
懒!!!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
List、DataTable和对象互转,List转DataTable异常Nullable解决方案
using System;using System.Collections.Generic;using System.Data;using System.Reflection; namespace ClassLibrary1 { public class DataConvert { /// <summary> /// DataTab...原创 2018-07-02 10:25:15 · 894 阅读 · 0 评论 -
SignalR 2.2.1实现跨域Hub
(一)、.NET必须4.5。没有下载好pack包的,需要在NuGet包管理器里的控制台里执行以下两句代码安装必要Dll:1.Install-Package Microsoft.AspNet.SignalR2.Install-Package Microsoft.Owin.Cors如果有现成的Dll,需要引用下图中红框Dll(二)、创建Hub类using Microsoft.AspNet.Signal...原创 2018-07-02 10:29:04 · 2042 阅读 · 1 评论 -
Windows注册系统服务
需求:在做程序接口需要托管至服务开机自启动、监听服务等功能的。入口函数:using System;using System.Configuration.Install;using System.ServiceProcess;using System.Windows.Forms; namespace MailServerService { /// <summary> ...原创 2018-07-02 10:30:36 · 966 阅读 · 0 评论 -
绘制圆角TextBox文本框
public class TextBoxCu : Control { public TextBoxCu() { this.SetStyle(ControlStyles.UserPaint, true); this.SetStyle(ControlStyles.ResizeRedraw, true); this.SetStyle(Control...原创 2018-07-02 10:34:40 · 6676 阅读 · 3 评论 -
绘制开关按钮
[DefaultEvent("SwitchChanged")]public class SwitchBox : Control { public SwitchBox() { this.SetStyle(ControlStyles.UserPaint, true); this.SetStyle(ControlStyles.ResizeRedraw, true...原创 2018-07-02 10:35:33 · 722 阅读 · 0 评论 -
自动完成TextBox实现类似百度搜索框
public class AsSearchTextBox : TextBox { #region 字段 /// <summary> /// 列表框 /// </summary> private ListBox listBox; /// <summary> /// 记住前输入的字符串 /// ...原创 2018-07-02 10:36:26 · 2359 阅读 · 0 评论 -
TabControl重绘带关闭按钮和页选择
TabStrip:[Designer(typeof(AsTabStripDesigner))][DefaultEvent("TabStripItemSelectionChanged")][DefaultProperty("Items")][ToolboxItem(true)][ToolboxBitmap("FATabStrip.bmp")]public class AsTabStrip ...原创 2018-07-02 10:38:27 · 1311 阅读 · 0 评论
分享