C#ÀûÓÃwinapi¶¨Î»¿Ø¼þλÖÃËã·¨
public struct RECT
{
public int left;
public int Top;
public int Right;
public int Bottom;
}
public static bool CenterMouseOn(int hwnd)
{
int x=0;
int y=0;
int maxX=0;
int maxY=0;
RECT crect=new RECT();
int gFound=0;
GetDisplayResolution(ref maxX,ref maxY);
gFound=GetWindowRect(hwnd,ref crect);
x=crect.Left+((crect.Right-crect.Left)/2);
y=crect.Top+((crect.Bottom-crect.Top)/2);
if((x>=0&&x<=maxX)&&(y>=0&&y<=maxY))
{
MoveMouse(hwnd,x,y);
return true;
}
return false;
}
public static void GetDisplayResolution(ref int pixelX,ref int pixelY)
{
pixelX=GetSystemMetrics(SM_CXSCREEN);
pixelY=GetSystemMetrics(SM_CYSCREEN);
}
Ïà¹ØÎĵµ£º
a. ReportViewer¹ØÁªReport1.rdlcµÄ¼òµ¥³ÊÏÖ
b. ¶Ô´øÓб¨±í²ÎÊýµÄReport1.rdlcµÄ³ÊÏÖ
c.
ÀûÓóÌʽÉú³ÉµÄDataSet Ìî³ä±¨±í
d. µ÷Óô洢¹ý³Ì Éú³ÉDataSet Ìî³ä±¨±í
==========
¼òµ¥µÄ³ÊÏÖ
==========
1. ´ò¿ªVS2005£¬Îļþ->н¨->ÍøÕ¾ Ñ¡ÔñÓïÑÔÖÖÀࣨC#£©
2. Ôڸýâ¾ö·½°¸ÏÂ
Éè¼ÆÆäÒѾÉú³ÉµÄDefault.aspx ......
C#ÕýÔò±í´ïʽ±à³Ì£¨¶þ£©£ºRegexÀàÓ÷¨
¶ÔÓÚÕýÔò±í´ïʽµÄÓ¦Ó㬻ù±¾ÉÏ¿ÉÒÔ·ÖΪÑéÖ¤¡¢ÌáÈ¡¡¢·Ö¸îºÍÌæ»»¡£½ö½öÀûÓÃRegexÀà¾Í¿ÉÒÔʵÏÖÑéÖ¤ºÍ¼òµ¥Ìæ»»¡£
ÀûÓÃRegexÀàʵÏÖÑéÖ¤
¾Àú2009ÄêµÄ±¸°¸ºÍDNSÍ£Ö¹½âÎö·ç²¨Ö®ºó£¬´ó²¿·ÖµÄ´øÓз´À¡ÐÔµÄÍøÕ¾ºÍÂÛ̳¶¼¶ÔһЩÃô¸Ð´Ê½øÐÐÁ˹ýÂË£¬°üº¬ÓÐÕâÀàÃô¸Ð´ÊµÄÎÄÕÂҪôÄÚÈ ......
C#ÕýÔò±í´ïʽ±à³Ì£¨Èý£©£ºMatchÀàºÍGroupÀàÓ÷¨ ÊÕ²Ø ´ËÎÄÓÚ2010-03-09±»ÍƼöµ½CSDNÊ×Ò³
ÈçºÎ±»ÍƼö£¿
Ç°ÃæÁ½Æª½²ÊöÁËÕýÔò±í´ïʽµÄ»ù´¡ºÍһЩ¼òµ¥µÄÀý×Ó£¬ÕâÆª½«ÉÔ΢ÉîÈëÒ»µã̽ÌÖÒ»ÏÂÕýÔò±í´ïʽ·Ö×飬ÔÚ.NETÖÐÕýÔò±í´ïʽ·Ö×éÊÇÓÃMathÀàÀ´´ú±íµÄ¡£
Ê×ÏÈÏÈ¿´Ò»¶Î´úÂ룺
view plaincopy to clipboardprint?
/// &l ......
server:
Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram,ProtocolType.Udp);
IPEndPoint iep1 = new IPEndPoint(IPAddress.Broadcast, 9050);//255.255.255.255
IPEndPoint iep2 = new IPEndPoint(IPAddress.Parse("192.168.1.255"), 9050);
......
ÎÒÃÇ×öÁ˳ÌÐò£¬²»Ãâ»áÓа汾Éý¼¶£¬Õâ¾ÍÐèÒª³ÌÐòÓÐ×Ô¶¯°æ±¾Éý¼¶µÄ¹¦ÄÜ¡£
ÄÇô¿´¿´ÎÒÊÇÈçºÎʵÏÖ³ÌÐò×Ô¶¯¸üеġ£
Ö±½ÓÉÏ´úÂ룺
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.Net;
using System.Xml;
namespace ......