
C#
live for myself
此人是真懒
展开
-
HandyControl中的ComboBox,自动下拉
HandyControl中的ComboBox,自动下拉原创 2025-04-18 19:34:57 · 110 阅读 · 0 评论 -
C#中dataGrid栏位高亮
C#中dataGrid栏位高亮原创 2025-04-18 14:45:07 · 158 阅读 · 0 评论 -
VS中加入调试
VS中加入调试原创 2024-07-15 17:00:25 · 149 阅读 · 0 评论 -
C#项目启动,一直提示未能加载文件或程序集
C#项目启动,一直提示未能加载文件或程序集原创 2024-06-20 15:35:26 · 505 阅读 · 0 评论 -
C# 给DataGridView加多选框
给DataGridView加多选框原创 2023-04-26 16:58:13 · 1930 阅读 · 1 评论 -
C# 中worksheet.get_Range和C# 中worksheet.Range
C# 中worksheet.get_Range和C# 中worksheet.Range原创 2023-03-14 17:12:25 · 1040 阅读 · 0 评论 -
C# this.InvokeRequired
C# this.InvokeRequired原创 2023-03-10 17:05:33 · 711 阅读 · 0 评论 -
C# 试图加载格式不正确的程序。 (异常来自 HRESULT:0x8007000B)---Debug可以运行,release不可以运行
C# Debug可以运行,release不可以运行原创 2023-03-01 16:50:34 · 848 阅读 · 0 评论 -
C# 给DataTable新增一列
C# 给DataTable新增一列原创 2023-03-01 10:29:02 · 203 阅读 · 0 评论 -
C# string.LastIndexOf()
C# string.LastIndexOf()原创 2023-02-24 14:50:17 · 435 阅读 · 0 评论 -
C#中sqlCommand和sqlDataAdapter的区别
C#中sqlCommand和sqlDataAdapter的区别原创 2023-02-22 15:12:49 · 503 阅读 · 0 评论 -
C#中sqlCommand.Parameters.Add与AddRange
C#中sqlCommand.Parameters.Add与AddRange原创 2023-02-21 11:07:04 · 1713 阅读 · 0 评论 -
C# 中CommandType.StoredProcedure
C# 中CommandType.StoredProcedure原创 2023-02-16 13:25:30 · 585 阅读 · 0 评论 -
C# 中的SqlDbType.Structured
C# 中的SqlDbType.Structured原创 2023-02-16 11:19:55 · 504 阅读 · 0 评论 -
C# 固定窗口位置
C# 固定窗口位置原创 2023-02-15 10:17:48 · 1422 阅读 · 0 评论 -
存储过程中 IF @@error <>0 GOTO ErrHandle
存储过程中 IF @@error 0 GOTO ErrHandle原创 2023-02-06 16:27:26 · 548 阅读 · 0 评论 -
C# 根据路径打开文件位置
打开文件位置原创 2023-01-18 11:09:05 · 319 阅读 · 0 评论 -
C#中path用法
C#中path用法原创 2023-01-13 17:08:30 · 80 阅读 · 0 评论 -
当前不会命中断点,源代码与原始版本不同
当前不会命中断点,源代码与原始版本不同原创 2023-01-09 15:33:44 · 1089 阅读 · 0 评论 -
C# 实现double转科学计数法
C# 实现double转科学计数法原创 2022-11-22 16:14:36 · 1973 阅读 · 0 评论 -
如何看C#程式
右击,再选转向定义就可以看到原创 2021-11-11 10:57:58 · 339 阅读 · 0 评论 -
如何使用VS打包项目
右击解决方案下的文件名,就会出现下图,直接点发布即可原创 2021-11-11 10:55:34 · 611 阅读 · 0 评论 -
C#中GET,POST請求API
/// 提交数据请求 post public static string CreatePostHttpResponse(string uid, long timestamp) { string serviceAddress = "http://10.66.85.XXX "; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(serviceAddress); ...原创 2020-07-16 15:56:35 · 384 阅读 · 0 评论 -
异常:Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046}
功能说明:在服务器上生成excel,并將其轉為PDF格式异常信息:Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 拒绝访问。 (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).檢查是否是因為 服务器端未安装Offic原创 2020-06-09 17:17:05 · 636 阅读 · 0 评论 -
在asp.net中操作excel,excel进程无法关闭解决方法(亲测有效)
这个问题纠缠我好几天了,终于在无数的解决方案中找到了有效的具体实现如下:[DllImport(“User32.dll”, CharSet = CharSet.Auto)]public static extern int GetWindowThreadProcessId(IntPtr hwnd, out int ID);public static void Kill(Microsoft.Office.Interop.Excel.Application excel){excel.Quit();In原创 2020-06-03 11:09:47 · 767 阅读 · 0 评论