随笔分类 - C#
摘要:Server:using System.Net;using System.Net.Sockets;using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ServerCon...
阅读全文
摘要:private void Form1_Load(object sender, EventArgs e) { //这句代码不会抱错,但是需要手动输入,.net编辑器无法自动识别AllowDrop this.pictureBox1.A...
阅读全文
摘要:bool isdown;//鼠标左键是否按下 Point mousepos;//鼠标位置 private void label1_MouseDown(object sender, MouseEventArgs e) { ...
阅读全文
posted @ 2014-08-01 14:53
oszhouzhb
摘要:using System;using System.Runtime.InteropServices;namespace ConsoleApplication1{ class Program { [DllImport("kernel32.dll")] publi...
阅读全文
摘要:项目右键属性——资源——添加资源展开——添加现有文件paint方法中: private void Form1_Paint(object sender, PaintEventArgs e) { using (Graphics g = e.Graphics) ...
阅读全文
摘要:[DllImport("user32.dll", EntryPoint="SendMessageA")] private static extern int SendMessage(IntPtr hwnd, uint wMsg, uint wParam, uint lParam); ...
阅读全文
摘要:using System;using System.Drawing;using System.Windows.Forms;namespace zhbCapture{ /// /// Description of Utils. /// public class Utils { public st...
阅读全文

浙公网安备 33010602011771号