摘要:
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Diagnostics;namespace WinFormDGVTest{ public partial class Form1 : Form { public Form1() { InitializeComponent( 阅读全文
摘要:
在.net中实现拖拽控件主要用到以下事件MouseDown(object sender, MouseEventArgs e)MouseUp(object sender, MouseEventArgs e)MouseMove(object sender, MouseEventArgs e)这三个函数的作用分别是鼠标按下时激活,鼠标松开激活和鼠标移动需要考虑的情况如下1. 只有在鼠标按下的时候才可以使... 阅读全文