随笔分类 -  C#

摘要:Server:using System.Net;using System.Net.Sockets;using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ServerCon... 阅读全文
posted @ 2014-08-14 16:15 oszhouzhb 阅读(136) 评论(0) 推荐(0)
摘要:private void Form1_Load(object sender, EventArgs e) { //这句代码不会抱错,但是需要手动输入,.net编辑器无法自动识别AllowDrop this.pictureBox1.A... 阅读全文
posted @ 2014-08-05 13:17 oszhouzhb 阅读(1021) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2014-07-28 15:28 oszhouzhb 阅读(751) 评论(0) 推荐(0)
摘要:项目右键属性——资源——添加资源展开——添加现有文件paint方法中: private void Form1_Paint(object sender, PaintEventArgs e) { using (Graphics g = e.Graphics) ... 阅读全文
posted @ 2014-07-23 21:14 oszhouzhb 阅读(243) 评论(0) 推荐(0)
摘要:[DllImport("user32.dll", EntryPoint="SendMessageA")] private static extern int SendMessage(IntPtr hwnd, uint wMsg, uint wParam, uint lParam); ... 阅读全文
posted @ 2014-07-11 15:49 oszhouzhb 阅读(539) 评论(0) 推荐(0)
摘要:using System;using System.Drawing;using System.Windows.Forms;namespace zhbCapture{ /// /// Description of Utils. /// public class Utils { public st... 阅读全文
posted @ 2014-07-11 15:39 oszhouzhb 阅读(273) 评论(0) 推荐(0)