
winform
cheligeer
说啥好呢??
展开
-
C# 生成随机数问题
Random产生随机时需要设置种子。如果不设置默认应该是当前时间。(本人猜测)所以用一个for循环输出10个随机数时产生的都是相同的。所以用了如下方法:public static int getRandomNum(int start, int end) { Random rnd = new Random(Guid.NewGuid().GetHashCode(原创 2013-08-06 09:53:56 · 860 阅读 · 0 评论 -
winform mshtml 应用报错问题
报错内容:System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> System.IO.FileLoadException: 未能加载文件或程序集“Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它原创 2013-08-06 11:03:49 · 1659 阅读 · 0 评论