通过Web访问windows远程桌面
Hyper-V 安装OpenWRT
Esxi 群晖7.1
Esxi TrueNAS 存储池的问题
zerotier异地组网
同步工具改进
阿里云同步工具
我的博客采用的架构
数据库同步工具
多线程域名查询工具
最新发布
admin
阅读(2117)
评论(0)
还实现了另外种按钮ImageButton 它是继承自PictureBox,并且不需要为按钮设置几张不同状态的图片如这个界面上的按钮就是这种这是鼠标移进去的效果 是重绘而来的usingSystem;
usingSystem.Collections.Generic;
usingSystem.Text;
usingSystem.ComponentModel;
usingSystem.Drawing;
usingSystem.Windows.Forms;
usingFYJ.Winform.Util;
namespaceFYJ.Winform.Controls
{
[Default [...] 阅读全文
admin
阅读(2288)
评论(0)
由于是用的自定义的按钮,系统按钮不能满足要求,所以需要对控件进行一定扩展,如果是继承Button有时会出现黑框,所以继承UserControl并且实现IButtonControl接口写了5种状态,正常情况、进入按钮区域、按下按钮、移出按钮区域、按钮被禁用,这5种状态是换5张不同的图片,也可以是一张图片进行不同区域的截取usingSystem;
usingSystem.Collections.Generic;
usingSystem.Text;
usingSystem.Drawing;
usingSystem.ComponentModel;
usingSystem.Windows.Fo [...] 阅读全文
admin
阅读(1787)
评论(0)
下面是对话框窗体usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Text;
usingSystem.Windows.Forms;
namespaceFYJ.Winform.Forms
{
publicpartialclassMessageBoxForm:BaseForm
{
privateMessageBoxButtons_buttons=MessageBoxButto [...] 阅读全文
admin
阅读(2165)
评论(0)
再看主窗体窗体加载base.OnLoad(e);
try
{
if(Settings.Default.skinColor!=null)
{
this.BackColor=Settings.Default.skinColor;
MyFormTemp.CurrentBackgroundColor=Settings.Default.skinColor;
}
if(Settings.Default.skinPic!=null)
{
if(File.Exists(Settings.Default.skinPic))
{
FileStreamfs=newFileStream(Set [...] 阅读全文
admin
阅读(2799)
评论(0)
接前面,来看主窗体代码构造函数和属性privateSizeoldSize;
publicBaseForm()
{
InitializeComponent();
if(!DesignMode)
{
//StrongNameCodeAccessPermission.Demand();
}
}
publicboolAllowMove
{
get{return_allowMove;}
set{_allowMove=value;}
}
privatebool_allowMove=true;重载Load事件Win32.CreateRoundRectRgn(0,0,this. [...] 阅读全文
admin
阅读(2599)
评论(0)
这是去年乃至前年做的一套皮肤控件,好久没管它了,之前也有些人问我要过源码,现在分享出来。之前积极性很高,还是花费了很多心血的,还想做到局部半透明,后来发现确实不太好做,要么做到了调整窗体大小就不行,还有窗体闪烁的问题也花了很多心思找了很多资料才解决。运用到了一些重绘和windows消息。先看看效果图吧下面是右键菜单项目结构这简单做一个系列,留着下篇来讲解 [...] 阅读全文
admin
阅读(1668)
评论(0)
我们将文件保存在IIS上,用文件路径直接访问,小文件还行,如果是一个GB级别的呢...所以做一个分片下载,能断点,支持限速。原理是用http头的Range,ETag等,这是参照网上找的资料,做了些修改,之前好像QQ旋风不能下载usingSystem;
usingSystem.Collections.Generic;
usingSystem.Text;
usingSystem.Web;
usingSystem.IO;
usingSystem.Threading;
namespaceFYJ.Upload.Filter
{
publicclassDownload
{
/* [...] 阅读全文
admin
阅读(1707)
评论(1)
自己写的一个pdo操作数据库类 全部用参数化的形式防止注入,还有根据数组自动生成sql 来执行新增和修改<?php
if(stristr($_SERVER["PHP_SELF"],basename(__FILE__)))
{
exit('forbidden');
}
require_once'IDbHelper.php';
classPdoHelperimplementsIDbHelper{
private$host;
private$user;
private$password;
private$ [...] 阅读全文
admin
阅读(1711)
评论(0)
自己写的一个php 用mysqli操作数据库辅助类<?php
if(stristr($_SERVER["PHP_SELF"],basename(__FILE__))){
exit('forbidden');
}
require_once'IDbHelper.php';
classMysqliHelperimplementsIDbHelper{
private$host;
private$user;
private$password;
private$dbname;
private$port;
priv [...] 阅读全文
admin
阅读(2106)
评论(0)
WCF 的安全性以及很健壮了,但是因为我的是虚拟空间,只能挂在iis上,也不能https,所以什么证书啥的都用不上,好像有个用户名密码认证也需要证书的情况下才能. 传统的办法是通过在服务的操作中从OperationContext.Current.IncomingMessageHeaders来获取Header中的内容,而在客户端在OperationContext.Current.OutgoingMessageHeaders中添加MessageHeader,但这种方式需要在每次客户端调用和每个服务操作中都增加类似代码片断,比较麻烦。 后来了解到可以通过自定义Behavior来实现,服务端和 [...] 阅读全文