随笔分类 -  UI

标题栏外区域拖动窗体
摘要:我们知道对窗体的拖动只需要点住标题栏,拖动鼠标就可以了.但有些时候我们想在窗体的标题栏外的区域实行拖动窗体的操作.这时就要需要我们自已写些代码了,下面是我的做法,供大家参观. 新建一个窗体FORM1,并放入两个RADIOBUTTON控件,第一个是确定是否窗体拖动,第三个是确定是否指定某一区域进行窗体拖动. 以下是窗体代码: using System; using System.Col... 阅读全文
posted @ 2008-10-16 14:36 踏燕归来 阅读(228) 评论(0) 推荐(0)
图片取色小程序
摘要:本小程序功能:在图片上取某一点的颜色 主要代码如下: using System; using System.Diagnostics; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using Syst... 阅读全文
posted @ 2008-10-16 14:32 踏燕归来 阅读(269) 评论(0) 推荐(0)
绘制控件到图片
摘要:vs2005里面给控件提供了DrawToBitmap函数 例如: //保存窗体到图片 Bitmap formBitmap = new Bitmap(this.Width, this.Height); this.DrawToBitmap(formBitmap, new Rectangle(0, 0, this.Width, ... 阅读全文
posted @ 2008-10-16 14:29 踏燕归来 阅读(142) 评论(0) 推荐(0)