摘要: 1.查找Visual级别控件类型名称 public List<Visual> FindVisualChildren(DependencyObject dpObj) { List<Visual> childrenList = new List<Visual>(); int childrenCount 阅读全文
posted @ 2025-11-27 16:57 小犟 阅读(7) 评论(0) 推荐(0)
摘要: xaml: <Window x:Class="WpfApp3Test.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com 阅读全文
posted @ 2025-11-04 16:06 小犟 阅读(4) 评论(0) 推荐(0)
摘要: xaml: <Window x:Class="WpfApp3Test.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com 阅读全文
posted @ 2025-11-04 15:33 小犟 阅读(41) 评论(0) 推荐(0)
摘要: List<int> IDs; string placeholders = string.Join(", ", Enumerable.Repeat("?", resultIDs.Count)).Trim(); string sql = $@" SELECT ID, Name, NumWHERE ID 阅读全文
posted @ 2025-10-14 14:03 小犟 阅读(7) 评论(0) 推荐(0)
摘要: 方法一 SQL语句修改: ALTER TABLE 表名 ALTER COLUMN [ID列名] COUNTER(1,1) 原理: 直接修改自增列的属性,强制其下一个生成的值从1开始(COUNTER(起始值, 步长)) 适用条件: 表必须完全为空(DELETE 操作已清空所有数据); 必须在全新的数据 阅读全文
posted @ 2025-09-17 11:31 小犟 阅读(46) 评论(0) 推荐(0)
摘要: 环境:.NET FrameWork 4.8 应用:控制台应用 额外引用:using System.IO; 核心代码: // 目标文件夹路径string folderPath = @"D:\Project\MyPro\Base"; // 原始前缀和目标前缀string oldPrefix = "Bas 阅读全文
posted @ 2025-08-05 10:36 小犟 阅读(22) 评论(0) 推荐(0)
摘要: ##```create_database.cpp``` ``` #define _CRT_SECURE_NO_WARNINGS // 仅在 Windows 下使用,可通过条件编译处理 #ifdef _WIN32 #include <windows.h> #endif #include <sql.h> 阅读全文
posted @ 2025-03-23 16:25 小犟 阅读(57) 评论(0) 推荐(0)
摘要: ## threadbase2.h // c++11 #ifndef _THREADBASE2_H_ #define _THREADBASE2_H_ #pragma execution_character_set("utf-8") #include <iostream> #include <threa 阅读全文
posted @ 2025-03-17 11:22 小犟 阅读(62) 评论(0) 推荐(0)
摘要: 分隔符错误解决方案: 右下角空格4调为制表符长度4 阅读全文
posted @ 2024-10-17 16:22 小犟 阅读(33) 评论(0) 推荐(0)
摘要: 1.确认密码正确 2.确认ip网段正确(最好直接设置自动获取IP) 3.确认防火墙对wifi连接无影响(一般不会有影响) 4.重新安装wifi驱动(卸载wifi驱动(不要删除),重启电脑自动安装wifi驱动) 阅读全文
posted @ 2024-10-16 10:33 小犟 阅读(84) 评论(0) 推荐(0)