摘要: using System;using System.Collections.Generic;using System.Globalization;using System.Linq;using System.Text;using System.Threading.Tasks;using System... 阅读全文
posted @ 2015-06-04 14:32 Youjun 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Imports System.ComponentModelImports System.Runtime.InteropServicesImports System.TextPublic Class TextBoxEx Inherits TextBox Private acDropDown... 阅读全文
posted @ 2015-05-08 18:17 Youjun 阅读(644) 评论(0) 推荐(0) 编辑
摘要: Show WERhttps://social.msdn.microsoft.com/Forums/vstudio/en-US/d9bca249-aa7e-43fe-9d1f-eb45d19db344/showing-dmp-file-information-in-my-application?for... 阅读全文
posted @ 2015-04-26 17:39 Youjun 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 实例的功能是把一个图片加到html的img tag中。You can encode the image in base64. For exampleHere is a full example of how you can accomplish this:using System;using Sys... 阅读全文
posted @ 2015-04-14 15:50 Youjun 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 新建一个Trigger, 当使用update语句更新时,即使不更新Age字段,Age也会自动变为当前时间。CREATE TRIGGER tgr_modstampON ssAFTER UPDATE AS UPDATE ss SET Age = GETDATE() WHERE ID IN (SEL... 阅读全文
posted @ 2015-04-14 15:11 Youjun 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 首先是这个公共的类:globalKeyboardHook.csusing System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;using System.Windo... 阅读全文
posted @ 2015-04-13 15:22 Youjun 阅读(243) 评论(0) 推荐(1) 编辑
摘要: Option Strict OnImports System.Net.Mail ' Add ref Assemblies, Framework, System.Net' Link for getting email settings. Search for other mail server set... 阅读全文
posted @ 2015-04-02 15:33 Youjun 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 喜欢看C#的童鞋,这里有个工具,你们可以自己转换:http://converter.telerik.com/想达到这个效果,首先新建一个新的项目。在项目名字上面右击,新增一个类,类名为:TableLayoutPanelEx.vb。 然后只要复制下面的代码到类中即可。Public Class Tabl... 阅读全文
posted @ 2015-03-30 17:27 Youjun 阅读(2164) 评论(1) 推荐(1) 编辑
摘要: private void textBox1_TextChanged(object sender, EventArgs e) { DataGridViewCellStyle style = new DataGridViewCellStyle(); ... 阅读全文
posted @ 2015-03-27 17:36 Youjun 阅读(221) 评论(0) 推荐(0) 编辑
摘要: foreach (Screen scr_loopVariable in Screen.AllScreens){Screen scr = scr_loopVariable;double height = scr.Bounds.Height / this.CreateGraphics().DpiY;do... 阅读全文
posted @ 2015-03-26 11:03 Youjun 阅读(152) 评论(0) 推荐(0) 编辑