RkcxForm.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
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 仓库条码管理系统
{
public partial class RkcxForm: Form
{
public RkcxForm()
{
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
InitializeComponent();
//最大化不遮住任务栏
Size form = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
this.MaximumSize = form;
}
/// <summary>
/// 窗体移动
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private bool IsMouse = false;
private Point FornLocation;
private Point moserOffset;
private void Yggl_MouseDown(object sender, MouseEventArgs e)
{
try
{
IsMouse = true;
FornLocation = this.Location;
moserOffset = Control.MousePosition;
}
catch (Exception ex)
{
MessageBox.Show("" + ex);
}
}
private void Yggl_MouseMove(object sender, MouseEventArgs e)
{
try
{
int x = 0, y = 0;
if (IsMouse)
{
Point pt = Control.MousePosition;
x = moserOffset.X - pt.X;
y = moserOffset.Y - pt.Y;
this.Location = new Point(FornLocation.X - x, FornLocation.Y - y);
}
}
catch (Exception ex) { MessageBox.Show("" + ex); }
后面还有 132 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
