空军

skyiv studio

导航

2005年10月5日 #

不让拖动的标题栏, 双击标题栏无反应

摘要: 通过WndProc实现。另,不知道如何禁止在标题栏上点右键。 阅读全文

posted @ 2005-10-05 22:15 空军 阅读(2079) 评论(4) 推荐(1) 编辑

2005年10月3日 #

获取M$ SQL Server用户表的字段信息

摘要: 阅读全文

posted @ 2005-10-03 20:24 空军 阅读(1090) 评论(1) 推荐(0) 编辑

2005年10月1日 #

在局域网内获取本机的外部IP

摘要: 在局域网中, 仅凭本机的力量无法获得本机的外部IP, 必须登录到外网某个服务器, 那个服务器就知道你的IP, 然后你再取回来。 阅读全文

posted @ 2005-10-01 09:39 空军 阅读(9059) 评论(14) 推荐(0) 编辑

2005年9月28日 #

C#中直接调用VB.NET的函数,兼论半角与全角、简繁体中文互相转化

摘要: 在C#项目中添加引用Microsoft.VisualBasic.dll, 可以在C#程序中直接使用VB.NET中丰富的函数 阅读全文

posted @ 2005-09-28 23:41 空军 阅读(5962) 评论(22) 推荐(1) 编辑

2005年9月21日 #

天书奇谈C#版

摘要: Here's a nice challange for people who THINK they know how to read other people's code... It's a small C# program. I know, I know, it doesn't look like it's gonna get compiled, but believe me, it does. Try to guess this program's output, then try to run it. You'll be amazed to see what it does! 阅读全文

posted @ 2005-09-21 20:32 空军 阅读(2005) 评论(13) 推荐(0) 编辑

2005年9月19日 #

一个Delphi写的DES算法, 翻译成C#

摘要: 其实.NET Framework已经提供实现DES算法的类: System.Security.Cryptography.DESCryptoServiceProvider。之所以要把一个Delphi写的DES算法翻译成C#,是因为网友espnstar想用Delphi加密,C#解密。[原文] 阅读全文

posted @ 2005-09-19 21:54 空军 阅读(1239) 评论(1) 推荐(1) 编辑

C#中更改1维数组的大小

摘要: 模拟Visual Basic的ReDim语句,C#实现,仅支持1维数组。 阅读全文

posted @ 2005-09-19 17:10 空军 阅读(2920) 评论(8) 推荐(0) 编辑

C#使用API枚举并设置显示模式

摘要: 用C#程序设置屏幕分辨率及刷新频率,程序中必须检查,不允许设置到显示器不支持的模式上,以免有可能损坏显示器(我所看到的前人的程序都未作检查)。解决方案: 用API枚举出当前显示器所支持的分辨率及刷新频率,填入列表框,然后再从中选择进行设置。 阅读全文

posted @ 2005-09-19 12:32 空军 阅读(2069) 评论(0) 推荐(0) 编辑

打印自己的程序C#版

摘要: For years, we gave the same programming test to every developer. It was a straightforward test that required no setup or external knowledge from manuals. The candidates were asked to write a program that could print its source to the screen exactly, without performing any file input. 阅读全文

posted @ 2005-09-19 09:45 空军 阅读(642) 评论(1) 推荐(0) 编辑