嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559
本次赞助数额为: 2 元微信扫码支付:2 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
C#,winform,gdi ,简单实现鼠标拉出虚线框,适合新手
实现原理:
利用窗体的三个鼠标事件,按下,移动和释放。按下鼠标时,记录按下的坐标,按住移动时根据移动的位置计算长宽,用gid 画虚线框,显示到窗体上。松开鼠标时画一张透明图像清除上面的痕迹,方框消失。
.
├── C#,winform,gdi ,简单实现鼠标拉出虚线框,适合新手.rar
└── WindowsFormsApp1
├── WindowsFormsApp1
│ ├── App.config
│ ├── Form1.Designer.cs
│ ├── Form1.cs
│ ├── Form1.resx
│ ├── Program.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ ├── RoundButton.cs
│ ├── WaterTextBox.Designer.cs
│ ├── WaterTextBox.cs
│ ├── WindowsFormsApp1.csproj
│ ├── bin
│ │ ├── Debug
│ │ │ ├── WindowsFormsApp1.exe
│ │ │ ├── WindowsFormsApp1.exe.config
│ │ │ └── WindowsFormsApp1.pdb
│ │ └── Release
│ └── obj
│ └── Debug
│ ├── DesignTimeResolveAssemblyReferences.cache
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── TempPE
│ ├── WindowsFormsApp1.Form1.resources
│ ├── WindowsFormsApp1.Properties.Resources.resources
│ ├── WindowsFormsApp1.csproj.AssemblyReference.cache
│ ├── WindowsFormsApp1.csproj.CoreCompileInputs.cache
│ ├── WindowsFormsApp1.csproj.FileListAbsolute.txt
│ ├── WindowsFormsApp1.csproj.GenerateResource.cache
│ ├── WindowsFormsApp1.exe
│ └── WindowsFormsApp1.pdb
└── WindowsFormsApp1.sln
9 directories, 29 files