摘要:
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices; using System.Text; 阅读全文
摘要:
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using Excel = Microsof 阅读全文
摘要:
1.什么时候用到invoke和beginInvoke --当调度线程不是主线程的时候 2.invoke和beginInvoke效率差别 测试方法:使用线程更新图片内容,此时,调度线程和非调度线程不是同一个,要用到封送处理(invoke或beginInvoke) Task.Factory.StartN 阅读全文
摘要:
using System; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Reflection; using System.Runtime.InteropServices; usin 阅读全文
摘要:
1.截图关键代码 public class ScreenShotHelper : MarshalByRefObject, IScreenShotHelper { public byte[] GetImage() { var wid = Screen.PrimaryScreen.Bounds.Widt 阅读全文
摘要:
说明:源码引用于:https://github.com/mrjono1/FastExcel由于,源码不支持在excel中添加特殊符号,故做了改动。改动如下:cell.cs文件的 internal StringBuilder ToXmlString(SharedStrings sharedString 阅读全文
摘要:
using iTextSharp.text; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.T 阅读全文
摘要:
Socket s = null; IPEndPoint ipe = new IPEndPoint(IPAddress.Parse("192.168.1.3"), 999); Socket tempSocket = new Socket(ipe.AddressFamily, SocketType.St 阅读全文
摘要:
IPEndPoint endPoint = new IPEndPoint(IPAddress.Any, 111); Socket s = new Socket(endPoint.Address.AddressFamily, SocketType.Dgram, ProtocolType.Udp); / 阅读全文
摘要:
关键代码 IntPtr notepadHandle =APPIntprt= _process.MainWindowHandle; int style = GetWindowLong(notepadHandle, GWL_STYLE); style = style & ~((int)WS_CAPTIO 阅读全文
摘要:
使用TCD.System.TouchInjection.dll using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using Sy 阅读全文
摘要:
<ec:PathListBox x:Name="numberPathListBox" IsHitTestVisible="False"> <ec:PathListBox.ItemTemplate> <DataTemplate> <TextBlock Foreground="White" Text=" 阅读全文
摘要:
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Windows.Controls; namespace 浏览器测试 { public class WebBrowserH 阅读全文
摘要:
using System; using System.Diagnostics; using System.Management; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Sy 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Prog 阅读全文
摘要:
using System; using System.IO; using System.Text; namespace Helper { public class EncodingHelper { public static Encoding GetType(FileStream fs) { byt 阅读全文
摘要:
var url = "http:/xxx"; var credential = "fooClientIdPassword:secret"; var userName = "xx"; var pwd = "xx"; var base64Credential = Convert.ToBase64Stri 阅读全文