This repository has been archived on 2024-08-06. You can view files and clone it, but cannot push or open issues or pull requests.
linear-app-launcher/MainForm.cs

46 lines
1.0 KiB
C#
Raw Normal View History

2020-03-28 02:54:08 +00:00
using AppLauncher.Windows.Forms;
using System;
2020-03-27 23:16:34 +00:00
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace AppLauncher
{
2020-03-28 02:54:08 +00:00
public partial class MainForm : AForm
2020-03-27 23:16:34 +00:00
{
2020-03-28 02:54:08 +00:00
public MainForm() : base()
2020-03-27 23:16:34 +00:00
{
InitializeComponent();
2020-03-28 02:54:08 +00:00
pictureBox1.MouseDown += windowMoveControl_MouseDown;
pictureBox1.MouseUp += windowMoveControl_MouseUp;
pictureBox1.MouseMove += windowMoveControl_MouseMove;
2020-03-27 23:16:34 +00:00
}
//private void Form1_MouseDown(object sender, MouseEventArgs e)
//{
// const int WM_NCLBUTTONDOWN = 0xA1;
// const int HT_CAPTION = 0x2;
// this.Capture = false;
// Message msg = Message.Create(this.Handle, WM_NCLBUTTONDOWN, (IntPtr)HT_CAPTION, IntPtr.Zero);
// WndProc(ref msg);
//}
}
}