摘要:(一).显示效果图 http://blog.csdn.net/ChengKing/archive/2005/11/27/538128.aspx (二)代码 1.前台界面代码: WebForm1 ...
阅读全文
文章分类 - C#之Control Study
介绍一些控件深层的用途
摘要:(一).显示截图效果 http://blog.csdn.net/ChengKing/archive/2005/11/20/533551.aspx (二).代码 1. *.aspx文件代码 WebForm1 2. *.cs代码文件 using System;using System.Coll...
阅读全文
摘要:(一)说明 一般情况下,使用DataGrid自带的翻页按钮就能够实现所有翻页操作了,但有时候想定制自己的翻页样式 或美化其显示效果,这时可以自已写个翻页用户控件. (二).显示效果载图 http://blog.csdn.net/ChengKing/archive/2005/11/20/533539.aspx (三)代码 1.*.aspx代码文件: ...
阅读全文
摘要:(一).功能描述 涉及到DragEnter DragDrop DragLeave DragOver QueryContinueDrag事件用法的一个例子 (二).代码 using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms...
阅读全文
摘要:using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Diagnostics; namespace WindowsApplication3{ /// /// Fo...
阅读全文
摘要:(一).说明 功能:用鼠标实现拖动图片. 用法:将鼠标指向一图片,按住鼠标左键拖动. 图片会随鼠标一起移动. (二).代码 (说明: 此功能我用的用途是将象棋游戏之棋子拖动效果) 读者可以将此功能用作其它用途,也可以用作设计其它的游戏. using System;using System.Drawing;using System.Collections;using S...
阅读全文
摘要:using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data; namespace 模拟鼠标{ /// /// Form1 的摘要说明。 /// public class Form1 : Sys...
阅读全文
摘要:(一).功能 有时候由于显示效果,需要将某个控件变一下形状. 本文举例将PictureBox[]数组变成圆形. (二).代码 (这里说明一下,我个人将它变形是因为我用PictureBox表示象棋棋子, 由于PictureBox默认是方 的, 所以得把它变成圆的) 大家可以将这个功能作为其它用途使用. using System;using System...
阅读全文
浙公网安备 33010602011771号