摘要:1.内存泄露(内存超过系统允许的最大限制,11.4版本为2G)2.脚本死循环3.舞台内元件的大小超出了系统限制
阅读全文
摘要:本文的原理是借助Windows平台安装的WinRAR(WinZip)实现C#程序的调用(注:WinRAR压缩解压WinZip同样适用)。先来看WinRAR(WinZip)自身的支持调用命令:压缩命令:a{0}{1}-r【{0}:压缩后文件名|{1}:待压缩的文件物理路径】ex:"a你妹.rarf:\...
阅读全文
摘要://真正判断文件类型的关键函数 public static bool IsAllowedExtension2(FileUpload hifile) { if (hifile != null) { System.IO.FileStream ...
阅读全文
摘要://view.AllowDrop = true;----------------------------------------private void view_DragEnter(DragEventArgs drgevent){if (m_allowdrop){if (drgevent.Data...
阅读全文
摘要:private void btnFile_Click(object sender, EventArgs e){OpenFileDialog fileDialog = new OpenFileDialog();fileDialog.Multiselect = true;fileDialog.Title...
阅读全文
摘要:/引用命名空间using System.Drawing.Imaging;using System.Drawing;using System.Drawing.Drawing2D;#region GetPicThumbnail/// /// 无损压缩图片/// /// 原图片/// 压缩后保存位置///...
阅读全文
摘要:var my_fmt = new TextFormat();//常用样式my_fmt.align = "center";my_fmt.blockIndent = 50; //区块缩进my_fmt.bold = true;my_fmt.bullet = true;my_fmt.color = 0xff...
阅读全文