2009年02月24日

原创 Repeated MouseHover events in C#

Due to a quirk in the way Windows handles events, once a mouse hover event has been triggered on a windows form control, another event cannot be triggered until the mouse leaves and re-enters the control. Sometimes you might need to process more than one MouseHover event, for example if you have a user control which has draws shapes on itself. As long as you have a record of where the shapes are (by storing them in a collection), you can use the method below as a workaround.I used th阅读全文>

发表于 @ 2009年02月24日 14:43:00|评论(loading...)|编辑|举报|收藏

2008年09月06日

原创 The first Improvisational theatre class in chengdu

This afternoon, I took part in  Improvisational theatre class. The organizer is Oliver who is Germany, working at SAP(chengdu). He live in Beverly garden, and we meet at its chamber's empty zoom. 阅读全文>

发表于 @ 2008年09月06日 20:28:00|评论(loading...)|编辑|举报|收藏

2008年09月02日

原创 WPF 4 System.Windows.Point

这个例子演示了Point 的若干种用法: 阅读全文>

发表于 @ 2008年09月02日 16:17:00|评论(loading...)|编辑|举报|收藏

原创 wpf 3

Today, I continue do some search for Wpf, I found something misunderstand before. For example, MouseEventArgs.GetPostion(), at last article, I pass in (IInputElement)this, but it's wrong, it should pass (UIElement)sender. 阅读全文>

发表于 @ 2008年09月02日 16:03:00|评论(loading...)|编辑|举报|收藏

2008年09月01日

原创 WPF 2 compare winform controls and wpf controls

Today, I continue research on wpf, and rewrite my map explorer to wpf version, I mention many problem that you can see at last article. I found there is no ColorDialog in wpf application, and toolbar also doesn't work, I cann't add items, the add button is disable, I think maybe I should add ItemsSource first, it implement IEnmerable. When I fix that I will write detail resolution. I list the Windows Forms Controls and Equivalent WPF Controls: 阅读全文>

发表于 @ 2008年09月01日 20:37:00|评论(loading...)|编辑|举报|收藏

原创 WPF 1


From today on, I will learn WPF, also I will write something in here.

1, Menu, ToolBar and StatusBar can put anywhere position in the window.

2, The default value of width and height is Auto, that mean this control can auto size, but the Width and Height property return value is NaN.

3, Wpf use System.Windows.Media.Imaging.BitmapSource instead of System.Drawing.Bitmap, but you should con阅读全文>

发表于 @ 2008年09月01日 11:37:00|评论(loading...)|编辑|举报|收藏

2008年06月03日

原创 正宗的四川方言情书

