珂珂的个人博客 - 一个程序猿的个人网站

最新发布

winform

FYJ.Winform皮肤-窗体组件-仿QQ调色面板(八)-文本框

admin 阅读(2528) 评论(0)

由于系统的TextBox不太好看,也自己重绘一个,没有继承自TextBoxusingSystem; usingSystem.Collections.Generic; usingSystem.Text; usingSystem.Drawing; usingSystem.Windows.Forms; usingSystem.ComponentModel; namespaceFYJ.Winform.Controls { publicpartialclassCommonTextBox:System.Windows.Forms.UserControl { privateGraph [...]   阅读全文

winform

FYJ.Winform皮肤-窗体组件-仿QQ调色面板(七)-按钮3

admin 阅读(2895) 评论(0)

还实现了另外种按钮ImageButton 它是继承自PictureBox,并且不需要为按钮设置几张不同状态的图片如这个界面上的按钮就是这种这是鼠标移进去的效果 是重绘而来的usingSystem; usingSystem.Collections.Generic; usingSystem.Text; usingSystem.ComponentModel; usingSystem.Drawing; usingSystem.Windows.Forms; usingFYJ.Winform.Util; namespaceFYJ.Winform.Controls { [Default [...]   阅读全文

winform

FYJ.Winform皮肤-窗体组件-仿QQ调色面板(五)-按钮1

admin 阅读(3055) 评论(0)

由于是用的自定义的按钮,系统按钮不能满足要求,所以需要对控件进行一定扩展,如果是继承Button有时会出现黑框,所以继承UserControl并且实现IButtonControl接口写了5种状态,正常情况、进入按钮区域、按下按钮、移出按钮区域、按钮被禁用,这5种状态是换5张不同的图片,也可以是一张图片进行不同区域的截取usingSystem; usingSystem.Collections.Generic; usingSystem.Text; usingSystem.Drawing; usingSystem.ComponentModel; usingSystem.Windows.Fo [...]   阅读全文

winform

FYJ.Winform皮肤-窗体组件-仿QQ调色面板(二)-基窗体

admin 阅读(3566) 评论(0)

接前面,来看主窗体代码构造函数和属性privateSizeoldSize; publicBaseForm() { InitializeComponent(); if(!DesignMode) { //StrongNameCodeAccessPermission.Demand(); } } publicboolAllowMove { get{return_allowMove;} set{_allowMove=value;} } privatebool_allowMove=true;重载Load事件Win32.CreateRoundRectRgn(0,0,this. [...]   阅读全文

winform

FYJ.Winform皮肤-窗体组件-仿QQ调色面板(一)-效果图

admin 阅读(3351) 评论(0)

这是去年乃至前年做的一套皮肤控件,好久没管它了,之前也有些人问我要过源码,现在分享出来。之前积极性很高,还是花费了很多心血的,还想做到局部半透明,后来发现确实不太好做,要么做到了调整窗体大小就不行,还有窗体闪烁的问题也花了很多心思找了很多资料才解决。运用到了一些重绘和windows消息。先看看效果图吧下面是右键菜单项目结构这简单做一个系列,留着下篇来讲解 [...]   阅读全文

.NET技术

asp.net服务器文件断点下载

admin 阅读(2151) 评论(0)

我们将文件保存在IIS上,用文件路径直接访问,小文件还行,如果是一个GB级别的呢...所以做一个分片下载,能断点,支持限速。原理是用http头的Range,ETag等,这是参照网上找的资料,做了些修改,之前好像QQ旋风不能下载usingSystem; usingSystem.Collections.Generic; usingSystem.Text; usingSystem.Web; usingSystem.IO; usingSystem.Threading; namespaceFYJ.Upload.Filter { publicclassDownload { /* [...]   阅读全文

php

pdo 操作数据库

admin 阅读(2160) 评论(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$ [...]   阅读全文