📌  相关文章
📜  如何制作可拖动的 Visual Studio 面板 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:45.410000             🧑  作者: Mango

代码示例1
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;

namespace daniweb
{
  public partial class frmPanel : Form
  {
    private Point start;

    public frmPanel()
    {
      InitializeComponent();
    }

    private void panel1_MouseDown(object sender, MouseEventArgs e)
    {
      if (e.Button == MouseButtons.Left) …