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