FYJ.Blogs开发系列(一)
很早很早就想做个自己博客,觉得写实际东西的话能学到不少技术,起码应该比光看书要好。我是从JAVA开始逐渐入门的,最开始写JAVA 桌面程序,渐渐开始对编程开始感兴趣。后来又开始做jsp网页,然后同学说要学SSH框架,有一次要做一个CAS 单点登录...弄了一个月,还是没整出来点啥,觉得真是太麻烦。 [...] 阅读全文
很早很早就想做个自己博客,觉得写实际东西的话能学到不少技术,起码应该比光看书要好。我是从JAVA开始逐渐入门的,最开始写JAVA 桌面程序,渐渐开始对编程开始感兴趣。后来又开始做jsp网页,然后同学说要学SSH框架,有一次要做一个CAS 单点登录...弄了一个月,还是没整出来点啥,觉得真是太麻烦。 [...] 阅读全文
这段时间再做下Discuz,发现有时候很慢很慢,有时一个页面请求超过30秒,这可如何能接受。最开始想是不是IIS的问题,因为是虚拟空间,我的php和.net混合在同个项目下,于是又在Web.config 删去各种HttpHandler,HttpMoudel等 只留下伪静态和首页设置,还是很慢... 然后我又用nginx 这可是出了名的快的东西,还是很慢。。 然后各种百度查找原因,有的说是远程引用js访问慢,我看到确实每个页面有加上http://discuz.gtimg.cn/cloud/scripts/discuz_tips.js 这段js,于是在整个目录去找,在source/plugin/ [...] 阅读全文
usingSystem; usingSystem.Collections.Generic; usingSystem.Text; usingSystem.Windows.Forms; usingSystem.Drawing; usingFYJ.Winform.Util; usingSystem.Drawing.Drawing2D; usingSystem.Drawing.Text; namespaceFYJ.Winform.Controls { publicclassTabControlEx:System.Windows.Forms.TabControl { priv [...] 阅读全文
效果图usingSystem; usingSystem.Collections.Generic; usingSystem.ComponentModel; usingSystem.Drawing; usingSystem.Data; usingSystem.Text; usingSystem.Windows.Forms; usingSystem.IO; usingFYJ.Winform.Forms; namespaceFYJ.Winform.Controls { publicpartialclassPicSkin:UserControl { publicPicSki [...] 阅读全文
效果图原理是根据HSL 每个像素点填充这个矩形区域usingSystem; usingSystem.Collections.Generic; usingSystem.ComponentModel; usingSystem.Drawing; usingSystem.Data; usingSystem.Text; usingSystem.Windows.Forms; usingSystem.IO; usingFYJ.Winform.Forms; namespaceFYJ.Winform.Controls { publicpartialclassPicSkin:UserCo [...] 阅读全文
右键菜单的绘制有点特别 它是通过Renderer 属性,所以绘制部分是继承ToolStripProfessionalRenderer右键菜单的代码继承自ContextMenuStripusingSystem; usingSystem.Collections.Generic; usingSystem.Text; usingSystem.Windows.Forms; usingSystem.Drawing; usingSystem.Drawing.Drawing2D; usingSystem.ComponentModel; usingFYJ.Winform.Util; name [...] 阅读全文
还有一个继承自PictureBox的按钮,也是跟第一个原理差不多usingSystem; usingSystem.Collections.Generic; usingSystem.Text; usingSystem.ComponentModel; usingSystem.Drawing; usingSystem.Windows.Forms; usingFYJ.Winform.Util; namespaceFYJ.Winform.Controls { [DefaultEvent("Click")] publicclassImageButton:Syst [...] 阅读全文
这个控件是为选取背景而做的usingSystem; usingSystem.Collections.Generic; usingSystem.Text; usingSystem.Drawing; usingSystem.Windows.Forms; namespaceFYJ.Winform.Controls { publicclassPictureBoxWithBorder:System.Windows.Forms.PictureBox { publicPictureBoxWithBorder() { } protectedoverridevoidOnMou [...] 阅读全文
由于系统的TextBox不太好看,也自己重绘一个,没有继承自TextBoxusingSystem; usingSystem.Collections.Generic; usingSystem.Text; usingSystem.Drawing; usingSystem.Windows.Forms; usingSystem.ComponentModel; namespaceFYJ.Winform.Controls { publicpartialclassCommonTextBox:System.Windows.Forms.UserControl { privateGraph [...] 阅读全文
还实现了另外种按钮ImageButton 它是继承自PictureBox,并且不需要为按钮设置几张不同状态的图片如这个界面上的按钮就是这种这是鼠标移进去的效果 是重绘而来的usingSystem; usingSystem.Collections.Generic; usingSystem.Text; usingSystem.ComponentModel; usingSystem.Drawing; usingSystem.Windows.Forms; usingFYJ.Winform.Util; namespaceFYJ.Winform.Controls { [Default [...] 阅读全文