没有合适的资源?快使用搜索试试~ 我知道了~
使得调试后的c#程序上面的某些控件可以在窗口之内随便移动。
资源推荐
资源详情
资源评论
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private int m_X;
private int m_Y;
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_MouseDown(object sender, MouseEventArgs e)
{
m_X = e.X - m_X;
m_Y = e.Y - m_Y;
}
private void button1_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private int m_X;
private int m_Y;
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_MouseDown(object sender, MouseEventArgs e)
{
m_X = e.X - m_X;
m_Y = e.Y - m_Y;
}
private void button1_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
资源评论
huanyingzhanxian
- 粉丝: 2
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功