能简单以获取和设置鼠标的函数为例套个结构给我看看吗··我导入库这些也因为这个程序才开始去了解~~ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net.Sockets; using System.Net; using System.Threading; using System.Runtime.InteropServices;namespace SocketTest {
class SockServer {
public static void Main(string[] args) { ServerMethod(); }
能简单以获取和设置鼠标的函数为例套个结构给我看看吗··我导入库这些也因为这个程序才开始去了解~~
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Net;
using System.Threading;
using System.Runtime.InteropServices;namespace SocketTest
{
class SockServer
{
public static void Main(string[] args)
{
ServerMethod();
}
public static void ServerMethod() {
...........、、省略代码
}
}
}
我就是想在public static void ServerMethod()里面对鼠标进行获取位置和改变位置
需要添加Forms的引用。
添加forms的引用是什么意思··是要写成窗体程序?初学者··现在只是搞懂基本语法和一些基础知识~~求多多包涵指导~~