10 2013 档案

摘要:经常会碰到许多文字要加背景大图,自定义控件RichTextBox可以帮助我们,不过RichTextBox不是最好的选择,RichTextBox占用资源比较多,如果能重写TextBox是最好的。using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace Wi 阅读全文
posted @ 2013-10-25 08:18 醉低调 阅读(1344) 评论(0) 推荐(0)
摘要:c# winform窗体,点击窗体标题头可以拖动,如果鼠标点击在里面的panel的时候就没有这个效果了,以下实现拖动的方法。public class FormBase: Form { [DllImport("user32.dll")] //需添加using System.Runtime.InteropServices public static extern bool ReleaseCapture(); [DllImport("user32.dll")] public static extern bool SendMessage(... 阅读全文
posted @ 2013-10-24 11:47 醉低调 阅读(1198) 评论(0) 推荐(0)