2021年10月8日

Http Post

摘要: public static async Task<string> PostFormUrlEncoded(string url, IEnumerable<KeyValuePair<string, string>> postData) { using (var httpClient = new Http 阅读全文

posted @ 2021-10-08 15:46 lopengye 阅读(59) 评论(0) 推荐(0)

2019年10月28日

C# Windows API判断当前窗口是否与其他窗口有重叠(USER32.dll、dwmapi.dll)

摘要: 一个WPF项目中需要判断当前窗口是否与其他已打开的窗口有重叠,整理如下: 使用: 阅读全文

posted @ 2019-10-28 16:13 lopengye 阅读(849) 评论(0) 推荐(0)

2019年7月25日

asp.net mvc 设置文本框的宽高

摘要: @Html.TextArea("text","",new { @class = "bigfield", style = "width: 700px; height:150px;" }) 阅读全文

posted @ 2019-07-25 15:32 lopengye 阅读(256) 评论(0) 推荐(0)

2019年4月23日

C++ 判断当前系统x64 or x86

摘要: BOOL IsWow64(){ BOOL bIsWow64 = FALSE; //IsWow64Process is not available on all supported versions of Windows. //Use GetModuleHandle to get a handle t 阅读全文

posted @ 2019-04-23 15:34 lopengye 阅读(614) 评论(0) 推荐(0)

2019年1月7日

WPF tooltip 根据父元素属性决定是否显示

摘要: 例如:Placement为disable的时候,需要显示一段tooltip, 而当Placement为enable的时候,不显示 阅读全文

posted @ 2019-01-07 09:18 lopengye 阅读(405) 评论(0) 推荐(0)

2018年10月9日

x86项目中读取注册表Register数据项的方法

摘要: x86项目中使用Registry读取key/value的时候,会出现重定向的问题,解决方法如下: 阅读全文

posted @ 2018-10-09 14:25 lopengye 阅读(290) 评论(0) 推荐(0)

2018年5月7日

ComboBox Style

摘要: ... 阅读全文

posted @ 2018-05-07 15:54 lopengye 阅读(223) 评论(0) 推荐(0)

2017年10月30日

TextBlock 重写,当文本过长时,自动截断文本并出现Tooltip

摘要: 如下: 使用: 或: 新方法: 阅读全文

posted @ 2017-10-30 15:25 lopengye 阅读(371) 评论(1) 推荐(0)

2017年10月17日

WPF 中的OpenFileDialog和 OpenFolderDialog

摘要: OpenFolderDialog: OpenFileDialog: 阅读全文

posted @ 2017-10-17 14:27 lopengye 阅读(767) 评论(0) 推荐(0)

2017年7月21日

WPF ListView 使用GridView 带有Header 以及点击header排序 sort

摘要: ListView: NormalSortHeaderTemplate: AscSortHeaderTemplate: DescSortHeaderTemplate: GridViewColumnHeader: ButtonBaseClickedHandler: 附上其他细节: 阅读全文

posted @ 2017-07-21 08:42 lopengye 阅读(2850) 评论(0) 推荐(0)

导航