会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hack747
没有永远的菜鸟
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
下一页
2022年5月2日
C#将string转换为byte[]
摘要: 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
阅读(580)
评论(0)
推荐(0)
2022年4月27日
C源文件在Linux系统上的编译
摘要: 首先 yum install gcc 安装完成后 gcc -o 指定文件名 文件(gcc -o hello hello.c) 另外 对pthread_create未定义的引用 pthread库不是Linux系统默认的库,连接时需要使用库libpthread.a,在编译中要加-lpthread(放在命
阅读全文
posted @ 2022-04-27 18:26 hack747
阅读(104)
评论(0)
推荐(0)
WPF自写大小化关闭按钮的应用实例
摘要: <Button x:Name="btnMin" Content="―" Style="{StaticResource MaterialDesignFlatMidBgButton}" /> <Button x:Name="btnMax" Content="☐" Style="{StaticResour
阅读全文
posted @ 2022-04-27 10:54 hack747
阅读(235)
评论(0)
推荐(0)
WPF圆形头像image
摘要: 如何给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
阅读(483)
评论(0)
推荐(2)
2022年4月26日
WPF AllowsTransparency 的作用
摘要: WPF AllowsTransparency的作用 AllowsTransparency="False"//表示不允许窗体透明 效果是这样的: 很明显窗体四周有边框包围。若值为True,效果是这样的: 当然,上例是 Background="Transparent" 若设置了颜色效果是这样的: Bac
阅读全文
posted @ 2022-04-26 19:02 hack747
阅读(362)
评论(0)
推荐(0)
2022年4月24日
CentOS下添加Root权限用户(超级用户)方法
摘要: [root@server ~]# useradd chenjiafa //添加一个名为chenjiafa的用户 [root@server ~]# passwd chenjiafa //修改密码 Changing password for user chenjiafa. New UNIX passwo
阅读全文
posted @ 2022-04-24 09:19 hack747
阅读(816)
评论(0)
推荐(0)
2022年4月22日
C#程序运行添加开机启动
摘要: 直接放代码了 简单易懂 方法代码 // 获取全局 开始 文件夹位置 string directory = Environment.GetFolderPath(Environment.SpecialFolder.CommonStartup); // 获取当前登录用户的 开始 文件夹位置 //Envir
阅读全文
posted @ 2022-04-22 11:05 hack747
阅读(107)
评论(0)
推荐(0)
C#写出程序运行请求管理员运行(UAC权限)
摘要: 首先右键项目 新建 添加一个应用程序清单文件 找到requestedExecutionLevel 我直接放代码了 一看就懂 <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> level改成require
阅读全文
posted @ 2022-04-22 10:48 hack747
阅读(283)
评论(0)
推荐(0)
2022年4月18日
WPF动画基础
摘要: 前端代码 <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
阅读(37)
评论(0)
推荐(0)
WPF静态资源动态资源资源字典的详解
摘要: MainWindow前端代码 <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsof
阅读全文
posted @ 2022-04-18 11:15 hack747
阅读(178)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
下一页
公告