那年弹豁子一看到幺妹儿,就觉得好喜欢她,想跟她耍朋友,所以啥子都不管了,提笔就哗哗哗哗是一阵疾书,巴巴适适地写完一封情书寄了出去,今天翻出来给大家看下。先说,不要说弹豁子瓜兮兮的哈……那天赶场(赶集)瞄倒背起背篼的你—幺妹儿,我一下子就瓜了,原来幺妹儿你长得来那么万恶嗦(漂亮),把我的魂都扯去了,你说你是不是万恶?你的脸就像后山上盛开的红苕花,开得那么腻人,看到你就啥子都吃不下去了。你肥胴胴的身材就像是架上的葫芦,是那么的哦哟~~(请意会),你长长的毛根儿(辫子)那么黑又那么油光水滑,就像生产队长家的水牛尾巴。你的声音好像唱歌的鸡婆,是那么响亮悦耳。说穿了,你的啥子都是那么的哦哟,都是那么的哎呀,都是那么的那个!啊~~幺啊妹儿啊~~!你是天上的月亮,我是月边的寒星,不管你是圆是扁,我都不停地对你眨眼;你是山上的青冈树,我是树上的枯藤,到死都缠到你,就是不下来;你是天上的安琪儿,我是地上的推屎爬儿(屎壳郎),你在天上翻跟斗儿,我在屎里打迷头儿(扎猛子);你是堰塘(池塘)里的荷叶,我就是站在上面的丁丁猫儿(蜻蜓);你是一盏煤油灯儿,我就是扑灯的蛾蛾儿;你是一本书,我就是书签儿;你是包谷(玉阅读全文>

发表于 @ 2008年06月03日 19:54:00|评论(loading...)|编辑|举报|收藏

2008年04月28日

原创 全民红客 CNN攻击技术解析

近期,CNN主播卡弗蒂对于中国人民带有强烈歧视性的言论,以及CNN对于这一事件缺乏诚意的道歉和对于中国政府的无端指责,激起了全国人民的强烈愤慨。于是在一些爱国技术人员的倡议下,广大网民发起了一场针对CNN官方网站的攻击行动。下面,笔者从技术的角度对这次攻击中采用的攻击方法进行解析。

  一、攻击技术

  这次攻击采用的是DDOS攻击方法,即英语“Distributed Denial of Service”的缩写。顾名思义,即是利用网络中的无数计算机,向某一特定的目标计算机发动密集式的“拒绝服务”要求,从而把目标计算机的网络资源及系统资源耗尽。这是一种最有效而且难以有效防范的攻击技术。

  1.手动攻击

  在浏览器的地址栏中输入CNN的网站地址http://www.cnn.com,频繁登录访问其网站。其实这算不上攻击,但是当有数以万计的人同时登录时同样会耗费其网络带宽、系统资源,造成网络拥堵。

  2.批处理脚本

  把以下代码保存为一个.bat文件,比如阅读全文>

发表于 @ 2008年04月28日 09:47:00|评论(loading...)|编辑|举报|收藏

2008年02月02日

原创 FileConnection的API简介

FileConnection的API简介阅读全文>

发表于 @ 2008年02月02日 16:37:00|评论(loading...)|编辑|举报|收藏

原创 JAVA vs C#.net

简要比较了JAVA和C#,着重说了JAVA的几点不足之处。阅读全文>

发表于 @ 2008年02月02日 14:42:00|评论(loading...)|编辑|举报|收藏

2007年12月11日

原创 C# 加密解密算法

string EncryptedPassword = EncDec.Encrypt(AdminPassword, @"@LKM(#:LdM343k;lkdf23dcLKJ*&243"); 阅读全文>

发表于 @ 2007年12月11日 16:10:00|评论(loading...)|编辑|举报|收藏

原创 微软历代产品代号一览表

NT5      Windows 2000 Chicago    Windows 95 Memphis    Windows 98 阅读全文>

发表于 @ 2007年12月11日 16:08:00|评论(loading...)|编辑|举报|收藏

2007年09月28日

原创 sql入门讲座,包含PPT,SCRIPTS,C# DEMO

Section 1: Introduce SQL background. Section 2: Introduce SQL foundation. 1) DML and Table: Introduce Data Manipulation Language and how to manipulate table. 2) DDL and anther DB objects: Introduce Data Definition Language and how to manipulate another DB objects. Section 3: Use Visual Studio to manipulate SQL. 阅读全文>

发表于 @ 2007年09月28日 20:06:00|评论(loading...)|编辑|举报|收藏

2007年02月12日

原创 Regular Expression Syntax

A regular expression is a pattern of text that consists of ordinary characters (for example, letters a through z) and special characters, known as metacharacters. The pattern describes one or more strings to match when searching text.阅读全文>

发表于 @ 2007年02月12日 14:04:00|评论(loading...)|编辑|举报|收藏

2006年12月29日

原创 A*算法(Astar)

在这里我将对A*算法的实际应用进行一定的探讨,并且举一个有关A*算法在最短路径搜索的例子。值得注意的是这里并不对A*...我在《初识A*算法》中说过,A*算法是最好优先算法的一种。只是有一些约束条件而已。我们先来看看最好优先算法是如何...阅读全文>

发表于 @ 2006年12月29日 14:13:00|评论(loading...)|编辑|举报|收藏

用户操作
[即时聊天] [发私信] [加为好友]
fan178
订阅我的博客
XML聚合  FeedSky
订阅到鲜果
订阅到Google
订阅到抓虾
fan178的公告
http://www.doubao.com/user/reg/id/49860 http://www.lisihao.com.cn 也可以通过http://fan178.cn/ http://fan178.com.cn/ 或者http://laolaoyumi.cn/ 访问该网站
文章分类
    收藏
      朋友圈
      一个奋青的博客
      我的英文博客
      雾归漫步(RSS)
      存档
      软件项目交易
      Csdn Blog version 3.1a
      Copyright © fan178