摘要:
在winform中可以拖动窗体移动!bool canMove = true;private Point mouseOffset; //记录鼠标指针的坐标private bool isMouseDown = false; #region 移动窗体 private void panel1_MouseDown(object sender, MouseEventArgs e) { int xOffset; int yOffset; if (e.Button == MouseBu... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace WindowsApplication9{ public partial class MainForm : Form { string username = "";//用户名 ... 阅读全文