摘要: 用这个命令ipconfig/release这个命令是释放的意思, ipconfig/renew这个就是更新的意思了. 至于ipconfig的其他相关命令你可以通过命令ipconfig/?查看关于它的其他命令 阅读全文
posted @ 2022-05-03 13:28 hack747 阅读(602) 评论(0) 推荐(0) 编辑
摘要: string str = "中国"; byte[] bufOfGB = System.Text.Encoding.GetEncoding("gb2312").GetBytes(str); Array.ForEach(bufOfGB,m=>Console.WriteLine(m)); Console. 阅读全文
posted @ 2022-05-02 20:43 hack747 阅读(516) 评论(0) 推荐(0) 编辑
摘要: 首先 yum install gcc 安装完成后 gcc -o 指定文件名 文件(gcc -o hello hello.c) 另外 对pthread_create未定义的引用 pthread库不是Linux系统默认的库,连接时需要使用库libpthread.a,在编译中要加-lpthread(放在命 阅读全文
posted @ 2022-04-27 18:26 hack747 阅读(92) 评论(0) 推荐(0) 编辑
摘要: <Button x:Name="btnMin" Content="―" Style="{StaticResource MaterialDesignFlatMidBgButton}" /> <Button x:Name="btnMax" Content="☐" Style="{StaticResour 阅读全文
posted @ 2022-04-27 10:54 hack747 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 如何给image控件变圆呢 很简单 只需要裁剪一下就可以了 <Image Width="25" Height="25" Source="/Images/user.jpg"> <Image.Clip> <EllipseGeometry Center="12.5,12.5" RadiusX="12.5" 阅读全文
posted @ 2022-04-27 10:39 hack747 阅读(420) 评论(0) 推荐(1) 编辑
摘要: WPF AllowsTransparency的作用 AllowsTransparency="False"//表示不允许窗体透明 效果是这样的: 很明显窗体四周有边框包围。若值为True,效果是这样的: 当然,上例是 Background="Transparent" 若设置了颜色效果是这样的: Bac 阅读全文
posted @ 2022-04-26 19:02 hack747 阅读(311) 评论(0) 推荐(0) 编辑
摘要: [root@server ~]# useradd chenjiafa //添加一个名为chenjiafa的用户 [root@server ~]# passwd chenjiafa //修改密码 Changing password for user chenjiafa. New UNIX passwo 阅读全文
posted @ 2022-04-24 09:19 hack747 阅读(781) 评论(0) 推荐(0) 编辑
摘要: 直接放代码了 简单易懂 方法代码 // 获取全局 开始 文件夹位置 string directory = Environment.GetFolderPath(Environment.SpecialFolder.CommonStartup); // 获取当前登录用户的 开始 文件夹位置 //Envir 阅读全文
posted @ 2022-04-22 11:05 hack747 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 首先右键项目 新建 添加一个应用程序清单文件 找到requestedExecutionLevel 我直接放代码了 一看就懂 <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> level改成require 阅读全文
posted @ 2022-04-22 10:48 hack747 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 前端代码 <Window x:Class="WpfApp2.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winf 阅读全文
posted @ 2022-04-18 13:06 hack747 阅读(25) 评论(0) 推荐(0) 编辑